| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCReduceCRLogicals.cpp | 587 if (CRI.IsBinary && CRI.ContainedInBlock && CRI.SingleUse && CRI.FeedsBR && in handleCROp() 588 CRI.DefsSingleUse) { in handleCROp() 614 if (CRI.CopyDefs.first == CRI.CopyDefs.second) { in splitBlockOnBinaryCROp() 619 if (CRI.TrueDefs.first->isCopy() || CRI.TrueDefs.second->isCopy() || in splitBlockOnBinaryCROp() 620 CRI.TrueDefs.first->isPHI() || CRI.TrueDefs.second->isPHI()) { in splitBlockOnBinaryCROp() 667 UsingDef1 ? CRI.TrueDefs.first : CRI.TrueDefs.second; in splitBlockOnBinaryCROp() 669 UsingDef1 ? CRI.CopyDefs.first : CRI.CopyDefs.second; in splitBlockOnBinaryCROp() 686 UsingDef1 ? CRI.CopyDefs.second : CRI.CopyDefs.first; in splitBlockOnBinaryCROp() 694 UsingDef1 ? CRI.CopyDefs.first : CRI.CopyDefs.second }; in splitBlockOnBinaryCROp() 700 CRI.TrueDefs.first && isCRLogical(*CRI.TrueDefs.first); in splitBlockOnBinaryCROp() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | IListIteratorTest.cpp | 22 simple_ilist<Node>::const_reverse_iterator CRI; in TEST() local 26 EXPECT_EQ(nullptr, CRI.getNodePtr()); in TEST() 32 EXPECT_EQ(RI, CRI); in TEST() 33 EXPECT_EQ(CRI, RI); in TEST() 34 EXPECT_EQ(CRI, CRI); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | WinEHPrepare.cpp | 170 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in getCleanupRetUnwindDest() local 171 return CRI->getUnwindDest(); in getCleanupRetUnwindDest() 843 if (auto *CRI = in cloneCommonBlocks() local 845 EdgeTargetsFunclet = (CRI->getCatchSwitchParentPad() == FuncletToken); in cloneCommonBlocks() 999 if (auto *CRI = dyn_cast<CatchReturnInst>(TI)) in removeImplausibleInstructions() local 1000 IsUnreachableCatchret = CRI->getCatchPad() != CatchPad; in removeImplausibleInstructions() 1003 if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) in removeImplausibleInstructions() local 1004 IsUnreachableCleanupret = CRI->getCleanupPad() != CleanupPad; in removeImplausibleInstructions()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyLowerEmscriptenEHSjLj.cpp | 1656 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in getCleanupRetUnwindDest() local 1657 return CRI->getUnwindDest(); in getCleanupRetUnwindDest() 1867 if (auto *CRI = dyn_cast<CleanupReturnInst>(BB.getTerminator())) { in handleLongjmpableCallsForWasmSjLj() local 1868 if (CRI->unwindsToCaller()) { in handleLongjmpableCallsForWasmSjLj() 1869 IRB.SetInsertPoint(CRI); in handleLongjmpableCallsForWasmSjLj() 1870 ToErase.push_back(CRI); in handleLongjmpableCallsForWasmSjLj() 1871 IRB.CreateCleanupRet(CRI->getCleanupPad(), CatchDispatchLongjmpBB); in handleLongjmpableCallsForWasmSjLj()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CodeExtractor.cpp | 151 if (const auto *CRI = dyn_cast<CatchReturnInst>(U)) in isBlockValidForExtraction() local 152 if (!Result.count(const_cast<BasicBlock*>(CRI->getParent()))) in isBlockValidForExtraction() 162 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in isBlockValidForExtraction() local 163 if (!Result.count(const_cast<BasicBlock*>(CRI->getParent()))) in isBlockValidForExtraction() 167 if (const auto *CRI = dyn_cast<CleanupReturnInst>(I)) { in isBlockValidForExtraction() local 168 if (auto *UBB = CRI->getUnwindDest()) in isBlockValidForExtraction()
|
| H A D | InlineFunction.cpp | 695 if (auto *CRI = dyn_cast<CleanupReturnInst>(BB->getTerminator())) { in HandleInlinedEHPad() local 696 if (CRI->unwindsToCaller()) { in HandleInlinedEHPad() 697 auto *CleanupPad = CRI->getCleanupPad(); in HandleInlinedEHPad() 698 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI); in HandleInlinedEHPad() 699 CRI->eraseFromParent(); in HandleInlinedEHPad()
|
| H A D | Local.cpp | 2458 if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) { in removeUnwindEdge() local 2459 NewTI = CleanupReturnInst::Create(CRI->getCleanupPad(), nullptr, CRI); in removeUnwindEdge() 2460 UnwindDest = CRI->getUnwindDest(); in removeUnwindEdge()
|
| H A D | SimplifyCFG.cpp | 5079 } else if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) { in simplifyUnreachable() local 5080 (void)CRI; in simplifyUnreachable() 5081 assert(CRI->hasUnwindDest() && CRI->getUnwindDest() == BB && in simplifyUnreachable()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Instructions.cpp | 1055 CleanupReturnInst::CleanupReturnInst(const CleanupReturnInst &CRI) in CleanupReturnInst() argument 1056 : Instruction(CRI.getType(), Instruction::CleanupRet, in CleanupReturnInst() 1058 CRI.getNumOperands(), in CleanupReturnInst() 1059 CRI.getNumOperands()) { in CleanupReturnInst() 1061 CRI.getSubclassData<Instruction::OpaqueField>()); in CleanupReturnInst() 1062 Op<0>() = CRI.Op<0>(); in CleanupReturnInst() 1063 if (CRI.hasUnwindDest()) in CleanupReturnInst() 1064 Op<1>() = CRI.Op<1>(); in CleanupReturnInst() 1102 CatchReturnInst::CatchReturnInst(const CatchReturnInst &CRI) in CatchReturnInst() argument 1105 Op<0>() = CRI.Op<0>(); in CatchReturnInst() [all …]
|
| H A D | Instruction.cpp | 688 if (const auto *CRI = dyn_cast<CleanupReturnInst>(this)) in mayThrow() local 689 return CRI->unwindsToCaller(); in mayThrow()
|
| H A D | Verifier.cpp | 552 void visitCleanupReturnInst(CleanupReturnInst &CRI); 4053 } else if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) { in visitEHPadPredecessors() local 4054 FromPad = CRI->getOperand(0); in visitEHPadPredecessors() 4200 if (auto *CRI = dyn_cast<CleanupReturnInst>(U)) { in visitFuncletPadInst() local 4201 UnwindDest = CRI->getUnwindDest(); in visitFuncletPadInst() 4389 void Verifier::visitCleanupReturnInst(CleanupReturnInst &CRI) { in visitCleanupReturnInst() argument 4390 Check(isa<CleanupPadInst>(CRI.getOperand(0)), in visitCleanupReturnInst() 4392 CRI.getOperand(0)); in visitCleanupReturnInst() 4394 if (BasicBlock *UnwindDest = CRI.getUnwindDest()) { in visitCleanupReturnInst() 4399 &CRI); in visitCleanupReturnInst() [all …]
|
| H A D | AsmWriter.cpp | 4094 } else if (const auto *CRI = dyn_cast<CatchReturnInst>(&I)) { in printInstruction() local 4096 writeOperand(CRI->getOperand(0), /*PrintType=*/false); in printInstruction() 4099 writeOperand(CRI->getOperand(1), /*PrintType=*/true); in printInstruction() 4100 } else if (const auto *CRI = dyn_cast<CleanupReturnInst>(&I)) { in printInstruction() local 4102 writeOperand(CRI->getOperand(0), /*PrintType=*/false); in printInstruction() 4105 if (CRI->hasUnwindDest()) in printInstruction() 4106 writeOperand(CRI->getOperand(1), /*PrintType=*/true); in printInstruction()
|
| H A D | Core.cpp | 2918 if (CleanupReturnInst *CRI = dyn_cast<CleanupReturnInst>(unwrap(Invoke))) { in LLVMGetUnwindDest() local 2919 return wrap(CRI->getUnwindDest()); in LLVMGetUnwindDest() 2931 if (CleanupReturnInst *CRI = dyn_cast<CleanupReturnInst>(unwrap(Invoke))) { in LLVMSetUnwindDest() local 2932 return CRI->setUnwindDest(unwrap(B)); in LLVMSetUnwindDest()
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Writer/ |
| H A D | BitcodeWriter.cpp | 2964 const auto &CRI = cast<CleanupReturnInst>(I); in writeInstruction() local 2965 pushValue(CRI.getCleanupPad(), InstID, Vals); in writeInstruction() 2966 if (CRI.hasUnwindDest()) in writeInstruction() 2967 Vals.push_back(VE.getValueID(CRI.getUnwindDest())); in writeInstruction() 2972 const auto &CRI = cast<CatchReturnInst>(I); in writeInstruction() local 2973 pushValue(CRI.getCatchPad(), InstID, Vals); in writeInstruction() 2974 Vals.push_back(VE.getValueID(CRI.getSuccessor())); in writeInstruction()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | InlineCost.cpp | 2346 bool CallAnalyzer::visitCleanupReturnInst(CleanupReturnInst &CRI) { in visitCleanupReturnInst() argument 2352 bool CallAnalyzer::visitCatchReturnInst(CatchReturnInst &CRI) { in visitCatchReturnInst() argument
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemorySanitizer.cpp | 4053 void visitCleanupReturnInst(CleanupReturnInst &CRI) { in visitCleanupReturnInst() 4054 LLVM_DEBUG(dbgs() << "CleanupReturn: " << CRI << "\n"); in visitCleanupReturnInst() 4058 void visitCatchReturnInst(CatchReturnInst &CRI) { in visitCatchReturnInst() 4059 LLVM_DEBUG(dbgs() << "CatchReturn: " << CRI << "\n"); in visitCatchReturnInst()
|
| H A D | AddressSanitizer.cpp | 974 void visitCleanupReturnInst(CleanupReturnInst &CRI) { RetVec.push_back(&CRI); } in visitCleanupReturnInst()
|