Lines Matching refs:WebAssembly

115     if (!WebAssembly::isRethrow(MI))  in ExplicitlyBranchesTo()
192 if (Begin->getOpcode() == WebAssembly::LOOP) { in getBottom()
195 BeginToBottom[Begin] = WebAssembly::getBottom(L); in getBottom()
196 } else if (Begin->getOpcode() == WebAssembly::TRY) { in getBottom()
199 BeginToBottom[Begin] = WebAssembly::getBottom(WE); in getBottom()
263 if (MI.getOpcode() == WebAssembly::LOOP || in placeBlockMarker()
264 MI.getOpcode() == WebAssembly::TRY) { in placeBlockMarker()
275 if (MI.getOpcode() == WebAssembly::BLOCK) in placeBlockMarker()
280 if (MI.getOpcode() == WebAssembly::END_BLOCK || in placeBlockMarker()
281 MI.getOpcode() == WebAssembly::END_LOOP || in placeBlockMarker()
282 MI.getOpcode() == WebAssembly::END_TRY) in placeBlockMarker()
296 if (WebAssembly::isChild(*std::prev(I), MFI)) in placeBlockMarker()
306 TII.get(WebAssembly::BLOCK)) in placeBlockMarker()
307 .addImm(int64_t(WebAssembly::ExprType::Void)); in placeBlockMarker()
315 if (MI.getOpcode() == WebAssembly::LOOP || in placeBlockMarker()
316 MI.getOpcode() == WebAssembly::TRY) in placeBlockMarker()
324 if (MI.getOpcode() == WebAssembly::END_LOOP || in placeBlockMarker()
325 MI.getOpcode() == WebAssembly::END_TRY) { in placeBlockMarker()
338 TII.get(WebAssembly::END_BLOCK)); in placeBlockMarker()
360 MachineBasicBlock *Bottom = WebAssembly::getBottom(Loop); in placeLoopMarker()
377 if (MI.getOpcode() == WebAssembly::END_LOOP) in placeLoopMarker()
388 TII.get(WebAssembly::LOOP)) in placeLoopMarker()
389 .addImm(int64_t(WebAssembly::ExprType::Void)); in placeLoopMarker()
397 if (MI.getOpcode() == WebAssembly::END_LOOP) in placeLoopMarker()
406 BuildMI(*AfterLoop, InsertPos, EndDL, TII.get(WebAssembly::END_LOOP)); in placeLoopMarker()
422 if (WebAssembly::isCatchAllTerminatePad(MBB)) in placeTryMarker()
448 MachineBasicBlock *Bottom = WebAssembly::getBottom(WE); in placeTryMarker()
489 if (MI.getOpcode() == WebAssembly::LOOP) { in placeTryMarker()
500 if (MI.getOpcode() == WebAssembly::TRY) in placeTryMarker()
505 if (MI.getOpcode() == WebAssembly::END_LOOP || in placeTryMarker()
506 MI.getOpcode() == WebAssembly::END_TRY) in placeTryMarker()
520 if (WebAssembly::isChild(*std::prev(I), MFI)) in placeTryMarker()
533 if (TermPos == Header->end() || !WebAssembly::isRethrow(*TermPos)) { in placeTryMarker()
547 TII.get(WebAssembly::TRY)) in placeTryMarker()
548 .addImm(int64_t(WebAssembly::ExprType::Void)); in placeTryMarker()
556 if (MI.getOpcode() == WebAssembly::LOOP) in placeTryMarker()
561 if (MI.getOpcode() == WebAssembly::END_TRY) in placeTryMarker()
569 if (MI.getOpcode() == WebAssembly::END_LOOP) { in placeTryMarker()
583 TII.get(WebAssembly::END_TRY)); in placeTryMarker()
620 WebAssembly::ExprType retType; in fixEndsAtEndOfFunction()
623 retType = WebAssembly::ExprType::I32; in fixEndsAtEndOfFunction()
626 retType = WebAssembly::ExprType::I64; in fixEndsAtEndOfFunction()
629 retType = WebAssembly::ExprType::F32; in fixEndsAtEndOfFunction()
632 retType = WebAssembly::ExprType::F64; in fixEndsAtEndOfFunction()
640 retType = WebAssembly::ExprType::V128; in fixEndsAtEndOfFunction()
643 retType = WebAssembly::ExprType::ExceptRef; in fixEndsAtEndOfFunction()
653 if (MI.getOpcode() == WebAssembly::END_BLOCK) { in fixEndsAtEndOfFunction()
657 if (MI.getOpcode() == WebAssembly::END_LOOP) { in fixEndsAtEndOfFunction()
673 TII.get(WebAssembly::END_FUNCTION)); in AppendEndToFunction()
706 case WebAssembly::BLOCK: in rewriteDepthImmediates()
713 case WebAssembly::TRY: in rewriteDepthImmediates()
721 case WebAssembly::CATCH_I32: in rewriteDepthImmediates()
722 case WebAssembly::CATCH_I64: in rewriteDepthImmediates()
723 case WebAssembly::CATCH_ALL: in rewriteDepthImmediates()
736 if (!WebAssembly::isCatchAllTerminatePad(MBB)) in rewriteDepthImmediates()
740 case WebAssembly::LOOP: in rewriteDepthImmediates()
745 case WebAssembly::END_BLOCK: in rewriteDepthImmediates()
746 case WebAssembly::END_TRY: in rewriteDepthImmediates()
750 case WebAssembly::END_LOOP: in rewriteDepthImmediates()
754 case WebAssembly::RETHROW: { in rewriteDepthImmediates()
762 case WebAssembly::RETHROW_TO_CALLER: { in rewriteDepthImmediates()
764 BuildMI(MBB, MI, MI.getDebugLoc(), TII.get(WebAssembly::RETHROW)) in rewriteDepthImmediates()