Home
last modified time | relevance | path

Searched refs:CatchPad (Results 1 – 25 of 45) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DWinEHPrepare.cpp192 else if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad)) in calculateStateNumbersForInvokes() local
193 FuncletUnwindDest = CatchPad->getCatchSwitch()->getUnwindDest(); in calculateStateNumbersForInvokes()
248 auto *CatchPad = cast<CatchPadInst>(CatchPadBB->getFirstNonPHI()); in calculateCXXStateNumbers() local
249 Handlers.push_back(CatchPad); in calculateCXXStateNumbers()
262 for (const auto *CatchPad : Handlers) { in calculateCXXStateNumbers() local
263 FuncInfo.FuncletBaseStateMap[CatchPad] = CatchLow; in calculateCXXStateNumbers()
264 for (const User *U : CatchPad->users()) { in calculateCXXStateNumbers()
352 const auto *CatchPad = in calculateSEHStateNumbers() local
354 const BasicBlock *CatchPadBB = CatchPad->getParent(); in calculateSEHStateNumbers()
356 cast<Constant>(CatchPad->getArgOperand(0)->stripPointerCasts()); in calculateSEHStateNumbers()
[all …]
DWasmEHPrepare.cpp344 if (const auto *CatchPad = dyn_cast<CatchPadInst>(Pad)) { in calculateWasmEHInfo() local
345 const auto *UnwindBB = CatchPad->getCatchSwitch()->getUnwindDest(); in calculateWasmEHInfo()
/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp183 else if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad)) in calculateStateNumbersForInvokes() local
184 FuncletUnwindDest = CatchPad->getCatchSwitch()->getUnwindDest(); in calculateStateNumbersForInvokes()
239 auto *CatchPad = cast<CatchPadInst>(CatchPadBB->getFirstNonPHI()); in calculateCXXStateNumbers() local
240 Handlers.push_back(CatchPad); in calculateCXXStateNumbers()
253 for (const auto *CatchPad : Handlers) { in calculateCXXStateNumbers() local
254 FuncInfo.FuncletBaseStateMap[CatchPad] = CatchLow; in calculateCXXStateNumbers()
255 for (const User *U : CatchPad->users()) { in calculateCXXStateNumbers()
342 const auto *CatchPad = in calculateSEHStateNumbers() local
344 const BasicBlock *CatchPadBB = CatchPad->getParent(); in calculateSEHStateNumbers()
346 cast<Constant>(CatchPad->getArgOperand(0)->stripPointerCasts()); in calculateSEHStateNumbers()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/WinEH/
Dwineh-demotion.ll105 ; CHECK: [[CatchPad:%[^ ]+]] = catchpad within %cs2 []
110 ; CHECK: catchret from [[CatchPad]] to label
298 ; CHECK-NEXT: %[[CatchPad:[^ ]+]] = catchpad within %cs1 []
306 ; CHECK-NEXT: catchret from %[[CatchPad]] to label %[[SplitLeft:[^ ]+]]
316 ; CHECK: catchret from %[[CatchPad]] to label %join
/external/llvm/test/CodeGen/WinEH/
Dwineh-demotion.ll105 ; CHECK: [[CatchPad:%[^ ]+]] = catchpad within %cs2 []
110 ; CHECK: catchret from [[CatchPad]] to label
298 ; CHECK-NEXT: %[[CatchPad:[^ ]+]] = catchpad within %cs1 []
306 ; CHECK-NEXT: catchret from %[[CatchPad]] to label %[[SplitLeft:[^ ]+]]
316 ; CHECK: catchret from %[[CatchPad]] to label %join
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DInstruction.h436 case Instruction::CatchPad: in isFenceLike()
456 case Instruction::CatchPad: in isEHPad()
DInstruction.def178 HANDLE_FUNCLETPAD_INST(50, CatchPad , CatchPadInst)
/external/llvm/lib/IR/
DInstruction.cpp270 case CatchPad: return "catchpad"; in getOpcodeName()
489 case Instruction::CatchPad: in mayReadFromMemory()
511 case Instruction::CatchPad: in mayWriteToMemory()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DInstruction.h527 case Instruction::CatchPad:
555 case Instruction::CatchPad:
DInstructions.h4408 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4413 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4443 return I->getOpcode() == Instruction::CatchPad;
4456 CatchReturnInst(Value *CatchPad, BasicBlock *BB, Instruction *InsertBefore);
4457 CatchReturnInst(Value *CatchPad, BasicBlock *BB, BasicBlock *InsertAtEnd);
4459 void init(Value *CatchPad, BasicBlock *BB);
4468 static CatchReturnInst *Create(Value *CatchPad, BasicBlock *BB,
4470 assert(CatchPad);
4472 return new (2) CatchReturnInst(CatchPad, BB, InsertBefore);
4475 static CatchReturnInst *Create(Value *CatchPad, BasicBlock *BB,
[all …]
DInstruction.def182 HANDLE_FUNCLETPAD_INST(50, CatchPad , CatchPadInst)
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DInlineFunction.cpp258 auto *CatchPad = cast<CatchPadInst>(HandlerBlock->getFirstNonPHI()); in getUnwindDestTokenHelper() local
259 for (User *Child : CatchPad->users()) { in getUnwindDestTokenHelper()
287 assert(getParentPad(ChildUnwindDestToken) == CatchPad); in getUnwindDestTokenHelper()
492 auto *CatchPad = HandlerBlock->getFirstNonPHI(); in getUnwindDestToken() local
493 for (User *U : CatchPad->users()) { in getUnwindDestToken()
498 CatchPad)) && in getUnwindDestToken()
566 if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad)) in HandleCallsInBlockInlinedThroughInvoke() local
567 MemoKey = CatchPad->getCatchSwitch(); in HandleCallsInBlockInlinedThroughInvoke()
DLocal.cpp2127 static unsigned getHashValue(CatchPadInst *CatchPad) { in markAliveBlocks()
2129 CatchPad->value_op_begin(), CatchPad->value_op_end())); in markAliveBlocks()
2149 auto *CatchPad = cast<CatchPadInst>(HandlerBB->getFirstNonPHI()); in markAliveBlocks() local
2150 if (!HandlerSet.insert({CatchPad, Empty}).second) { in markAliveBlocks()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstruction.cpp303 case CatchPad: return "catchpad"; in getOpcodeName()
512 case Instruction::CatchPad: in mayReadFromMemory()
532 case Instruction::CatchPad: in mayWriteToMemory()
DCore.cpp2759 LLVMValueRef LLVMBuildCatchRet(LLVMBuilderRef B, LLVMValueRef CatchPad, in LLVMBuildCatchRet() argument
2761 return wrap(unwrap(B)->CreateCatchRet(unwrap<CatchPadInst>(CatchPad), in LLVMBuildCatchRet()
2765 LLVMValueRef LLVMBuildCleanupRet(LLVMBuilderRef B, LLVMValueRef CatchPad, in LLVMBuildCleanupRet() argument
2767 return wrap(unwrap(B)->CreateCleanupRet(unwrap<CleanupPadInst>(CatchPad), in LLVMBuildCleanupRet()
2820 LLVMValueRef LLVMGetParentCatchSwitch(LLVMValueRef CatchPad) { in LLVMGetParentCatchSwitch() argument
2821 return wrap(unwrap<CatchPadInst>(CatchPad)->getCatchSwitch()); in LLVMGetParentCatchSwitch()
2824 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch) { in LLVMSetParentCatchSwitch() argument
2825 unwrap<CatchPadInst>(CatchPad) in LLVMSetParentCatchSwitch()
/external/llvm/include/llvm/IR/
DInstructions.h4163 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4168 : FuncletPadInst(Instruction::CatchPad, CatchSwitch, Args, Values,
4197 return I->getOpcode() == Instruction::CatchPad;
4211 void init(Value *CatchPad, BasicBlock *BB);
4212 CatchReturnInst(Value *CatchPad, BasicBlock *BB, Instruction *InsertBefore);
4213 CatchReturnInst(Value *CatchPad, BasicBlock *BB, BasicBlock *InsertAtEnd);
4221 static CatchReturnInst *Create(Value *CatchPad, BasicBlock *BB,
4223 assert(CatchPad);
4225 return new (2) CatchReturnInst(CatchPad, BB, InsertBefore);
4227 static CatchReturnInst *Create(Value *CatchPad, BasicBlock *BB,
[all …]
DInstruction.h414 case Instruction::CatchPad:
DInstruction.def178 HANDLE_FUNCLETPAD_INST(50, CatchPad , CatchPadInst)
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-c-test/
Decho.cpp654 LLVMValueRef CatchPad = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
658 Dst = LLVMBuildCleanupRet(Builder, CatchPad, Unwind); in CloneInstruction()
662 LLVMValueRef CatchPad = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
664 Dst = LLVMBuildCatchRet(Builder, CatchPad, SuccBB); in CloneInstruction()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Analysis/
DSparsePropagation.cpp533 CatchPadInst *CatchPad = Builder.CreateCatchPad(CatchSwitch, {}); in TEST_F() local
534 Builder.CreateCatchRet(CatchPad, Exit); in TEST_F()
/external/llvm/lib/Transforms/Utils/
DLocal.cpp1474 static unsigned getHashValue(CatchPadInst *CatchPad) { in markAliveBlocks()
1476 CatchPad->value_op_begin(), CatchPad->value_op_end())); in markAliveBlocks()
1495 auto *CatchPad = cast<CatchPadInst>(HandlerBB->getFirstNonPHI()); in markAliveBlocks() local
1496 if (!HandlerSet.insert({CatchPad, Empty}).second) { in markAliveBlocks()
DInlineFunction.cpp219 auto *CatchPad = cast<CatchPadInst>(HandlerBlock->getFirstNonPHI()); in getUnwindDestTokenHelper() local
220 for (User *Child : CatchPad->users()) { in getUnwindDestTokenHelper()
248 assert(getParentPad(ChildUnwindDestToken) == CatchPad); in getUnwindDestTokenHelper()
456 if (auto *CatchPad = dyn_cast<CatchPadInst>(FuncletPad)) in HandleCallsInBlockInlinedThroughInvoke() local
457 MemoKey = CatchPad->getCatchSwitch(); in HandleCallsInBlockInlinedThroughInvoke()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm-c/
DCore.h3144 LLVMValueRef LLVMBuildCleanupRet(LLVMBuilderRef B, LLVMValueRef CatchPad,
3146 LLVMValueRef LLVMBuildCatchRet(LLVMBuilderRef B, LLVMValueRef CatchPad,
3214 LLVMValueRef LLVMGetParentCatchSwitch(LLVMValueRef CatchPad);
3223 void LLVMSetParentCatchSwitch(LLVMValueRef CatchPad, LLVMValueRef CatchSwitch);
/external/llvm/lib/Analysis/
DAliasAnalysis.cpp368 ModRefInfo AAResults::getModRefInfo(const CatchPadInst *CatchPad, in getModRefInfo() argument
/external/llvm/test/Verifier/
Dinvalid-eh.ll33 ;T1: ; CHECK1: CatchReturnInst needs to be provided a CatchPad
43 ;T2: ; CHECK2: CatchReturnInst needs to be provided a CatchPad

12