/freebsd-9.3-release/contrib/llvm/lib/Transforms/Utils/ |
H A D | BreakCriticalEdges.cpp | 89 /// is the new loop exit block, and DestBB is the old loop exit, now the 93 BasicBlock *DestBB) { 99 for (BasicBlock::iterator I = DestBB->begin(); 150 BasicBlock *DestBB = TI->getSuccessor(SuccNum); local 154 if (DestBB->isLandingPad()) return 0; 158 TIBB->getName() + "." + DestBB->getName() + "_crit_edge"); 160 BranchInst *NewBI = BranchInst::Create(DestBB, NewBB); 171 // If there are any PHI nodes in DestBB, we need to update them so that they 175 for (BasicBlock::iterator I = DestBB->begin(); isa<PHINode>(I); ++I) { 192 // If there are any other edges from TIBB to DestBB, updat 91 createPHIsForSplitLoopExit(ArrayRef<BasicBlock *> Preds, BasicBlock *SplitBB, BasicBlock *DestBB) argument [all...] |
H A D | Local.cpp | 472 /// MergeBasicBlockIntoOnlyPred - DestBB is a block with one predecessor and its 473 /// predecessor is known to have one successor (DestBB!). Eliminate the edge 474 /// between them, moving the instructions in the predecessor into DestBB and 477 void llvm::MergeBasicBlockIntoOnlyPred(BasicBlock *DestBB, Pass *P) { argument 479 while (PHINode *PN = dyn_cast<PHINode>(DestBB->begin())) { 487 BasicBlock *PredBB = DestBB->getSinglePredecessor(); 490 // Zap anything that took the address of DestBB. Not doing this will give the 492 if (DestBB->hasAddressTaken()) { 493 BlockAddress *BA = BlockAddress::get(DestBB); 501 // Anything that branched to PredBB now branches to DestBB [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Target/AArch64/ |
H A D | AArch64BranchFixupPass.cpp | 434 MachineBasicBlock *DestBB, 437 int64_t DestOffset = BBInfo[DestBB->getNumber()].Offset; 439 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() 452 MachineBasicBlock *DestBB = 0; local 455 DestBB = MI->getOperand(i).getMBB(); 459 assert(DestBB && "Branch with no destination BB?"); 461 // Check to see if the DestBB is already in-range. 462 if (isBBInRange(MI, DestBB, Br.OffsetBits)) 543 MachineBasicBlock *DestBB = MI->getOperand(CondBrMBBOperand).getMBB(); local 544 BMI->getOperand(0).setMBB(DestBB); 433 isBBInRange(MachineInstr *MI, MachineBasicBlock *DestBB, unsigned OffsetBits) argument [all...] |
H A D | AArch64ISelLowering.cpp | 1934 SDValue DestBB = Op.getOperand(2); local 1948 DestBB); 1959 SDValue DestBB = Op.getOperand(4); local 1982 Chain, CmpOp, A64cc, DestBB); 1994 Chain, SetCC, A64cc, DestBB); 1999 A64BR_CC, SetCC, A64cc, DestBB);
|
/freebsd-9.3-release/contrib/llvm/lib/Transforms/Scalar/ |
H A D | CodeGenPrepare.cpp | 118 bool CanMergeBlocks(const BasicBlock *BB, const BasicBlock *DestBB) const; 294 BasicBlock *DestBB = BI->getSuccessor(0); local 295 if (DestBB == BB) 298 if (!CanMergeBlocks(BB, DestBB)) 307 /// CanMergeBlocks - Return true if we can merge BB into DestBB if there is a 311 const BasicBlock *DestBB) const { 320 if (User->getParent() != DestBB || !isa<PHINode>(User)) 322 // If User is inside DestBB block and it is a PHINode then check 325 if (User->getParent() == DestBB) { 337 // If BB and DestBB contai 381 BasicBlock *DestBB = BI->getSuccessor(0); local 383 DEBUG(dbgs() << "MERGING MOSTLY EMPTY BLOCKS - BEFORE:\\n" << *BB << *DestBB); local [all...] |
H A D | JumpThreading.cpp | 1117 BasicBlock *DestBB; local 1119 DestBB = 0; 1121 DestBB = BI->getSuccessor(cast<ConstantInt>(Val)->isZero()); 1123 DestBB = SI->findCaseValue(cast<ConstantInt>(Val)).getCaseSuccessor(); 1127 DestBB = cast<BlockAddress>(Val)->getBasicBlock(); 1132 OnlyDest = DestBB; 1133 else if (OnlyDest != DestBB) 1136 PredToDestList.push_back(std::make_pair(Pred, DestBB));
|
/freebsd-9.3-release/contrib/llvm/lib/Target/ARM/ |
H A D | ARMConstantIslandPass.cpp | 1505 bool ARMConstantIslands::isBBInRange(MachineInstr *MI,MachineBasicBlock *DestBB, argument 1509 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; 1511 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() 1532 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local 1534 // Check to see if the DestBB is already in-range. 1535 if (isBBInRange(MI, DestBB, Br.MaxDisp)) 1573 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local 1608 BMI->getOperand(0).setMBB(DestBB); 1627 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber() 1638 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB) 1774 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); local 1804 MachineBasicBlock *DestBB = Br.MI->getOperand(0).getMBB(); local [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineLoadStoreAlloca.cpp | 702 BasicBlock *DestBB = StoreBB->getTerminator()->getSuccessor(0); local 706 pred_iterator PI = pred_begin(DestBB); 713 if (++PI == pred_end(DestBB)) 722 if (++PI != pred_end(DestBB)) 727 if (StoreBB == DestBB || OtherBB == DestBB) 795 MergedVal = InsertNewInstBefore(PN, DestBB->front()); 800 BBI = DestBB->getFirstInsertionPt();
|
/freebsd-9.3-release/contrib/llvm/lib/Target/Mips/ |
H A D | MipsConstantIslandPass.cpp | 1355 (MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) { 1360 unsigned DestOffset = BBInfo[DestBB->getNumber()].Offset; 1362 DEBUG(dbgs() << "Branch of destination BB#" << DestBB->getNumber() 1383 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local 1385 // Check to see if the DestBB is already in-range. 1386 if (isBBInRange(MI, DestBB, Br.MaxDisp)) 1421 MachineBasicBlock *DestBB = MI->getOperand(0).getMBB(); local 1455 BMI->getOperand(0).setMBB(DestBB); 1473 DEBUG(dbgs() << " Insert B to BB#" << DestBB->getNumber() 1483 BuildMI(MBB, DebugLoc(), TII->get(Br.UncondBr)).addMBB(DestBB); 1354 isBBInRange(MachineInstr *MI,MachineBasicBlock *DestBB, unsigned MaxDisp) argument [all...] |
/freebsd-9.3-release/contrib/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 2578 BasicBlock *DestBB = getBasicBlock(Record[CurIdx++]); local 2581 SI->addCase(*cvi, DestBB); 2602 BasicBlock *DestBB = getBasicBlock(Record[1+3+i*2]); local 2603 if (CaseVal == 0 || DestBB == 0) { 2607 SI->addCase(CaseVal, DestBB); 2623 if (BasicBlock *DestBB = getBasicBlock(Record[2+i])) { 2624 IBI->addDestination(DestBB);
|
/freebsd-9.3-release/contrib/llvm/lib/AsmParser/ |
H A D | LLParser.cpp | 3466 BasicBlock *DestBB; 3470 ParseTypeAndBasicBlock(DestBB, PFS)) 3478 Table.push_back(std::make_pair(cast<ConstantInt>(Constant), DestBB)); 3508 BasicBlock *DestBB; 3509 if (ParseTypeAndBasicBlock(DestBB, PFS)) 3511 DestList.push_back(DestBB); 3514 if (ParseTypeAndBasicBlock(DestBB, PFS)) 3516 DestList.push_back(DestBB);
|
/freebsd-9.3-release/contrib/llvm/lib/IR/ |
H A D | Instructions.cpp | 3468 void IndirectBrInst::addDestination(BasicBlock *DestBB) { argument 3475 OperandList[OpNo] = DestBB;
|