/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/ |
D | PPCReduceCRLogicals.cpp | 389 bool splitBlockOnBinaryCROp(CRLogicalOpInfo &CRI); 586 CRLogicalOpInfo CRI = AllCRLogicalOps[Idx]; in handleCROp() local 587 if (CRI.IsBinary && CRI.ContainedInBlock && CRI.SingleUse && CRI.FeedsBR && in handleCROp() 588 CRI.DefsSingleUse) { in handleCROp() 589 Changed = splitBlockOnBinaryCROp(CRI); in handleCROp() 613 bool PPCReduceCRLogicals::splitBlockOnBinaryCROp(CRLogicalOpInfo &CRI) { in splitBlockOnBinaryCROp() argument 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() 628 if (CRI.MI->getOpcode() != PPC::CROR && in splitBlockOnBinaryCROp() [all …]
|
/external/llvm-project/llvm/lib/Target/PowerPC/ |
D | PPCReduceCRLogicals.cpp | 389 bool splitBlockOnBinaryCROp(CRLogicalOpInfo &CRI); 586 CRLogicalOpInfo CRI = AllCRLogicalOps[Idx]; in handleCROp() local 587 if (CRI.IsBinary && CRI.ContainedInBlock && CRI.SingleUse && CRI.FeedsBR && in handleCROp() 588 CRI.DefsSingleUse) { in handleCROp() 589 Changed = splitBlockOnBinaryCROp(CRI); in handleCROp() 613 bool PPCReduceCRLogicals::splitBlockOnBinaryCROp(CRLogicalOpInfo &CRI) { in splitBlockOnBinaryCROp() argument 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() 628 if (CRI.MI->getOpcode() != PPC::CROR && in splitBlockOnBinaryCROp() [all …]
|
/external/llvm-project/llvm/unittests/ADT/ |
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()
|
/external/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 159 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in getCleanupRetUnwindDest() local 160 return CRI->getUnwindDest(); in getCleanupRetUnwindDest() 815 if (auto *CRI = in cloneCommonBlocks() local 817 EdgeTargetsFunclet = (CRI->getCatchSwitchParentPad() == FuncletToken); in cloneCommonBlocks() 981 if (auto *CRI = dyn_cast<CatchReturnInst>(TI)) in removeImplausibleInstructions() local 982 IsUnreachableCatchret = CRI->getCatchPad() != CatchPad; in removeImplausibleInstructions() 985 if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) in removeImplausibleInstructions() local 986 IsUnreachableCleanupret = CRI->getCleanupPad() != CleanupPad; in removeImplausibleInstructions()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 170 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in getCleanupRetUnwindDest() local 171 return CRI->getUnwindDest(); in getCleanupRetUnwindDest() 852 if (auto *CRI = in cloneCommonBlocks() local 854 EdgeTargetsFunclet = (CRI->getCatchSwitchParentPad() == FuncletToken); in cloneCommonBlocks() 1008 if (auto *CRI = dyn_cast<CatchReturnInst>(TI)) in removeImplausibleInstructions() local 1009 IsUnreachableCatchret = CRI->getCatchPad() != CatchPad; in removeImplausibleInstructions() 1012 if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) in removeImplausibleInstructions() local 1013 IsUnreachableCleanupret = CRI->getCleanupPad() != CleanupPad; in removeImplausibleInstructions()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 169 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in getCleanupRetUnwindDest() local 170 return CRI->getUnwindDest(); in getCleanupRetUnwindDest() 830 if (auto *CRI = in cloneCommonBlocks() local 832 EdgeTargetsFunclet = (CRI->getCatchSwitchParentPad() == FuncletToken); in cloneCommonBlocks() 986 if (auto *CRI = dyn_cast<CatchReturnInst>(TI)) in removeImplausibleInstructions() local 987 IsUnreachableCatchret = CRI->getCatchPad() != CatchPad; in removeImplausibleInstructions() 990 if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) in removeImplausibleInstructions() local 991 IsUnreachableCleanupret = CRI->getCleanupPad() != CleanupPad; in removeImplausibleInstructions()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | CodeExtractor.cpp | 150 if (const auto *CRI = dyn_cast<CatchReturnInst>(U)) in isBlockValidForExtraction() local 151 if (!Result.count(const_cast<BasicBlock*>(CRI->getParent()))) in isBlockValidForExtraction() 161 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in isBlockValidForExtraction() local 162 if (!Result.count(const_cast<BasicBlock*>(CRI->getParent()))) in isBlockValidForExtraction() 166 if (const auto *CRI = dyn_cast<CleanupReturnInst>(I)) { in isBlockValidForExtraction() local 167 if (auto *UBB = CRI->getUnwindDest()) in isBlockValidForExtraction()
|
D | InlineFunction.cpp | 677 if (auto *CRI = dyn_cast<CleanupReturnInst>(BB->getTerminator())) { in HandleInlinedEHPad() local 678 if (CRI->unwindsToCaller()) { in HandleInlinedEHPad() 679 auto *CleanupPad = CRI->getCleanupPad(); in HandleInlinedEHPad() 680 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI); in HandleInlinedEHPad() 681 CRI->eraseFromParent(); in HandleInlinedEHPad()
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | CodeExtractor.cpp | 153 if (const auto *CRI = dyn_cast<CatchReturnInst>(U)) in isBlockValidForExtraction() local 154 if (!Result.count(const_cast<BasicBlock*>(CRI->getParent()))) in isBlockValidForExtraction() 164 if (const auto *CRI = dyn_cast<CleanupReturnInst>(U)) in isBlockValidForExtraction() local 165 if (!Result.count(const_cast<BasicBlock*>(CRI->getParent()))) in isBlockValidForExtraction() 169 if (const auto *CRI = dyn_cast<CleanupReturnInst>(I)) { in isBlockValidForExtraction() local 170 if (auto *UBB = CRI->getUnwindDest()) in isBlockValidForExtraction()
|
D | InlineFunction.cpp | 684 if (auto *CRI = dyn_cast<CleanupReturnInst>(BB->getTerminator())) { in HandleInlinedEHPad() local 685 if (CRI->unwindsToCaller()) { in HandleInlinedEHPad() 686 auto *CleanupPad = CRI->getCleanupPad(); in HandleInlinedEHPad() 687 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI); in HandleInlinedEHPad() 688 CRI->eraseFromParent(); in HandleInlinedEHPad()
|
/external/llvm/lib/IR/ |
D | Instruction.cpp | 541 if (const auto *CRI = dyn_cast<CleanupReturnInst>(this)) in mayThrow() local 542 return CRI->unwindsToCaller(); in mayThrow()
|
D | Verifier.cpp | 436 void visitCleanupReturnInst(CleanupReturnInst &CRI); 3224 } else if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) { in visitEHPadPredecessors() local 3225 FromPad = CRI->getOperand(0); in visitEHPadPredecessors() 3226 Assert(FromPad != ToPadParent, "A cleanupret must exit its cleanup", CRI); in visitEHPadPredecessors() 3353 if (auto *CRI = dyn_cast<CleanupReturnInst>(U)) { in visitFuncletPadInst() local 3354 UnwindDest = CRI->getUnwindDest(); in visitFuncletPadInst() 3541 void Verifier::visitCleanupReturnInst(CleanupReturnInst &CRI) { in visitCleanupReturnInst() argument 3542 Assert(isa<CleanupPadInst>(CRI.getOperand(0)), in visitCleanupReturnInst() 3543 "CleanupReturnInst needs to be provided a CleanupPad", &CRI, in visitCleanupReturnInst() 3544 CRI.getOperand(0)); in visitCleanupReturnInst() [all …]
|
D | Instructions.cpp | 890 CleanupReturnInst::CleanupReturnInst(const CleanupReturnInst &CRI) in CleanupReturnInst() argument 891 : TerminatorInst(CRI.getType(), Instruction::CleanupRet, in CleanupReturnInst() 893 CRI.getNumOperands(), in CleanupReturnInst() 894 CRI.getNumOperands()) { in CleanupReturnInst() 895 setInstructionSubclassData(CRI.getSubclassDataFromInstruction()); in CleanupReturnInst() 896 Op<0>() = CRI.Op<0>(); in CleanupReturnInst() 897 if (CRI.hasUnwindDest()) in CleanupReturnInst() 898 Op<1>() = CRI.Op<1>(); in CleanupReturnInst() 948 CatchReturnInst::CatchReturnInst(const CatchReturnInst &CRI) in CatchReturnInst() argument 949 : TerminatorInst(Type::getVoidTy(CRI.getContext()), Instruction::CatchRet, in CatchReturnInst() [all …]
|
D | AsmWriter.cpp | 2988 } else if (const auto *CRI = dyn_cast<CatchReturnInst>(&I)) { in printInstruction() local 2990 writeOperand(CRI->getOperand(0), /*PrintType=*/false); in printInstruction() 2993 writeOperand(CRI->getOperand(1), /*PrintType=*/true); in printInstruction() 2994 } else if (const auto *CRI = dyn_cast<CleanupReturnInst>(&I)) { in printInstruction() local 2996 writeOperand(CRI->getOperand(0), /*PrintType=*/false); in printInstruction() 2999 if (CRI->hasUnwindDest()) in printInstruction() 3000 writeOperand(CRI->getOperand(1), /*PrintType=*/true); in printInstruction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Instructions.cpp | 919 CleanupReturnInst::CleanupReturnInst(const CleanupReturnInst &CRI) in CleanupReturnInst() argument 920 : Instruction(CRI.getType(), Instruction::CleanupRet, in CleanupReturnInst() 922 CRI.getNumOperands(), in CleanupReturnInst() 923 CRI.getNumOperands()) { in CleanupReturnInst() 924 setInstructionSubclassData(CRI.getSubclassDataFromInstruction()); in CleanupReturnInst() 925 Op<0>() = CRI.Op<0>(); in CleanupReturnInst() 926 if (CRI.hasUnwindDest()) in CleanupReturnInst() 927 Op<1>() = CRI.Op<1>(); in CleanupReturnInst() 965 CatchReturnInst::CatchReturnInst(const CatchReturnInst &CRI) in CatchReturnInst() argument 966 : Instruction(Type::getVoidTy(CRI.getContext()), Instruction::CatchRet, in CatchReturnInst() [all …]
|
D | Instruction.cpp | 596 if (const auto *CRI = dyn_cast<CleanupReturnInst>(this)) in mayThrow() local 597 return CRI->unwindsToCaller(); in mayThrow()
|
D | Verifier.cpp | 496 void visitCleanupReturnInst(CleanupReturnInst &CRI); 3663 } else if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) { in visitEHPadPredecessors() local 3664 FromPad = CRI->getOperand(0); in visitEHPadPredecessors() 3665 Assert(FromPad != ToPadParent, "A cleanupret must exit its cleanup", CRI); in visitEHPadPredecessors() 3807 if (auto *CRI = dyn_cast<CleanupReturnInst>(U)) { in visitFuncletPadInst() local 3808 UnwindDest = CRI->getUnwindDest(); in visitFuncletPadInst() 3995 void Verifier::visitCleanupReturnInst(CleanupReturnInst &CRI) { in visitCleanupReturnInst() argument 3996 Assert(isa<CleanupPadInst>(CRI.getOperand(0)), in visitCleanupReturnInst() 3997 "CleanupReturnInst needs to be provided a CleanupPad", &CRI, in visitCleanupReturnInst() 3998 CRI.getOperand(0)); in visitCleanupReturnInst() [all …]
|
D | AsmWriter.cpp | 3833 } else if (const auto *CRI = dyn_cast<CatchReturnInst>(&I)) { in printInstruction() local 3835 writeOperand(CRI->getOperand(0), /*PrintType=*/false); in printInstruction() 3838 writeOperand(CRI->getOperand(1), /*PrintType=*/true); in printInstruction() 3839 } else if (const auto *CRI = dyn_cast<CleanupReturnInst>(&I)) { in printInstruction() local 3841 writeOperand(CRI->getOperand(0), /*PrintType=*/false); in printInstruction() 3844 if (CRI->hasUnwindDest()) in printInstruction() 3845 writeOperand(CRI->getOperand(1), /*PrintType=*/true); in printInstruction()
|
/external/llvm/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 601 if (auto *CRI = dyn_cast<CleanupReturnInst>(BB->getTerminator())) { in HandleInlinedEHPad() local 602 if (CRI->unwindsToCaller()) { in HandleInlinedEHPad() 603 auto *CleanupPad = CRI->getCleanupPad(); in HandleInlinedEHPad() 604 CleanupReturnInst::Create(CleanupPad, UnwindDest, CRI); in HandleInlinedEHPad() 605 CRI->eraseFromParent(); in HandleInlinedEHPad()
|
D | Local.cpp | 1524 if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) { in removeUnwindEdge() local 1525 NewTI = CleanupReturnInst::Create(CRI->getCleanupPad(), nullptr, CRI); in removeUnwindEdge() 1526 UnwindDest = CRI->getUnwindDest(); in removeUnwindEdge()
|
/external/llvm-project/llvm/lib/IR/ |
D | Instruction.cpp | 624 if (const auto *CRI = dyn_cast<CleanupReturnInst>(this)) in mayThrow() local 625 return CRI->unwindsToCaller(); in mayThrow()
|
D | Instructions.cpp | 998 CleanupReturnInst::CleanupReturnInst(const CleanupReturnInst &CRI) in CleanupReturnInst() argument 999 : Instruction(CRI.getType(), Instruction::CleanupRet, in CleanupReturnInst() 1001 CRI.getNumOperands(), in CleanupReturnInst() 1002 CRI.getNumOperands()) { in CleanupReturnInst() 1004 CRI.getSubclassData<Instruction::OpaqueField>()); in CleanupReturnInst() 1005 Op<0>() = CRI.Op<0>(); in CleanupReturnInst() 1006 if (CRI.hasUnwindDest()) in CleanupReturnInst() 1007 Op<1>() = CRI.Op<1>(); in CleanupReturnInst() 1045 CatchReturnInst::CatchReturnInst(const CatchReturnInst &CRI) in CatchReturnInst() argument 1046 : Instruction(Type::getVoidTy(CRI.getContext()), Instruction::CatchRet, in CatchReturnInst() [all …]
|
D | Verifier.cpp | 503 void visitCleanupReturnInst(CleanupReturnInst &CRI); 3848 } else if (auto *CRI = dyn_cast<CleanupReturnInst>(TI)) { in visitEHPadPredecessors() local 3849 FromPad = CRI->getOperand(0); in visitEHPadPredecessors() 3850 Assert(FromPad != ToPadParent, "A cleanupret must exit its cleanup", CRI); in visitEHPadPredecessors() 3992 if (auto *CRI = dyn_cast<CleanupReturnInst>(U)) { in visitFuncletPadInst() local 3993 UnwindDest = CRI->getUnwindDest(); in visitFuncletPadInst() 4180 void Verifier::visitCleanupReturnInst(CleanupReturnInst &CRI) { in visitCleanupReturnInst() argument 4181 Assert(isa<CleanupPadInst>(CRI.getOperand(0)), in visitCleanupReturnInst() 4182 "CleanupReturnInst needs to be provided a CleanupPad", &CRI, in visitCleanupReturnInst() 4183 CRI.getOperand(0)); in visitCleanupReturnInst() [all …]
|
D | AsmWriter.cpp | 4066 } else if (const auto *CRI = dyn_cast<CatchReturnInst>(&I)) { in printInstruction() local 4068 writeOperand(CRI->getOperand(0), /*PrintType=*/false); in printInstruction() 4071 writeOperand(CRI->getOperand(1), /*PrintType=*/true); in printInstruction() 4072 } else if (const auto *CRI = dyn_cast<CleanupReturnInst>(&I)) { in printInstruction() local 4074 writeOperand(CRI->getOperand(0), /*PrintType=*/false); in printInstruction() 4077 if (CRI->hasUnwindDest()) in printInstruction() 4078 writeOperand(CRI->getOperand(1), /*PrintType=*/true); in printInstruction()
|
/external/llvm/lib/Bitcode/Writer/ |
D | BitcodeWriter.cpp | 2467 const auto &CRI = cast<CleanupReturnInst>(I); in writeInstruction() local 2468 pushValue(CRI.getCleanupPad(), InstID, Vals); in writeInstruction() 2469 if (CRI.hasUnwindDest()) in writeInstruction() 2470 Vals.push_back(VE.getValueID(CRI.getUnwindDest())); in writeInstruction() 2475 const auto &CRI = cast<CatchReturnInst>(I); in writeInstruction() local 2476 pushValue(CRI.getCatchPad(), InstID, Vals); in writeInstruction() 2477 Vals.push_back(VE.getValueID(CRI.getSuccessor())); in writeInstruction()
|