Lines Matching refs:InsertPos
186 auto InsertPos = EHPad->begin(); in hoistCatches() local
190 while (InsertPos != EHPad->end() && InsertPos->isEHLabel()) in hoistCatches()
191 InsertPos++; in hoistCatches()
192 if (InsertPos == Catch) in hoistCatches()
195 EHPad->insert(InsertPos, Catch->removeFromParent()); in hoistCatches()
208 auto InsertPos = MBB.begin(); in addCatchAlls() local
210 while (InsertPos != MBB.end() && InsertPos->isEHLabel()) in addCatchAlls()
211 InsertPos++; in addCatchAlls()
214 if (InsertPos == MBB.end() || in addCatchAlls()
215 !WebAssembly::isCatch(InsertPos->getOpcode())) { in addCatchAlls()
217 BuildMI(MBB, InsertPos, in addCatchAlls()
218 InsertPos == MBB.end() ? DebugLoc() : InsertPos->getDebugLoc(), in addCatchAlls()
338 auto InsertPos = MBB.begin(); in restoreStackPointer() local
340 while (InsertPos != MBB.end() && InsertPos->isEHLabel()) in restoreStackPointer()
341 InsertPos++; in restoreStackPointer()
342 assert(InsertPos != MBB.end() && in restoreStackPointer()
343 WebAssembly::isCatch(InsertPos->getOpcode()) && in restoreStackPointer()
345 ++InsertPos; // Skip the catch instruction in restoreStackPointer()
347 InsertPos, MBB.begin()->getDebugLoc()); in restoreStackPointer()