/external/llvm/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 67 void substituteLPadValues(LandingPadInst *LPI, Value *ExnVal, Value *SelVal); 133 void SjLjEHPrepare::substituteLPadValues(LandingPadInst *LPI, Value *ExnVal, in substituteLPadValues() argument 135 SmallVector<Value *, 8> UseWorkList(LPI->user_begin(), LPI->user_end()); in substituteLPadValues() 151 if (LPI->use_empty()) in substituteLPadValues() 156 Type *LPadType = LPI->getType(); in substituteLPadValues() 163 LPI->replaceAllUsesWith(LPadVal); in substituteLPadValues() 181 for (LandingPadInst *LPI : LPads) { in setupFunctionContext() 182 IRBuilder<> Builder(LPI->getParent(), in setupFunctionContext() 183 LPI->getParent()->getFirstInsertionPt()); in setupFunctionContext() 199 substituteLPadValues(LPI, ExnVal, SelVal); in setupFunctionContext() [all …]
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | AutoUpgrade.cpp | 460 static void TransferClausesToLandingPadInst(LandingPadInst *LPI, in TransferClausesToLandingPadInst() argument 462 LLVMContext &Context = LPI->getContext(); in TransferClausesToLandingPadInst() 475 LPI->addClause(EHSel->getArgOperand(j)); in TransferClausesToLandingPadInst() 478 LPI->addClause(GV->getInitializer()); in TransferClausesToLandingPadInst() 484 LPI->setCleanup(true); in TransferClausesToLandingPadInst() 495 LPI->addClause(ConstantArray::get(AType, TyInfo)); in TransferClausesToLandingPadInst() 506 LPI->addClause(EHSel->getArgOperand(j)); in TransferClausesToLandingPadInst() 509 LPI->addClause(GV->getInitializer()); in TransferClausesToLandingPadInst() 602 LandingPadInst *LPI = Builder.CreateLandingPad(LPadSlotTy, PersFn, 0); in UpgradeExceptionHandling() local 603 Value *LPExn = Builder.CreateExtractValue(LPI, 0); in UpgradeExceptionHandling() [all …]
|
D | Verifier.cpp | 298 void visitLandingPadInst(LandingPadInst &LPI); 1422 void Verifier::visitLandingPadInst(LandingPadInst &LPI) { in visitLandingPadInst() argument 1423 BasicBlock *BB = LPI.getParent(); in visitLandingPadInst() 1427 Assert1(LPI.getNumClauses() > 0 || LPI.isCleanup(), in visitLandingPadInst() 1428 "LandingPadInst needs at least one clause or to be a cleanup.", &LPI); in visitLandingPadInst() 1436 "only by the unwind edge of an invoke.", &LPI); in visitLandingPadInst() 1441 Assert1(LPI.getParent()->getLandingPadInst() == &LPI, in visitLandingPadInst() 1443 &LPI); in visitLandingPadInst() 1448 Assert1(LPI.getPersonalityFn() == PersonalityFn, in visitLandingPadInst() 1449 "Personality function doesn't match others in function", &LPI); in visitLandingPadInst() [all …]
|
D | AsmWriter.cpp | 1756 } else if (const LandingPadInst *LPI = dyn_cast<LandingPadInst>(&I)) { in printInstruction() local 1762 if (LPI->isCleanup()) in printInstruction() 1765 for (unsigned i = 0, e = LPI->getNumClauses(); i != e; ++i) { in printInstruction() 1766 if (i != 0 || LPI->isCleanup()) Out << "\n"; in printInstruction() 1767 if (LPI->isCatch(i)) in printInstruction() 1772 writeOperand(LPI->getClause(i), true); in printInstruction()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | SjLjEHPrepare.cpp | 451 if (LandingPadInst *LPI = II->getUnwindDest()->getLandingPadInst()) in insertSjLjEHSupport() local 452 if (!PersonalityFn) PersonalityFn = LPI->getPersonalityFn(); in insertSjLjEHSupport() 472 if (LandingPadInst *LPI = II->getUnwindDest()->getLandingPadInst()) in insertSjLjEHSupport() local 473 if (!PersonalityFn) PersonalityFn = LPI->getPersonalityFn(); in insertSjLjEHSupport() 497 if (LandingPadInst *LPI = II->getUnwindDest()->getLandingPadInst()) in insertSjLjEHSupport() local 498 LandingPads.push_back(LPI); in insertSjLjEHSupport() 757 LandingPadInst *LPI = LPads[I]; in setupFunctionContext() local 758 IRBuilder<> Builder(LPI->getParent()->getFirstInsertionPt()); in setupFunctionContext() 764 Type *LPadType = LPI->getType(); in setupFunctionContext() 769 LPI->replaceAllUsesWith(LPadVal); in setupFunctionContext()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | EHStreamer.cpp | 96 const LandingPadInfo *LPI = *I; in computeActionsTable() local 97 const std::vector<int> &TypeIds = LPI->TypeIds; in computeActionsTable() 98 unsigned NumShared = PrevLPI ? sharedTypeIDs(LPI, PrevLPI) : 0; in computeActionsTable() 151 PrevLPI = LPI; in computeActionsTable()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/AsmPrinter/ |
D | DwarfException.cpp | 122 const LandingPadInfo *LPI = *I; in ComputeActionsTable() local 123 const std::vector<int> &TypeIds = LPI->TypeIds; in ComputeActionsTable() 124 unsigned NumShared = PrevLPI ? SharedTypeIds(LPI, PrevLPI) : 0; in ComputeActionsTable() 178 PrevLPI = LPI; in ComputeActionsTable()
|
/external/llvm/lib/IR/ |
D | Verifier.cpp | 430 void visitLandingPadInst(LandingPadInst &LPI); 3185 if (auto *LPI = dyn_cast<LandingPadInst>(&I)) { in visitEHPadPredecessors() local 3194 LPI); in visitEHPadPredecessors() 3250 void Verifier::visitLandingPadInst(LandingPadInst &LPI) { in visitLandingPadInst() argument 3253 Assert(LPI.getNumClauses() > 0 || LPI.isCleanup(), in visitLandingPadInst() 3254 "LandingPadInst needs at least one clause or to be a cleanup.", &LPI); in visitLandingPadInst() 3256 visitEHPadPredecessors(LPI); in visitLandingPadInst() 3259 LandingPadResultTy = LPI.getType(); in visitLandingPadInst() 3261 Assert(LandingPadResultTy == LPI.getType(), in visitLandingPadInst() 3264 &LPI); in visitLandingPadInst() [all …]
|
D | AsmWriter.cpp | 2941 } else if (const LandingPadInst *LPI = dyn_cast<LandingPadInst>(&I)) { in printInstruction() local 2944 if (LPI->isCleanup() || LPI->getNumClauses() != 0) in printInstruction() 2947 if (LPI->isCleanup()) in printInstruction() 2950 for (unsigned i = 0, e = LPI->getNumClauses(); i != e; ++i) { in printInstruction() 2951 if (i != 0 || LPI->isCleanup()) Out << "\n"; in printInstruction() 2952 if (LPI->isCatch(i)) in printInstruction() 2957 writeOperand(LPI->getClause(i), true); in printInstruction()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 280 if (LandingPadInst *LPI = dyn_cast<LandingPadInst>(I)) { in InvokeInliningInfo() local 281 CallerLPad = LPI; in InvokeInliningInfo() 505 LandingPadInst *LPI = Invoke.getLandingPadInst(); in HandleCallsInBlockInlinedThroughInvoke() local 510 if (LPI) // FIXME: New EH - This won't be NULL in the new EH. in HandleCallsInBlockInlinedThroughInvoke() 512 unsigned NumClauses = LPI->getNumClauses(); in HandleCallsInBlockInlinedThroughInvoke() 515 L->addClause(LPI->getClause(i)); in HandleCallsInBlockInlinedThroughInvoke()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 671 LandingPadInst *LPI = BB->getLandingPadInst(); in UnswitchNontrivialCondition() local 672 LPI->replaceAllUsesWith(PN); in UnswitchNontrivialCondition() 673 PN->addIncoming(LPI, BB); in UnswitchNontrivialCondition()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FunctionLoweringInfo.cpp | 317 if (const auto *LPI = dyn_cast<LandingPadInst>(FNP)) in set() local 318 LPads.push_back(LPI); in set()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 1126 LandingPadInst *LPI = BB->getLandingPadInst(); in UnswitchNontrivialCondition() local 1127 LPI->replaceAllUsesWith(PN); in UnswitchNontrivialCondition() 1128 PN->addIncoming(LPI, BB); in UnswitchNontrivialCondition()
|
/external/clang/lib/CodeGen/ |
D | CGException.cpp | 237 static bool LandingPadHasOnlyCXXUses(llvm::LandingPadInst *LPI) { in LandingPadHasOnlyCXXUses() argument 238 for (unsigned I = 0, E = LPI->getNumClauses(); I != E; ++I) { in LandingPadHasOnlyCXXUses() 241 llvm::Value *Val = LPI->getClause(I)->stripPointerCasts(); in LandingPadHasOnlyCXXUses() 242 if (LPI->isCatch(I)) { in LandingPadHasOnlyCXXUses()
|