Home | History | Annotate | Download | only in Utils

Lines Matching full:getparent

166   BasicBlock *SI1BB = SI1->getParent();
167 BasicBlock *SI2BB = SI2->getParent();
206 BasicBlock *SI1BB = SI1->getParent();
207 BasicBlock *SI2BB = SI2->getParent();
278 BasicBlock *PBB = I->getParent();
554 if (SI->getNumSuccessors()*std::distance(pred_begin(SI->getParent()),
555 pred_end(SI->getParent())) <= 128)
672 if (PredDef == TI->getParent()) {
688 ThisCases[0].Dest->removePredecessor(TI->getParent());
723 i.getCaseSuccessor()->removePredecessor(TI->getParent());
729 MDBuilder(SI->getParent()->getContext()).
739 BasicBlock *TIBB = TI->getParent();
849 BasicBlock *BB = TI->getParent();
1041 "infloop", BB->getParent());
1104 BasicBlock *BIParent = BI->getParent();
1227 BasicBlock *BB1 = BI1->getParent();
1497 BasicBlock *BB = BI->getParent();
1553 if (!OpI || OpI->getParent() != BB ||
1701 if (UI->getParent() != BB || isa<PHINode>(UI)) return false;
1714 BasicBlock *BB = BI->getParent();
1718 if (!PN || PN->getParent() != BB || !PN->hasOneUse())
1723 FoldSingleEntryPHINodes(PN->getParent());
1753 RealDest->getParent(), RealDest);
1819 BasicBlock *BB = PN->getParent();
1972 TrueSucc->removePredecessor(BI->getParent());
1973 FalseSucc->removePredecessor(BI->getParent());
1986 if (TVPN->getParent() == TrueSucc)
1987 TrueValue = TVPN->getIncomingValueForBlock(BI->getParent());
1989 if (FVPN->getParent() == FalseSucc)
1990 FalseValue = FVPN->getIncomingValueForBlock(BI->getParent());
2006 TrueSucc->removePredecessor(BI->getParent());
2007 FalseSucc->removePredecessor(BI->getParent());
2076 BasicBlock *BB = BI->getParent();
2109 Cond->getParent() != BB || !Cond->hasOneUse())
2135 if (User == nullptr || User->getParent() != BB)
2308 PHIs[i]->getIncomingValueForBlock(PBI->getParent()));
2346 PHIs[i]->setIncomingValue(PHIs[i]->getBasicBlockIndex(PBI->getParent()),
2424 (!isa<Instruction>(V) || cast<Instruction>(V)->getParent() != BB))
2510 for (auto I = BasicBlock::iterator(PStore), E = PStore->getParent()->end();
2523 PStore->getParent());
2525 QStore->getParent(), PPHI);
2529 Value *PPred = PStore->getParent() == PTB ? PCond : QB.CreateNot(PCond);
2530 Value *QPred = QStore->getParent() == QTB ? QCond : QB.CreateNot(QCond);
2590 if (PFB == QBI->getParent()) {
2601 if (PTB == QBI->getParent())
2614 !HasOnePredAndOneSucc(PFB, PBI->getParent(), QBI->getParent()) ||
2615 !HasOnePredAndOneSucc(QFB, QBI->getParent(), PostBB))
2617 if ((PTB && !HasOnePredAndOneSucc(PTB, PBI->getParent(), QBI->getParent())) ||
2618 (QTB && !HasOnePredAndOneSucc(QTB, QBI->getParent(), PostBB)))
2620 if (PostBB->getNumUses() != 2 || QBI->getParent()->getNumUses() != 2)
2660 BasicBlock *BB = BI->getParent();
2713 if (PBI->getSuccessor(0) == BI->getParent() &&
2779 unsigned PBBIdx = PN->getBasicBlockIndex(PBI->getParent());
2789 DEBUG(dbgs() << "FOLDING BRs:" << *PBI->getParent()
2790 << "AND: " << *BI->getParent());
2804 "infloop", BB->getParent());
2809 DEBUG(dbgs() << *PBI->getParent()->getParent());
2859 AddPredecessorToBlock(OtherDest, PBI->getParent(), BB);
2869 unsigned PBBIdx = PN->getBasicBlockIndex(PBI->getParent());
2879 DEBUG(dbgs() << "INTO: " << *PBI->getParent());
2880 DEBUG(dbgs() << *PBI->getParent()->getParent());
2911 Succ->removePredecessor(OldTerm->getParent(),
3030 BasicBlock *BB = ICI->getParent();
3105 BB->getParent(), BB);
3177 BasicBlock *BB = BI->getParent();
3243 BasicBlock *BB = RI->getParent();
3276 BasicBlock *BB = RI->getParent();
3278 if (CPInst->getParent() != BB)
3326 if (SrcPN && SrcPN->getParent() == BB) {
3386 BasicBlock *BB = RI->getParent();
3436 BasicBlock *BB = UI->getParent();
3509 BB->removePredecessor(SI->getParent());
3517 removeUnwindEdge(TI->getParent());
3530 BB != &BB->getParent()->getEntryBlock()) {
3645 cast<PHINode>(BBI)->removeIncomingValue(SI->getParent());
3651 cast<PHINode>(BBI)->removeIncomingValue(SI->getParent());
3694 SI->getParent(), "");
3721 Case.getCaseSuccessor()->removePredecessor(SI->getParent());
3727 MDBuilder(SI->getParent()->getContext()).
3876 BasicBlock *Pred = SI->getParent();
3902 if (I->getParent() == CaseDest)
4051 BasicBlock *SelectBB = SI->getParent();
4056 Builder.CreateBr(PHI->getParent());
4062 if (Succ == PHI->getParent())
4419 if (CmpInst->getParent() != PhiBlock)
4451 BasicBlock *BranchBlock = RangeCheckBranch->getParent();
4569 Module &Mod = *CommonDest->getParent()->getParent();
4572 CommonDest->getParent(),
4617 CommonDest->getParent(),
4648 AddPredecessorToBlock(SI->getDefaultDest(), MaskBB, SI->getParent());
4654 SI->getDefaultDest()->removePredecessor(SI->getParent(),
4681 BasicBlock *PhiBlock = PHI->getParent();
4700 Succ->removePredecessor(SI->getParent());
4711 BasicBlock *BB = SI->getParent();
4757 BasicBlock *BB = IBI->getParent();
4870 BasicBlock *BB = BI->getParent();
4877 if (I->isTerminator() && BB != &BB->getParent()->getEntryBlock() &&
4923 BasicBlock *BB = BI->getParent();
4993 if (PN->getParent() == BI->getParent())
5031 if (i == I->getParent()->end() || i->mayHaveSideEffects())
5086 assert(BB && BB->getParent() && "Block not embedded in function!");
5092 BB != &BB->getParent()->getEntryBlock()) ||