Lines Matching defs:InsertPos
189 auto InsertPos = EHPad->begin();
193 while (InsertPos != EHPad->end() && InsertPos->isEHLabel())
194 InsertPos++;
195 if (InsertPos == Catch)
198 EHPad->insert(InsertPos, Catch->removeFromParent());
211 auto InsertPos = MBB.begin();
213 while (InsertPos != MBB.end() && InsertPos->isEHLabel())
214 InsertPos++;
217 if (InsertPos == MBB.end() ||
218 !WebAssembly::isCatch(InsertPos->getOpcode())) {
223 BuildMI(MBB, InsertPos,
224 InsertPos == MBB.end() ? DebugLoc() : InsertPos->getDebugLoc(),
315 auto *InsertPos = Catch->getIterator()->getNextNode();
318 MachineInstrBuilder MIB = BuildMI(*EHPad, InsertPos, Catch->getDebugLoc(),
331 BuildMI(*EHPad, InsertPos, Catch->getDebugLoc(),
340 auto InsertPos = std::next(Rethrow->getIterator());
341 BuildMI(*Rethrow->getParent(), InsertPos, Rethrow->getDebugLoc(),
400 auto InsertPos = MBB.begin();
402 while (InsertPos != MBB.end() && InsertPos->isEHLabel())
403 InsertPos++;
404 assert(InsertPos != MBB.end() &&
405 WebAssembly::isCatch(InsertPos->getOpcode()) &&
407 ++InsertPos; // Skip the catch instruction
409 InsertPos, MBB.begin()->getDebugLoc());