/external/llvm/lib/Transforms/Utils/ |
FlattenCFG.cpp | 139 BranchInst *PBI = dyn_cast<BranchInst>(Pred->getTerminator()); 210 BranchInst *BPS = dyn_cast<BranchInst>(PS->getTerminator()); 221 TerminatorInst *TBB = LastCondBlock->getTerminator(); 224 BranchInst *PBI1 = dyn_cast<BranchInst>(PS1->getTerminator()); 225 BranchInst *PBI2 = dyn_cast<BranchInst>(PS2->getTerminator()); 230 (PS1->getTerminator()->getSuccessor(0) != PS2)) { 233 (PS2->getTerminator()->getSuccessor(0) != PS1)) 240 BranchInst *BI = dyn_cast<BranchInst>(CurrBlock->getTerminator()); 267 BranchInst *PBI = dyn_cast<BranchInst>(FirstCondBlock->getTerminator()); 279 PBI = cast<BranchInst>(FirstCondBlock->getTerminator()); [all...] |
UnifyFunctionExitNodes.cpp | 55 if (isa<ReturnInst>(I->getTerminator())) 57 else if (isa<UnreachableInst>(I->getTerminator())) 115 PN->addIncoming(BB->getTerminator()->getOperand(0), BB);
|
LoopUnrollRuntime.cpp | 76 PrologEnd->getTerminator()); 108 Instruction *InsertPt = PrologEnd->getTerminator(); 165 InsertTop->getTerminator()->setSuccessor(0, NewBB); 189 VMap.erase((*BB)->getTerminator()); 190 NewBB->getTerminator()->eraseFromParent(); 274 BasicBlock *NewPH = SplitBlock(PEnd, PEnd->getTerminator(), LPM->getAsPass()); 275 BranchInst *PreHeaderBR = cast<BranchInst>(PH->getTerminator()); 353 PH->getTerminator()->setSuccessor(0, NewBB);
|
LowerInvoke.cpp | 171 if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) { 393 if (ReturnInst *RI = dyn_cast<ReturnInst>(BB->getTerminator())) { 397 } else if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) { 439 EntryBB->getTerminator()); 443 EntryBB->getTerminator()); 444 new StoreInst(OldBuf, OldJmpBufPtr, true, EntryBB->getTerminator()); 447 new StoreInst(JmpBuf, JBListHead, true, EntryBB->getTerminator()); 465 InvokeNum, true, EntryBB->getTerminator()); 481 BasicBlock *ContBlock = EntryBB->splitBasicBlock(EntryBB->getTerminator(), 486 EntryBB->getTerminator()); [all...] |
LoopSimplify.cpp | 176 TerminatorInst *TI = (*I)->getTerminator(); 178 (*I)->getTerminator()->eraseFromParent(); 191 if (BranchInst *BI = dyn_cast<BranchInst>((*I)->getTerminator())) 304 BranchInst *BI = dyn_cast<BranchInst>(ExitingBlock->getTerminator()); 320 Preheader ? Preheader->getTerminator() : 0)) { 383 if (isa<IndirectBrInst>(P->getTerminator())) return 0; 402 PreheaderBB->getTerminator()->setDebugLoc( 423 if (isa<IndirectBrInst>(P->getTerminator())) return 0; 568 if (isa<IndirectBrInst>(PN->getIncomingBlock(i)->getTerminator())) 674 if (isa<IndirectBrInst>(P->getTerminator())) [all...] |
BasicBlockUtils.cpp | 40 TerminatorInst *BBTerm = BB->getTerminator(); 127 if (isa<InvokeInst>(PredBB->getTerminator())) return false; 245 TerminatorInst *LatchTerm = BB->getTerminator(); 262 assert(BB->getTerminator()->getNumSuccessors() == 1 && 264 return SplitBlock(BB, BB->getTerminator(), P); 454 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) && 456 Preds[i]->getTerminator()->replaceUsesOfWith(BB, NewBB); 514 assert(!isa<IndirectBrInst>(Preds[i]->getTerminator()) && 516 Preds[i]->getTerminator()->replaceUsesOfWith(OrigBB, NewBB1); 532 assert(!isa<IndirectBrInst>(Pred->getTerminator()) & [all...] |
DemoteRegToStack.cpp | 62 PN->getIncomingBlock(i)->getTerminator()); 134 P->getIncomingBlock(i)->getTerminator());
|
LowerExpectIntrinsic.cpp | 140 if (BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator())) { 143 } else if (SwitchInst *SI = dyn_cast<SwitchInst>(BB->getTerminator())) {
|
/external/llvm/lib/Target/NVPTX/ |
NVPTXAllocaHoisting.cpp | 24 TerminatorInst *firstTerminatorInst = (I++)->getTerminator();
|
NVPTXLowerAggrCopies.cpp | 43 origBB->getTerminator()->setSuccessor(0, loopBB); 44 IRBuilder<> builder(origBB, origBB->getTerminator()); 81 origBB->getTerminator()->setSuccessor(0, loopBB); 82 IRBuilder<> builder(origBB, origBB->getTerminator());
|
/external/llvm/lib/Analysis/ |
CodeMetrics.cpp | 78 if (isa<ReturnInst>(BB->getTerminator())) 92 notDuplicatable |= isa<IndirectBrInst>(BB->getTerminator());
|
BranchProbabilityInfo.cpp | 116 return UINT32_MAX / BB->getTerminator()->getNumSuccessors(); 125 TerminatorInst *TI = BB->getTerminator(); 175 TerminatorInst *TI = BB->getTerminator(); 219 TerminatorInst *TI = BB->getTerminator(); 274 BranchInst * BI = dyn_cast<BranchInst>(BB->getTerminator()); 361 BranchInst * BI = dyn_cast<BranchInst>(BB->getTerminator()); 421 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); 457 InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator());
|
ProfileDataLoaderPass.cpp | 119 TerminatorInst *TI = BB->getTerminator(); 140 TerminatorInst *TI = BB->getTerminator();
|
/external/llvm/include/llvm/Transforms/Utils/ |
BasicBlockUtils.h | 98 return SplitCriticalEdge(BB->getTerminator(), SI.getSuccessorIndex(), P); 108 TerminatorInst *TI = (*PI)->getTerminator(); 123 TerminatorInst *TI = Src->getTerminator();
|
/external/llvm/lib/Transforms/Instrumentation/ |
EdgeProfiling.cpp | 73 NumEdges += BB->getTerminator()->getNumSuccessors(); 94 TerminatorInst *TI = BB->getTerminator();
|
/external/llvm/tools/llvm-stress/ |
llvm-stress.cpp | 293 Value *V = new LoadInst(Ptr, "L", BB->getTerminator()); 312 new StoreInst(Val, Ptr, BB->getTerminator()); 334 Instruction* Term = BB->getTerminator(); 424 "E", BB->getTerminator()); 451 BB->getTerminator()); 467 "I", BB->getTerminator()); 495 new BitCastInst(V, DestTy, "PC", BB->getTerminator())); 504 new BitCastInst(V, DestTy, "BC", BB->getTerminator())); 512 new TruncInst(V, DestTy, "Tr", BB->getTerminator())); 517 new ZExtInst(V, DestTy, "ZE", BB->getTerminator())); [all...] |
/external/llvm/lib/Transforms/IPO/ |
PartialInlining.cpp | 53 BranchInst *BR = dyn_cast<BranchInst>(entryBlock->getTerminator()); 62 if (isa<ReturnInst>((*SI)->getTerminator())) { 109 newEntryBlock->getTerminator()->replaceUsesOfWith(preReturn, newReturnBlock);
|
LoopExtractor.cpp | 101 L->getHeader()->getParent()->getEntryBlock().getTerminator(); 112 if (!isa<ReturnInst>(ExitBlocks[i]->getTerminator())) { 232 isa<InvokeInst>(Parent->getTerminator())) { 298 dyn_cast<InvokeInst>(BlocksToExtract[i]->getTerminator()))
|
/external/llvm/lib/Transforms/Scalar/ |
SimplifyCFGPass.cpp | 164 if (InvokeInst *II = dyn_cast<InvokeInst>(BB->getTerminator())) { 236 ReturnInst *Ret = dyn_cast<ReturnInst>(BB.getTerminator()); 269 cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0)) { 278 Value *InVal = cast<ReturnInst>(RetBlock->getTerminator())->getOperand(0); 286 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); 293 BB.getTerminator()->eraseFromParent();
|
JumpThreading.cpp | 174 << "' with terminator: " << *BB->getTerminator() << '\n'); 182 BranchInst *BI = dyn_cast<BranchInst>(BB->getTerminator()); 611 TerminatorInst *BBTerm = BB->getTerminator(); 652 if (SinglePred->getTerminator()->getNumSuccessors() == 1 && 676 Instruction *Terminator = BB->getTerminator(); 709 TerminatorInst *BBTerm = BB->getTerminator(); 727 << "' folding terminator: " << *BB->getTerminator() << '\n'); 748 BranchInst *CondBr = dyn_cast<BranchInst>(BB->getTerminator()); 814 if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator())) 820 CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator())) [all...] |
LoopRotation.cpp | 221 BranchInst *Jmp = dyn_cast<BranchInst>(Latch->getTerminator()); 229 BranchInst *BI = dyn_cast<BranchInst>(LastExit->getTerminator()); 278 BranchInst *BI = dyn_cast<BranchInst>(OrigHeader->getTerminator()); 356 TerminatorInst *LoopEntryBranch = OrigPreheader->getTerminator(); 401 TerminatorInst *TI = OrigHeader->getTerminator(); 428 BranchInst *PHBI = cast<BranchInst>(OrigPreheader->getTerminator());
|
/external/llvm/include/llvm/Analysis/ |
CFGPrinter.h | 86 if (const BranchInst *BI = dyn_cast<BranchInst>(Node->getTerminator())) 91 if (const SwitchInst *SI = dyn_cast<SwitchInst>(Node->getTerminator())) {
|
/external/clang/lib/Analysis/ |
CFGStmtMap.cpp | 74 if (Stmt *Term = B->getTerminator())
|
/external/llvm/lib/IR/ |
BasicBlock.cpp | 120 TerminatorInst *BasicBlock::getTerminator() { 125 const TerminatorInst *BasicBlock::getTerminator() const { 299 assert(getTerminator() && "Can't use splitBasicBlock on degenerate BB!"); 338 TerminatorInst *TI = getTerminator();
|
/external/llvm/include/llvm/IR/ |
BasicBlock.h | 121 TerminatorInst *getTerminator(); 122 const TerminatorInst *getTerminator() const;
|