reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/LoopInfo.h
 1078     if (I->getParent() == From->getParent())
 1078     if (I->getParent() == From->getParent())
 1082     Loop *ToLoop = getLoopFor(I->getParent());
 1088     return ToLoop->contains(getLoopFor(From->getParent()));
 1100     auto *OldBB = Inst->getParent();
 1101     auto *NewBB = NewLoc->getParent();
 1131                                      : UI->getParent();
 1153         auto *DefBlock = DefI->getParent();
include/llvm/Analysis/PHITransAddr.h
   67       if (InstInputs[i]->getParent() == BB)
include/llvm/Analysis/SparsePropagation.h
  388   BasicBlock *BB = TI.getParent();
  431     if (!isEdgeFeasible(PN.getIncomingBlock(i), PN.getParent(), true))
  482           if (BBExecutable.count(Inst->getParent())) // Inst is executable?
include/llvm/IR/CFG.h
   75     return cast<Instruction>(*It)->getParent();
include/llvm/IR/CallSite.h
  101   BBTy* getParent() const { return getInstruction()->getParent(); }
  275   FunTy *getCaller() const { return (*this)->getParent()->getParent(); }
include/llvm/IR/IRBuilder.h
  140     BB = I->getParent();
include/llvm/Transforms/Utils/SSAUpdaterImpl.h
  409     BBMap[PHI->getParent()]->PHITag = PHI;
  432         if (!IncomingPHIVal || IncomingPHIVal->getParent() != PredInfo->BB)
  455         BlkT *BB = PHI->getParent();
lib/Analysis/AssumptionCache.cpp
  201   assert(CI->getParent() &&
  203   assert(&F == CI->getParent()->getParent() &&
  214     assert(&F == cast<Instruction>(VH)->getParent()->getParent() &&
lib/Analysis/CaptureTracking.cpp
   86       BasicBlock *BB = I->getParent();
lib/Analysis/CodeMetrics.cpp
   84     if (!L->contains(I->getParent()))
  104     assert(I->getParent()->getParent() == F &&
lib/Analysis/Delinearization.cpp
   81     const BasicBlock *BB = Inst->getParent();
lib/Analysis/DependenceAnalysis.cpp
 3271   Loop *SrcLoop = LI->getLoopFor(Src->getParent());
 3272   Loop *DstLoop = LI->getLoopFor(Dst->getParent());
 3472       classifyPair(Pair[P].Src, LI->getLoopFor(Src->getParent()),
 3473                    Pair[P].Dst, LI->getLoopFor(Dst->getParent()),
 3550                          LI->getLoopFor(Src->getParent()),
 3553                          LI->getLoopFor(Dst->getParent()),
 3686                 classifyPair(Pair[SJ].Src, LI->getLoopFor(Src->getParent()),
 3687                              Pair[SJ].Dst, LI->getLoopFor(Dst->getParent()),
 3873       classifyPair(Pair[P].Src, LI->getLoopFor(Src->getParent()),
 3874                    Pair[P].Dst, LI->getLoopFor(Dst->getParent()),
 3888                          LI->getLoopFor(Src->getParent()),
 3891                          LI->getLoopFor(Dst->getParent()),
 3984                 classifyPair(Pair[SJ].Src, LI->getLoopFor(Src->getParent()),
 3985                              Pair[SJ].Dst, LI->getLoopFor(Dst->getParent()),
lib/Analysis/DivergenceAnalysis.cpp
  235         if (DivLoop->contains(OpInst->getParent())) {
  418   return isDivergent(V) || isTemporalDivergent(*I.getParent(), V);
lib/Analysis/EHPersonalities.cpp
  128         SuccColor = cast<Instruction>(ParentPad)->getParent();
lib/Analysis/GlobalsModRef.cpp
  354         Readers->insert(LI->getParent()->getParent());
  358           Writers->insert(SI->getParent()->getParent());
  376             Writers->insert(Call->getParent()->getParent());
lib/Analysis/IVDescriptors.cpp
  200   if (Phi->getParent() != TheLoop->getHeader())
  286     if (Cur != Phi && IsAPhi && Cur->getParent() == Phi->getParent())
  286     if (Cur != Phi && IsAPhi && Cur->getParent() == Phi->getParent())
  343       BasicBlock *Parent = UI->getParent();
  676   if (Phi->getParent() != TheLoop->getHeader() ||
  706     if (I->isCast() && (I->getParent() == Phi->getParent()) && I->hasOneUse() &&
  706     if (I->isCast() && (I->getParent() == Phi->getParent()) && I->hasOneUse() &&
  834   if (TheLoop->getHeader() != Phi->getParent())
lib/Analysis/IVUsers.cpp
  140   if (DT->dominates(LatchBlock, User->getParent()))
  217     BasicBlock *UseBB = User->getParent();
  234     if (LI->getLoopFor(User->getParent()) != L) {
lib/Analysis/InlineCost.cpp
  491     if (KnownSuccessor && KnownSuccessor != I.getParent())
  802   } else if (isa<UnreachableInst>(Call.getParent()->getTerminator()))
  824   auto CallSiteBB = Call.getParent();
  850   auto CallSiteBB = Call.getParent();
lib/Analysis/InstructionSimplify.cpp
  150   if (!I->getParent() || !P->getParent() || !I->getFunction())
  150   if (!I->getParent() || !P->getParent() || !I->getFunction())
  159   if (I->getParent() == &I->getFunction()->getEntryBlock() &&
 5436     if (I->getParent() && !I->isEHPad() && !I->isTerminator() &&
 5468     if (I->getParent() && !I->isEHPad() && !I->isTerminator() &&
lib/Analysis/LazyValueInfo.cpp
  624   if (!BBI || BBI->getParent() != BB)
  844   if (BBI->getIterator() == BBI->getParent()->begin())
  847                                    BBI->getParent()->rend())) {
 1892     BasicBlock *BB = CxtI->getParent();
 1905       if (PHI->getParent() == BB) {
 1929         cast<Instruction>(V)->getParent() != BB) {
lib/Analysis/LegacyDivergenceAnalysis.cpp
  154   BasicBlock *ThisBB = TI->getParent();
  219     if (!InfluenceRegion.count(UserInst->getParent())) {
lib/Analysis/Lint.cpp
  365       Assert(I.getParent()->getParent()->isVarArg(),
  402   Function *F = I.getParent()->getParent();
  607     Assert(&I.getParent()->getParent()->getEntryBlock() == I.getParent(),
  607     Assert(&I.getParent()->getParent()->getEntryBlock() == I.getParent(),
  642   Assert(&I == &I.getParent()->front() ||
  676     BasicBlock *BB = L->getParent();
lib/Analysis/Loads.cpp
  288                        E = ScanFrom->getParent()->begin();
lib/Analysis/LoopAccessAnalysis.cpp
 1944       if (blockNeedsPredication(ST->getParent(), TheLoop, DT))
 1988     if (blockNeedsPredication(LD->getParent(), TheLoop, DT))
 2095     CodeRegion = I->getParent();
 2125     return I->getParent() == Loc->getParent() ? I : nullptr;
 2125     return I->getParent() == Loc->getParent() ? I : nullptr;
lib/Analysis/LoopCacheAnalysis.cpp
  314   const BasicBlock *BB = StoreOrLoadInst.getParent();
lib/Analysis/LoopInfo.cpp
  108       MSSAU->moveToPlace(MUD, InsertPt->getParent(), MemorySSA::End);
  340   if (AuxIndVar.getParent() != Header)
lib/Analysis/LoopUnrollAnalyzer.cpp
  213   return PN.getParent() == L->getHeader();
lib/Analysis/MemoryDependenceAnalysis.cpp
  427   if (ClosestDependency->getParent() == BB)
  434       LI, NonLocalDepResult(ClosestDependency->getParent(),
  734   BasicBlock *QueryParent = QueryInst->getParent();
  819     BasicBlock *QueryBB = QueryCall->getParent();
  918   BasicBlock *FromBB = QueryInst->getParent();
 1004     assert(ExistingResult->getResult().getInst()->getParent() == BB &&
 1515     assert(Target->getParent() == PInfo[i].getBB());
lib/Analysis/MemorySSA.cpp
 1782     MUD = new MemoryDef(I->getContext(), nullptr, I, I->getParent(), NextID++);
 1784     MUD = new MemoryUse(I->getContext(), nullptr, I, I->getParent());
lib/Analysis/MemorySSAUpdater.cpp
 1173   assert(Start->getParent() == To && "Incorrect Start instruction");
 1424   assert(I->getParent() == InsertPt->getBlock() &&
 1434   assert(I->getParent() == InsertPt->getBlock() &&
lib/Analysis/MustExecute.cpp
  137   if (!LHS || LHS->getParent() != CurLoop->getHeader())
lib/Analysis/PHITransAddr.cpp
  155     if (Inst->getParent() != CurBB) {
  207             (!DT || DT->dominates(CastI->getParent(), PredBB)))
  243             GEPI->getParent()->getParent() == CurBB->getParent() &&
  244             (!DT || DT->dominates(GEPI->getParent(), PredBB))) {
  295             BO->getParent()->getParent() == CurBB->getParent() &&
  296             (!DT || DT->dominates(BO->getParent(), PredBB)))
  327       if (!DT->dominates(Inst->getParent(), PredBB))
  398     BasicBlock *CurBB = GEP->getParent();
lib/Analysis/ScalarEvolution.cpp
 4962   const Loop *L = LI.getLoopFor(PN->getParent());
 4963   assert(L && L->getHeader() == PN->getParent());
 5004   const Loop *L = LI.getLoopFor(PN->getParent());
 5005   if (!L || L->getHeader() != PN->getParent())
 5242   BasicBlockEdge LeftEdge(BI->getParent(), BI->getSuccessor(0));
 5243   BasicBlockEdge RightEdge(BI->getParent(), BI->getSuccessor(1));
 5272     const Loop *L = LI.getLoopFor(PN->getParent());
 5291     BasicBlock *IDom = DT[PN->getParent()]->getIDom()->getBlock();
 5299         IsAvailableOnEntry(L, DT, getSCEV(LHS), PN->getParent()) &&
 5300         IsAvailableOnEntry(L, DT, getSCEV(RHS), PN->getParent()))
 6143     if (!DT.isReachableFromEntry(I->getParent()))
 6749           auto *LoopForUser = LI.getLoopFor(I->getParent());
 7632     if (!PNOut || PNOut->getParent() != L->getHeader())
 7732     return L->getHeader() == I->getParent();
 7889   assert(PN->getParent() == Header && "Can't evaluate PHI not in loop header!");
 7932       if (!PHI || PHI == PN || PHI->getParent() != Header) continue;
 7969   assert(PN->getParent() == Header && "Can't evaluate PHI not in loop header!");
 8007       if (!PHI || PHI->getParent() != Header) continue;
 8153         const Loop *LI = this->LI[I->getParent()];
 8156             PN->getParent() == LI->getHeader()) {
 8187             if (IsAvailableOnEntry(LI, DT, OnBackedge, PN->getParent()))
11580       const Loop *L = LI.getLoopFor(I.getParent());
11822       if (I->getParent() == BB)
11824       if (DT.properlyDominates(I->getParent(), BB))
lib/Analysis/ScalarEvolutionExpander.cpp
 1008       !SE.DT.dominates(InsertPos->getParent(), IncV->getParent()))
 1008       !SE.DT.dominates(InsertPos->getParent(), IncV->getParent()))
 1271          SE.DT.properlyDominates(cast<Instruction>(StartV)->getParent(),
 1798             (SE.LI.getLoopFor(EntInst->getParent()) == nullptr ||
 1799              SE.LI.getLoopFor(EntInst->getParent())->contains(InsertPt)))
 1865     InsertPt = &*InsertPt->getParent()->getFirstInsertionPt();
 2055               IP = &*PN->getParent()->getFirstInsertionPt();
lib/Analysis/ValueTracking.cpp
  594     assert(I->getParent()->getParent() == Q.CxtI->getParent()->getParent() &&
 3698   if (!PrevValue || LI->getLoopFor(PrevValue->getParent()) != L)
 3700   if (!PrevValue || LI->getLoopFor(PrevValue->getParent()) != L)
lib/Analysis/VectorUtils.cpp
  925         (!isPredicated(B->getParent()) || EnablePredicatedInterleavedMemAccesses)) {
 1025       BasicBlock *BlockA = A->getParent();  
 1026       BasicBlock *BlockB = B->getParent();  
lib/CodeGen/AtomicExpandPass.cpp
  643   BasicBlock *BB = I->getParent();
  849   BasicBlock *BB = CI->getParent();
 1095   BasicBlock *BB = CI->getParent();
lib/CodeGen/CodeGenPrepare.cpp
  771             if (Insn && Insn->getParent() == BB &&
  772                 Insn->getParent() != UPN->getIncomingBlock(I))
  850     if (InValPhi && InValPhi->getParent() == BB) {
  940   for (auto R = RelocatedBase->getParent()->getFirstInsertionPt();
  957     if (RelocatedBase->getParent() != ToReplace->getParent()) {
  957     if (RelocatedBase->getParent() != ToReplace->getParent()) {
 1073   BasicBlock *DefBB = CI->getParent();
 1086     BasicBlock *UserBB = User->getParent();
 1182   if (BO->getParent() != Cmp->getParent()) {
 1182   if (BO->getParent() != Cmp->getParent()) {
 1207   for (Instruction &Iter : *Cmp->getParent()) {
 1273   if (Add->getParent() != Cmp->getParent() && !Add->hasOneUse())
 1273   if (Add->getParent() != Cmp->getParent() && !Add->hasOneUse())
 1376     BasicBlock *UserBB = User->getParent();
 1377     BasicBlock *DefBB = Cmp->getParent();
 1440       AndI->getParent() == cast<Instruction>(*AndI->user_begin())->getParent())
 1440       AndI->getParent() == cast<Instruction>(*AndI->user_begin())->getParent())
 1466   LLVM_DEBUG(AndI->getParent()->dump());
 1483         User->getParent() == AndI->getParent() ? AndI : User;
 1483         User->getParent() == AndI->getParent() ? AndI : User;
 1493     LLVM_DEBUG(User->getParent()->dump());
 1525   BasicBlock *UserBB = User->getParent();
 1557     BasicBlock *TruncUserBB = TruncUser->getParent();
 1614   BasicBlock *DefBB = ShiftI->getParent();
 1636     BasicBlock *UserBB = User->getParent();
 1736   BasicBlock *StartBlock = CountZeros->getParent();
 1775   BasicBlock *BB = CI->getParent();
 1879           ExtVal->getParent() == CI->getParent())
 1879           ExtVal->getParent() == CI->getParent())
 1993   if (PN && PN->getParent() != BB)
 2022       if (CI && CI->hasOneUse() && CI->getParent() == PredBB &&
 2303       HasPrevInstruction = (It != (Inst->getParent()->begin()));
 2307         Point.BB = Inst->getParent();
 2313         if (Inst->getParent())
 2318         if (Inst->getParent())
 3312             FirstPhi->getParent() != SecondPhi->getParent())
 3312             FirstPhi->getParent() != SecondPhi->getParent())
 3350       for (auto &P : PHI->getParent()->phis()) {
 3401         for (auto B : predecessors(PHI->getParent())) {
 4189               BaseI ? BaseI->getParent() : &GEP->getFunction()->getEntryBlock();
 4517   return Val->isUsedInBasicBlock(MemoryInst->getParent());
 4635     return I->getParent() != BB;
 4751         return IsNonLocalValue(V, MemoryInst->getParent());
 5014     BasicBlock *BB = CurInstIterator->getParent();
 5344           NewBaseInsertBB = BaseI->getParent();
 5411   if (!HasPromoted && LI->getParent() == Inst->getParent())
 5411   if (!HasPromoted && LI->getParent() == Inst->getParent())
 5579   BasicBlock *DefBB = I->getParent();
 5593   if (!isa<Instruction>(Src) || DefBB != cast<Instruction>(Src)->getParent())
 5601     BasicBlock *UserBB = UI->getParent();
 5612     BasicBlock *UserBB = UI->getParent();
 5628     BasicBlock *UserBB = User->getParent();
 5942        It != SI->getParent()->end(); ++It) {
 6004   BasicBlock *StartBlock = SI->getParent();
 6117   BasicBlock *DefBB = SVI->getParent();
 6136     BasicBlock *UserBB = UI->getParent();
 6179   BasicBlock *TargetBB = I->getParent();
 6184     if (UI->getParent() == TargetBB || isa<PHINode>(UI))
 6604   BasicBlock *Parent = Inst->getParent();
 6613     if (ToBePromoted->getParent() != Parent) {
 6615                         << ToBePromoted->getParent()->getName()
 6730   if (LBC && LBC->getParent() != SI.getParent())
 6730   if (LBC && LBC->getParent() != SI.getParent())
 6732   if (HBC && HBC->getParent() != SI.getParent())
 6732   if (HBC && HBC->getParent() != SI.getParent())
 6825   BasicBlock *SrcBlock = GEPI->getParent();
 6843   if (GEPIOpI->getParent() != SrcBlock)
 6849           if (I->getParent() != SrcBlock) {
 6867     if (UI->getParent() == SrcBlock)
 6916         return cast<Instruction>(Usr)->getParent() != SrcBlock;
 7137         if (isa<PHINode>(VI) && VI->getParent()->getTerminator()->isEHPad())
 7143           DVI->insertBefore(&*VI->getParent()->getFirstInsertionPt());
lib/CodeGen/DwarfEHPrepare.cpp
  171       BasicBlock *BB = RI->getParent();
  221     BasicBlock *UnwindBB = RI->getParent();
  240     BasicBlock *Parent = RI->getParent();
lib/CodeGen/ExpandMemCmp.cpp
  613     BasicBlock *StartBlock = CI->getParent();
lib/CodeGen/GlobalMerge.cpp
  330         Function *ParentFn = I->getParent()->getParent();
lib/CodeGen/HardwareLoops.cpp
  432   BasicBlock *Latch = ExitBranch->getParent();
lib/CodeGen/IndirectBrExpandPass.cpp
  188     SwitchBB = IndirectBrs[0]->getParent();
  203       SwitchPN->addIncoming(GetSwitchValue(IBr), IBr->getParent());
lib/CodeGen/InterleavedLoadCombinePass.cpp
  881     Result.BB = LI->getParent();
 1105   BasicBlock *BB = (*LIs.begin())->getParent();
lib/CodeGen/IntrinsicLowering.cpp
   44   IRBuilder<> Builder(CI->getParent(), CI->getIterator());
lib/CodeGen/PreISelIntrinsicLowering.cpp
   83     IRBuilder<> Builder(CI->getParent(), CI->getIterator());
lib/CodeGen/SafeStackColoring.cpp
   90         BBMarkerSet[UI->getParent()][UI] = {AllocaNo, IsStart};
lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
  139   BasicBlock *IfBlock = CI->getParent();
  277   BasicBlock *IfBlock = CI->getParent();
  400   BasicBlock *IfBlock = CI->getParent();
  527   BasicBlock *IfBlock = CI->getParent();
  609   BasicBlock *IfBlock = CI->getParent();
  720   BasicBlock *IfBlock = CI->getParent();
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1622     SuccessorColor = cast<Instruction>(ParentPad)->getParent();
lib/CodeGen/ShadowStackGCLowering.cpp
  305   IRBuilder<> AtEntry(IP->getParent(), IP);
  312   AtEntry.SetInsertPoint(IP->getParent(), IP);
  339   AtEntry.SetInsertPoint(IP->getParent(), IP);
lib/CodeGen/SjLjEHPrepare.cpp
  161   IRBuilder<> Builder(SelI->getParent(), std::next(SelI->getIterator()));
  184     IRBuilder<> Builder(LPI->getParent(),
  185                         LPI->getParent()->getFirstInsertionPt());
  270           cast<Instruction>(Inst.user_back())->getParent() == &BB &&
  284         if (UI->getParent() != &BB || isa<PHINode>(UI))
  295           MarkBlocksLiveIn(U->getParent(), LiveBBs);
lib/CodeGen/WasmEHPrepare.cpp
  189     auto *BB = ThrowI->getParent();
lib/CodeGen/WinEHPrepare.cpp
  232   return CleanupPad->getParent();
  904         BasicBlock *UserBB = UserI->getParent();
  922       SSAUpdate.AddAvailableValue(OldI->getParent(), OldI);
  923       SSAUpdate.AddAvailableValue(NewI->getParent(), NewI);
 1072   BasicBlock *PHIBlock = PN->getParent();
 1096     if (isa<PHINode>(UsingInst) && UsingInst->getParent()->isEHPad()) {
 1116   Worklist.push_back({OriginalPHI->getParent(), OriginalPHI});
 1124     if (PN && PN->getParent() == EHBlock) {
 1187       BasicBlock *PHIBlock = UsingInst->getParent();
lib/ExecutionEngine/Interpreter/Execution.cpp
 1142       BasicBlock *Parent = CS.getInstruction()->getParent();
lib/FuzzMutate/IRMutator.cpp
  187   BasicBlock *BB = Inst.getParent();
lib/FuzzMutate/Operations.cpp
  142     BasicBlock *Block = Inst->getParent();
lib/IR/AutoUpgrade.cpp
 1650   Builder.SetInsertPoint(CI->getParent(), CI->getIterator());
 3876       IRBuilder<> Builder(CI->getParent(), CI->getIterator());
lib/IR/Core.cpp
 2692   return wrap(unwrap<Instruction>(Inst)->getParent());
 2714   if (++I == Instr->getParent()->end())
 2722   if (I == Instr->getParent()->begin())
 3004   unwrap(Builder)->SetInsertPoint(I->getParent(), I->getIterator());
lib/IR/DIBuilder.cpp
  852   return insertDeclare(Storage, VarInfo, Expr, DL, InsertBefore->getParent(),
  868       LabelInfo, DL, InsertBefore ? InsertBefore->getParent() : nullptr,
  883       V, VarInfo, Expr, DL, InsertBefore ? InsertBefore->getParent() : nullptr,
lib/IR/Dominators.cpp
  234   if (PN && PN->getParent() == BBE.getEnd() &&
  244     UseBB = UserInst->getParent();
  259     UseBB = UserInst->getParent();
  311   return isReachableFromEntry(I->getParent());
lib/IR/Instruction.cpp
   29     BasicBlock *BB = InsertBefore->getParent();
   64   getParent()->getInstList().remove(getIterator());
   68   return getParent()->getInstList().erase(getIterator());
   74   InsertPos->getParent()->getInstList().insert(InsertPos->getIterator(), this);
   80   InsertPos->getParent()->getInstList().insertAfter(InsertPos->getIterator(),
   87   moveBefore(*MovePos->getParent(), MovePos->getIterator());
   91   moveBefore(*MovePos->getParent(), ++MovePos->getIterator());
   96   assert(I == BB.end() || I->getParent() == &BB);
   97   BB.getInstList().splice(I, getParent()->getInstList(), getIterator());
lib/IR/Instructions.cpp
  259 Function *CallBase::getCaller() { return getParent()->getParent(); }
  479                       << getParent()->getParent()->getName()
  567   BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd;
  661   BasicBlock *BB = InsertBefore ? InsertBefore->getParent() : InsertAtEnd;
 3915   return MDBuilder(SI.getParent()->getContext()).createBranchWeights(*Weights);
lib/IR/Metadata.cpp
  339   if (BasicBlock *BB = cast<Instruction>(V)->getParent()) {
lib/IR/SafepointIRVerifier.cpp
  109     assert(!isDeadBlock(cast<Instruction>(U->getUser())->getParent()) &&
lib/IR/SymbolTableListTraitsImpl.h
   64   assert(!V->getParent() && "Value already in a container!!");
lib/IR/Value.cpp
  167     if (BasicBlock *P = I->getParent())
  450     return !I || I->getParent() != BB;
lib/IR/Verifier.cpp
  841     Assert(I->getParent(), "function-local metadata not in basic block", L, I);
  842     ActualF = I->getParent()->getParent();
 2429     Assert(I.getParent() == &BB, "Instruction has bogus parent pointer!");
 2435   Assert(&I == I.getParent()->getTerminator(),
 2436          "Terminator found in the middle of a basic block!", I.getParent());
 2449   Function *F = RI.getParent()->getParent();
 2798   Assert(&PN == &PN.getParent()->front() ||
 2800          "PHI nodes not grouped at top of basic block!", &PN, PN.getParent());
 3055   Function *F = CI.getParent()->getParent();
 3589   BasicBlock *BB = I.getParent();
 3609       Assert(BB->getUniquePredecessor() == CPI->getCatchSwitch()->getParent(),
 3675   Function *F = LPI.getParent()->getParent();
 3681   Assert(LPI.getParent()->getLandingPadInst() == &LPI,
 3716   BasicBlock *BB = CPI.getParent();
 3744   BasicBlock *BB = CPI.getParent();
 3924   BasicBlock *BB = CatchSwitch.getParent();
 4061   BasicBlock *BB = I.getParent();
 4090       Assert(Used->getParent() != nullptr,
 4418     Assert(Call.getParent()->getParent()->hasGC(),
 4436     BasicBlock *BB = Call.getParent();
 4470     Assert(Call.getParent()->getParent()->hasGC(),
 4476     Assert(Call.getParent()->getParent()->hasGC(),
 4509           LandingPad->getParent()->getUniquePredecessor();
 4514              LandingPad->getParent());
 4933   BasicBlock *BB = DII.getParent();
 4968   BasicBlock *BB = DLI.getParent();
lib/Target/AArch64/AArch64PromoteConstant.cpp
  370       *NewPt->getParent()->getParent()).getDomTree();
  379         (IPI.first->getParent() != NewPt->getParent() &&
  379         (IPI.first->getParent() != NewPt->getParent() &&
  380          DT.dominates(IPI.first->getParent(), NewPt->getParent()))) {
  380          DT.dominates(IPI.first->getParent(), NewPt->getParent()))) {
  396       *NewPt->getParent()->getParent()).getDomTree();
  397   BasicBlock *NewBB = NewPt->getParent();
  405     BasicBlock *CurBB = IPI->first->getParent();
lib/Target/AArch64/AArch64StackTagging.cpp
  445       PrologueBB = AI->getParent();
  448     PrologueBB = DT->findNearestCommonDominator(PrologueBB, AI->getParent());
lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
   72       Function *F = I->getParent()->getParent();
lib/Target/AMDGPU/AMDGPUAnnotateUniformValues.cpp
   91   BasicBlock *Start = Load->getParent();
  107     BasicBlock::iterator StartIt = (!L && (BB == Load->getParent())) ?
  119     setUniformMetadata(I.getParent()->getTerminator());
  142         Function *F = I.getParent()->getParent();
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
  425     PixelEntryBB = I.getParent();
  432     PixelExitBB = I.getParent();
  557   BasicBlock *const EntryBB = I.getParent();
  585     PHI->addIncoming(NewI, SingleLaneTerminator->getParent());
  648       PHI->addIncoming(Result, I.getParent());
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  566   IRBuilder<> Builder(FDiv.getParent(), std::next(FDiv.getIterator()), FPMath);
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  646   BasicBlock *BB = CI->getParent();
  647   LLVMContext &Context = CI->getParent()->getContext();
  765       LLVMContext &context = CI->getParent()->getParent()->getContext();
 1292   BasicBlock * const CBB = CI->getParent();
 1298     if (LI && LI->getParent() == CBB) {
 1317     if (!XI || XI == CI || XI->getParent() != CBB)
 1325     if (BBI == CI->getParent()->begin())
 1392   Function *F = CI->getParent()->getParent();
 1406   Function * Func = UI->getParent()->getParent();
 1672   LLVMContext &context = CI->getParent()->getParent()->getContext();
lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
   75         Function *ParentFunc = Memcpy->getParent()->getParent();
lib/Target/AMDGPU/AMDGPULowerKernelAttributes.cpp
   73   Function *F = CI->getParent()->getParent();
lib/Target/AMDGPU/AMDGPUOpenCLEnqueuedBlockLowering.cpp
   83       auto *Caller = CI->getParent()->getParent();
   94     auto *F = I->getParent()->getParent();
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  368       SplitBlock(CI->getParent(), cmp);
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
  736   const Function &ContainingFunction = *I.getParent()->getParent();
  793   Function *F = I.getParent()->getParent();
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
  303         BasicBlock *BB = RI->getParent();
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
  433   Function *Kernel = I->getParent()->getParent();
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  622     Module *M = II->getParent()->getParent()->getParent();
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
  185   BasicBlock *IDom = DT->getNode(Phi->getParent())->getIDom()->getBlock();
  232     BasicBlock *Parent = Inst->getParent();
  261   BasicBlock *BB = Term->getParent();
  352       if (Phi && Phi->getParent() == BB && isElse(Phi)) {
lib/Target/ARM/ARMFastISel.cpp
 1273     if (TI->hasOneUse() && TI->getParent() == I->getParent() &&
lib/Target/ARM/ARMParallelDSP.cpp
  447   if (I->getParent() != BB)
  643     IRBuilder<NoFolder> Builder(InsertAfter->getParent(),
  670   IRBuilder<NoFolder> Builder(R.getRoot()->getParent());
  707   OrderedBasicBlock OrderedBB(R.getRoot()->getParent());
  754           Source->getParent() != Sink->getParent() ||
  754           Source->getParent() != Sink->getParent() ||
  765   IRBuilder<NoFolder> IRB(DomLoad->getParent(),
lib/Target/BPF/BPFAbstractMemberAccess.cpp
  289         ConstantInt::get(Type::getInt32Ty(Call->getParent()->getContext()), 0);
  849   BasicBlock *BB = Call->getParent();
lib/Target/Hexagon/HexagonCommonGEP.cpp
  741       if (In->getParent() != B)
  780           : cast<Instruction>(R)->getParent();
  805   if (IdxI && !DT->dominates(IdxI->getParent(), DomB))
  843   BasicBlock *HdrB = L->getHeader(), *DefB = In->getParent();
  884       Bs.push_back(PIn->getParent());
  889     Bs.push_back(IIn->getParent());
  957   BasicBlock *PB = cast<Instruction>(R)->getParent();
lib/Target/Hexagon/HexagonGenExtract.cpp
   99   BasicBlock *BB = In->getParent();
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
  209         : Ctx(Exp->getParent()->getParent()->getContext()) {
  275     if (!U || U->getParent())
  315   BasicBlock *Block = Exp->getParent();
  324       if (isa<PHINode>(U) || U->getParent() != Block)
  366   if (!isa<Instruction>(V) || cast<Instruction>(V)->getParent() != nullptr)
  389     if (!U || U->getParent())
  422     if (!U || U->getParent())
  441     if (!U->getParent())
  447     if (!U->getParent())
  486     if (!U || U->getParent())
  499   if (I->getParent())
  527     if (!U || U->getParent() || !C.Used.count(U))
  660       if (BB == II->getParent())
  927         if (!I1 || I1->getParent() != LoopB) {
  930         } else if (!I2 || I2->getParent() != LoopB) {
 1119   auto *BB = cast<Instruction>(Out)->getParent();
 1124     if (I == nullptr || I->getParent() != BB)
 1339       if (T->getParent() != LoopB || RShifts.count(T) || isa<PHINode>(T))
 1360       if (T && T->getParent() != LoopB)
 1525   Module *M = At->getParent()->getParent()->getParent();
 2321       BasicBlock *PB = OpI->getParent();
 2342         BasicBlock *UseB = UseI->getParent();
lib/Target/Hexagon/HexagonVectorLoopCarriedReuse.cpp
  461     BasicBlock *BB = PN->getParent();
  470       if (User->getParent() != BB)
  500         if (BEUser->getParent() != BB)
  633   BasicBlock *BB = BEInst->getParent();
  694     BasicBlock *BB = PN->getParent();
lib/Target/NVPTX/NVPTXLowerArgs.cpp
  190     assert(InsertPt != InsertPt->getParent()->end() &&
lib/Target/NVPTX/NVVMIntrRange.cpp
   71   LLVMContext &Context = C->getParent()->getContext();
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
  344   Type *I8Ty = Type::getInt8Ty(MemI->getParent()->getContext());
  345   Type *I8PtrTy = Type::getInt8PtrTy(MemI->getParent()->getContext(),
  407     BBChanged.insert(IDel->getParent());
  429           cast<Instruction>(NewBasePtr)->getParent() == PtrIP->getParent())
  429           cast<Instruction>(NewBasePtr)->getParent() == PtrIP->getParent())
  432         PtrIP = &*PtrIP->getParent()->getFirstInsertionPt();
  446       BBChanged.insert(IDel->getParent());
  493   BasicBlock *BB = MemI->getParent();
lib/Target/SystemZ/SystemZISelLowering.cpp
  851     if (SingleUser->getParent() == I->getParent()) {
  851     if (SingleUser->getParent() == I->getParent()) {
  864       if (LoadI->hasOneUse() && LoadI->getParent() == I->getParent())
  864       if (LoadI->hasOneUse() && LoadI->getParent() == I->getParent())
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
  869             if (!Ld->hasOneUse() && Ld->getParent() == I->getParent() &&
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  911     BasicBlock *BB = CI->getParent();
 1038         SI->addCase(IRB.getInt32(I + 1), SetjmpRetPHIs[I]->getParent());
 1076     SetjmpTableSSA.AddAvailableValue(I->getParent(), I);
 1078     SetjmpTableSizeSSA.AddAvailableValue(I->getParent(), I);
 1087       if (I->getParent() != &EntryBB)
 1095       if (I->getParent() != &EntryBB)
lib/Target/X86/X86FastISel.cpp
 1711     if (TI->hasOneUse() && TI->getParent() == I->getParent() &&
 3272               (TI->getParent() == CLI.CS->getInstruction()->getParent()) &&
lib/Target/X86/X86WinEHState.cpp
  778     auto &BBColors = BlockColors[CS->getParent()];
lib/Target/XCore/XCoreLowerThreadLocal.cpp
  140                 PredBB = SplitEdge(PredBB, PN->getParent());
lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
  125   BasicBlock *PhiBB = Phi.getParent();
lib/Transforms/Coroutines/CoroFrame.cpp
  124     BasicBlock *UseBB = I->getParent();
  142     auto *DefBB = I.getParent();
  195     getBlockData(CE->getParent()).End = true;
  202     BasicBlock *SuspendBlock = BarrierInst->getParent();
  299   BasicBlock *userBlock() const { return User->getParent(); }
  553   BasicBlock *CurrentBlock = CatchSwitch->getParent();
  687           auto NewBB = SplitEdge(II->getParent(), II->getNormalDest());
  691           BasicBlock *DefBlock = cast<Instruction>(E.def())->getParent();
  699           InsertPt = CSI->getParent()->getSingleSuccessor()->getFirstNonPHI();
  743   BasicBlock *FramePtrBB = FramePtr->getParent();
  995   auto *BB = I->getParent();
 1049       VisitedOrFreeBBs.insert(FI->getParent());
 1052   return !isSuspendReachableFrom(AI->getParent(), VisitedOrFreeBBs);
 1084     if (!willLeaveFunctionImmediatelyAfter(FI->getParent()))
lib/Transforms/Coroutines/CoroSplit.cpp
  215   auto *BB = End->getParent();
  243     End->getParent()->splitBasicBlock(End);
  244     CleanupRet->getParent()->getTerminator()->eraseFromParent();
  339     auto *SuspendBB = S->getParent();
  379     BasicBlock *OldSwitchBB = Switch->getParent();
  892   auto *PrevBB = Prev->getParent();
 1048   auto *SaveBB = Save->getParent();
 1049   auto *ResumeOrDestroyBB = ResumeOrDestroy->getParent();
 1076     auto *Pred = Suspend->getParent()->getSinglePredecessor();
 1251     auto SuspendBB = Suspend->getParent();
lib/Transforms/IPO/ArgumentPromotion.cpp
  754     BasicBlock *BB = Load->getParent();
  916     if (CS.getInstruction()->getParent()->getParent() == F)
 1138         Function *Caller = OldCS.getInstruction()->getParent()->getParent();
lib/Transforms/IPO/Attributor.cpp
 2156       BasicBlock *BB = I->getParent();
 2218       BB = SplitPos->getParent();
 3595         BranchInst::Create(NBB, MallocCall->getParent());
lib/Transforms/IPO/BlockExtractor.cpp
  141       BasicBlock *Parent = II->getParent();
lib/Transforms/IPO/CalledValuePropagation.cpp
  243     Function *F = I.getParent()->getParent();
lib/Transforms/IPO/DeadArgumentElimination.cpp
  939                                  Args, OpBundles, "", Call->getParent());
  971           BasicBlock *NewEdge = SplitEdge(New->getParent(), II->getNormalDest());
lib/Transforms/IPO/GlobalDCE.cpp
  103     Function *Parent = I->getParent()->getParent();
lib/Transforms/IPO/GlobalOpt.cpp
 1346   BasicBlock *OrigBB = CI->getParent();
 1817     assert(I->getParent()->getParent() == F);
 2167   auto CallSiteBB = CS.getInstruction()->getParent();
 2191     Function *CallerFunc = CS.getInstruction()->getParent()->getParent();
lib/Transforms/IPO/Inliner.cpp
  209       if (AvailableAlloca->getParent() != AI->getParent())
  209       if (AvailableAlloca->getParent() != AI->getParent())
lib/Transforms/IPO/LowerTypeTests.cpp
  738   BasicBlock *InitialBB = CI->getParent();
lib/Transforms/IPO/PartialInlining.cpp
  956     BasicBlock *CallBB = CS.getInstruction()->getParent();
 1158       BasicBlock *OutliningCallBB = OCS.getInstruction()->getParent();
 1227             ->getParent();
 1471         if (I->getParent()->getParent() == CurrFunc) {
lib/Transforms/IPO/SampleProfile.cpp
  859   BasicBlock *BB = I->getParent();
 1446           annotateValueSite(*I.getParent()->getParent()->getParent(), I,
lib/Transforms/IPO/SyntheticCountsPropagation.cpp
  120     BasicBlock *CSBB = CS.getInstruction()->getParent();
lib/Transforms/IPO/WholeProgramDevirt.cpp
  340       II->getUnwindDest()->removePredecessor(II->getParent());
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 2878           Builder.SetInsertPoint(Y->getParent(), ++(Y->getIterator()));
lib/Transforms/InstCombine/InstCombineCalls.cpp
 1483   BasicBlock::iterator BI(I), BE(I.getParent()->end());
 3838     if (SrcInst && SrcInst->getParent() != II->getParent())
 3838     if (SrcInst && SrcInst->getParent() != II->getParent())
 3874     Instruction *TI = II->getParent()->getTerminator();
 4185                             E = AdjustTramp->getParent()->begin();
 4466             if (PN->getParent() == II->getNormalDest() ||
 4467                 PN->getParent() == II->getUnwindDest())
lib/Transforms/InstCombine/InstCombineCompares.cpp
  582         if (isa<CatchSwitchInst>(PN->getParent()->getTerminator()))
  609       if (PHI->getParent() == Inst->getParent())
  609       if (PHI->getParent() == Inst->getParent())
  621     Builder.SetInsertPoint(&*PHI->getParent()->getFirstInsertionPt());
 1461   BasicBlock *CmpBB = Cmp.getParent();
 3188     if (LHSI->getParent() == I.getParent())
 3188     if (LHSI->getParent() == I.getParent())
 4902     BasicBlock *Succ = SI->getParent()->getTerminator()->getSuccessor(1);
 4916       SI->replaceUsesOutsideBlock(SI->getOperand(SIOpd), SI->getParent());
 6045       if (LHSI->getParent() == I.getParent())
 6045       if (LHSI->getParent() == I.getParent())
lib/Transforms/InstCombine/InstCombineInternal.h
  641     assert(New && !New->getParent() &&
  643     BasicBlock *BB = Old.getParent();
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  364       BasicBlock &EntryBlock = AI.getParent()->getParent()->getEntryBlock();
  983           &LI, LI.getParent(), BBI, DefMaxInstsToScan, AA, &IsLoadCSE)) {
 1410   for (unsigned ScanInsts = 6; BBI != SI.getParent()->begin() && ScanInsts;
 1493   BasicBlock *StoreBB = SI.getParent();
 1574     PN->addIncoming(SI.getOperand(0), SI.getParent());
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  610   BasicBlock::iterator BBI = I.getIterator(), BBFront = I.getParent()->begin();
lib/Transforms/InstCombine/InstCombinePHI.cpp
  145            cast<Instruction>(U)->getParent() == PN.getIncomingBlock(i))) {
  178   auto *BB = PN.getParent();
  266           InsertPos = IncomingI->getParent()->getFirstInsertionPt();
  494   BasicBlock::iterator BBI = L->getIterator(), E = L->getParent()->end();
  550   if (FirstLI->getParent() != PN.getIncomingBlock(0) ||
  558       FirstLI->getParent()->getTerminator()->getNumSuccessors() != 1)
  570         LI->getParent() != PN.getIncomingBlock(i) ||
  586         LI->getParent()->getTerminator()->getNumSuccessors() != 1)
  653   if (Instruction *TI = Phi.getParent()->getTerminator())
  727   if (Instruction *TI = PN.getParent()->getTerminator())
  976       if (II->getParent() != PN->getIncomingBlock(i))
 1236   PHINode *FirstPN = cast<PHINode>(PN.getParent()->begin());
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
 1035   Module *M = II->getParent()->getParent()->getParent();
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  549                                    ? ExtVecOpInst->getParent()
  550                                    : ExtElt->getParent();
  561   if (InsertionBlock != InsElt->getParent())
  582     IC.InsertNewInstWith(WideVec, *ExtElt->getParent()->getFirstInsertionPt());
  588     if (!OldExt || OldExt->getParent() != WideVec->getParent())
  588     if (!OldExt || OldExt->getParent() != WideVec->getParent())
lib/Transforms/InstCombine/InstructionCombining.cpp
  966       if (cast<Instruction>(InVal)->getParent() == NonConstBB)
  972     if (isPotentiallyReachable(I.getParent(), NonConstBB, &DT, LI))
 1001     BasicBlock *PhiTransBB = PN->getParent();
 1765       GEP.getParent()->getInstList().insert(
 1766           GEP.getParent()->getFirstInsertionPt(), NewGEP);
 1784       GEP.getParent()->getInstList().insert(
 1785           GEP.getParent()->getFirstInsertionPt(), NewGEP);
 1803       if (Loop *L = LI->getLoopFor(GEP.getParent())) {
 2202               BCI->getParent()->getInstList().insert(BCI->getIterator(), I);
 2419                          None, "", II->getParent());
 2448   BasicBlock *FreeInstrBB = FI.getParent();
 2810       classifyEHPersonality(LI.getParent()->getParent()->getPersonalityFn());
 3120   BasicBlock *SrcBlock = I->getParent();
 3147                               E = I->getParent()->end();
 3164     if (DII->getParent() == SrcBlock) {
 3262       BasicBlock *BB = I->getParent();
 3270         UserParent = UserInst->getParent();
 3330         BasicBlock *InstParent = I->getParent();
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 2923   BasicBlock *CondBlock = cast<Instruction>(Cond)->getParent();
 2925   BasicBlock *ThenBlock = ThenTerm->getParent();
 3001   auto InsBeforeB = InsBefore->getParent();
 3004     if (AI->getParent() == InsBeforeB)
lib/Transforms/Instrumentation/BoundsChecking.cpp
  126   BasicBlock *OldBB = SplitI->getParent();
  154     BuilderTy IRB(I.getParent(), BasicBlock::iterator(&I), TargetFolder(DL));
  201     BuilderTy IRB(Inst->getParent(), BasicBlock::iterator(Inst), TargetFolder(DL));
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  281     BasicBlock *Parent = I->getParent();
  564     assert(DT.getNode(I->getParent()) && "DT must contain I's parent block");
  565     assert(DT.getNode(InsertPoint->getParent()) && "DT must contain Destination");
  717     if (SI->getParent() == EntryBB) {
  730     if (SI->getParent() == EntryBB) {
  955                                        return SI->getParent() == EntryBB;
 1473     assert(DT.getNode(I->getParent()) && "DT must contain I's block");
 1474     assert(DT.getNode(HoistPoint->getParent()) &&
 1594           if (BlocksInScopeSet.count(UI->getParent()) == 0 &&
 1596               !(isa<PHINode>(UI) && UI->getParent() == ExitBlock)) {
 1600           } else if (UI->getParent() == EntryBlock && isa<PHINode>(UI)) {
 1673         assert((I->getParent() == PreEntryBlock ||
 1687         assert((I->getParent() == PreEntryBlock ||
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
 1114   if (CCS.Block && DT.dominates(CCS.Block, Pos->getParent()))
 1124     CCS.Block = Pos->getParent();
 1127     BasicBlock *Head = Pos->getParent();
 1139     Phi->addIncoming(Call, Call->getParent());
 1251     BasicBlock *Head = Pos->getParent();
 1273       DT.addNewBlock(NextBB, LastBr->getParent());
 1288     Shadow->addIncoming(TruncShadow, LastBr->getParent());
 1688             SplitEdge(II->getParent(), II->getNormalDest(), &DFSF.DT);
 1692       assert(CS->getIterator() != CS->getParent()->end());
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  660     I->getParent()->splitBasicBlock(I);
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
  662                             nullptr, nullptr, CheckFailTerm->getParent());
  671                             nullptr, nullptr, CheckFailTerm->getParent());
  698     cast<BranchInst>(CheckFailTerm)->setSuccessor(0, CheckTerm->getParent());
  955     ThreadLongPhi->addIncoming(ThreadLong, ThreadLong->getParent());
  956     ThreadLongPhi->addIncoming(ReloadThreadLong, ReloadThreadLong->getParent());
lib/Transforms/Instrumentation/InstrProfiling.cpp
  273         auto *BB = Cand.first->getParent();
  458     BasicBlock *BB = CounterLoad->getParent();
  677   Function *F = Inc->getParent()->getParent();
  745   Function *Fn = Inc->getParent()->getParent();
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 1585         LLVM_DEBUG(dbgs() << "No shadow: " << *V << "\n" << *(I->getParent()));
 3362       assert(NextInsn != I.getParent()->end());
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  852       assert(Builder.GetInsertPoint() != Cand.InsertPt->getParent()->end() &&
 1369   auto BI = UseFunc->findBBInfo(SI.getParent());
 1733     Function *F = TI->getParent()->getParent();
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
  245     auto BBEdgeCount = BFI.getBlockProfileCount(MI->getParent());
  337   BasicBlock *BB = MI->getParent();
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  562           if (IsBackEdge(BR->getParent(), B, DT))
lib/Transforms/ObjCARC/ObjCARC.h
   87   auto *BB = PN.getParent();
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  124   if (Call->getParent() != Retain->getParent())
  165                      Autorelease->getParent(), Autorelease,
  169                      Autorelease->getParent(), Autorelease,
  219             E = Load->getParent()->end();
  298   BasicBlock::iterator Begin = Store->getParent()->begin();
  325     const ColorVector &CV = BlockColors.find(InsertBefore->getParent())->second;
  379   BasicBlock *BB = Release->getParent();
  380   if (Load->getParent() != BB)
  474     BasicBlock *InstParent = Inst->getParent();
  634         if (Inst->getParent() == cast<Instruction>(U.getUser())->getParent() &&
  634         if (Inst->getParent() == cast<Instruction>(U.getUser())->getParent() &&
  635             IsLargeBB(Inst->getParent()))
lib/Transforms/ObjCARC/ObjCARCOpts.cpp
  600     if (Call->getParent() == RetainRV->getParent()) {
  608       BasicBlock *RetainRVParent = RetainRV->getParent();
  633                        Begin = RetainRV->getParent()->begin();
  979                            Inst->getParent(), Inst,
  985                            Inst->getParent(), Inst,
 1014                   *CInst, *InsertPos->getParent(), BlockColors));
 1669           const BBState &NRRBBState = BBStates[NewRetainRelease->getParent()];
 1700                 const BBState &RIPBBState = BBStates[RIP->getParent()];
 1741           const BBState &NRRBBState = BBStates[NewReleaseRetain->getParent()];
 1757                 const BBState &RIPBBState = BBStates[RIP->getParent()];
 2074   FindDependencies(CanChangeRetainCount, Arg, Retain->getParent(), Retain,
 2178         Arg, Autorelease->getParent(), Autorelease, DependingInstructions,
lib/Transforms/Scalar/ADCE.cpp
  397       for (auto *BB : successors(I->getParent()))
  445   auto &Info = BlockInfo[PN->getParent()];
lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
  253   Type *Int64Ty = Type::getInt64Ty(I->getParent()->getParent()->getContext());
lib/Transforms/Scalar/CallSiteSplitting.cpp
  195   BasicBlock *CallSiteBB = Instr->getParent();
  309   BasicBlock *TailBB = Instr->getParent();
  406                            cast<Instruction>(Mapping[CurrentI])->getParent());
  421   BasicBlock *Parent = Instr->getParent();
  453   auto Preds = getTwoPredecessors(CS.getInstruction()->getParent());
  462   auto Preds = getTwoPredecessors(CS.getInstruction()->getParent());
  471   auto *CSDTNode = DTU.getDomTree().getNode(CS.getInstruction()->getParent());
  478     recordCondition(CS, Pred, CS.getInstruction()->getParent(), Conditions);
lib/Transforms/Scalar/ConstantHoisting.cpp
  186   assert(Entry != Inst->getParent() && "PHI or landing pad in entry block!");
  193   auto IDom = DT->getNode(Inst->getParent())->getIDom();
  316       BBs.insert(findMatInsertPt(U.Inst, U.OpndIdx)->getParent());
  756                       << Mat->getParent()->getName() << '\n'
  848               findMatInsertPt(U.Inst, U.OpndIdx)->getParent();
  852               DT->dominates(IP->getParent(), OrigMatInsertBB))
  880                         << ") to BB " << IP->getParent()->getName() << '\n'
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  129   Constant *C = LVI->getConstant(S->getCondition(), S->getParent(), S);
  181   BasicBlock *ToBB = P->getParent();
  215   BasicBlock *BB = P->getParent();
  290   Constant *C = LVI->getConstant(Pointer, I->getParent(), I);
  314   if (I && I->getParent() == Cmp->getParent())
  314   if (I && I->getParent() == Cmp->getParent())
  340   BasicBlock *BB = I->getParent();
  344   if (isa<Instruction>(Cond) && cast<Instruction>(Cond)->getParent() == BB)
  436       BO->getLHS(), BO->getParent(), BO);
  438       BO->getRHS(), BO->getParent(), BO);
  631         LVI->getConstantRange(Operand, Instr->getParent()));
  754   BasicBlock *BB = BinOp->getParent();
  789   BasicBlock *BB = BinOp->getParent();
  807   if (Constant *C = LVI->getConstant(V, At->getParent(), At))
lib/Transforms/Scalar/DeadStoreElimination.cpp
  593   BasicBlock *FirstBB = FirstI->getParent();
  594   BasicBlock *SecondBB = SecondI->getParent();
  664   Blocks.push_back(F->getParent());
  670     if (BB == F->getParent()) InstPt = F;
lib/Transforms/Scalar/DivRemPairs.cpp
  229     if (HasDivRemOp && RemInst->getParent() == DivInst->getParent())
  229     if (HasDivRemOp && RemInst->getParent() == DivInst->getParent())
lib/Transforms/Scalar/GVN.cpp
  440       if (NonLocalDepCall && DT->properlyDominates(I->getBB(), C->getParent())){
  737                                                LI->getParent())) {
  758     if (BB == LI->getParent() &&
  767   return SSAUpdate.GetValueInMiddleOfBlock(LI->getParent());
 1039   BasicBlock *LoadBB = LI->getParent();
 1174     BasicBlock *Cur = LI->getParent();
 1310   if (LI->getParent()->getParent()->hasFnAttribute(
 1312       LI->getParent()->getParent()->hasFnAttribute(
 1373       if (LI->getDebugLoc() && LI->getParent() == I->getParent())
 1373       if (LI->getDebugLoc() && LI->getParent() == I->getParent())
 1393         cast<Instruction>(U)->getParent() == BB)
 1425   for (BasicBlock *Successor : successors(IntrinsicI->getParent())) {
 1426     BasicBlockEdge Edge(IntrinsicI->getParent(), Successor);
 1493                  << IntrinsicI->getParent()->getName() << "\n");
 1497       if (hasUsersIn(CmpLHS, IntrinsicI->getParent()))
 1612     if (Call && Call->getParent() == PhiBlock)
 1645       if (PN->getParent() == PhiBlock && PN->getIncomingBlock(i) == Pred)
 1977     addToLeaderTable(Num, LI, LI->getParent());
 1997     BasicBlock *Parent = BI->getParent();
 2014     BasicBlock *Parent = SI->getParent();
 2045     addToLeaderTable(Num, I, I->getParent());
 2053     addToLeaderTable(Num, I, I->getParent());
 2059   Value *Repl = findLeader(I->getParent(), Num);
 2062     addToLeaderTable(Num, I, I->getParent());
 2176       assert(I->getParent() == BB && "Removing instruction from wrong block?");
 2283   BasicBlock *CurrentBlock = CurInst->getParent();
 2305             return Inst->getParent() == CurrentBlock;
 2631     DeadRoot = splitCriticalEdges(BI->getParent(), DeadRoot);
lib/Transforms/Scalar/GVNHoist.cpp
  391     const BasicBlock *OldBB = OldPt->getParent();
  604         if (safeToHoistScalar(BB, Insn->getParent(), NumBBsOnAllPaths))
  650               DT->properlyDominates(Pred, si->second.back()->getParent())) {
  773         BasicBlock *BBI = I->getParent();
  789         InValue[V[i]->getParent()].push_back(std::make_pair(VN, V[i]));
  797           if (DT->properlyDominates(IDFB, V[i]->getParent())) {
  858         if (DT->dominates(Op->getParent(), HoistPt))
  990         } else if (!DT->dominates(Val->getParent(), HoistPt))
 1016         if (I->getParent() == DestBB)
lib/Transforms/Scalar/GVNSink.cpp
  160       if (std::find(Blocks.begin(), Blocks.end(), (*II)->getParent()) ==
  162         ActiveBlocks.remove((*II)->getParent());
  175       if (Inst == &Inst->getParent()->front())
  176         ActiveBlocks.remove(Inst->getParent());
  538     auto *BB = Inst->getParent();
  665       ActivePreds.remove(I->getParent());
  855       PN->addIncoming(I->getOperand(O), I->getParent());
lib/Transforms/Scalar/GuardWidening.cpp
  385     auto E = Instr->getParent() == CurBB
  403     assert((i == (e - 1)) == (Instr->getParent() == CurBB) && "Bad DFS?");
  442   Loop *DominatedInstrLoop = LI.getLoopFor(DominatedInstr->getParent());
  443   Loop *DominatingGuardLoop = LI.getLoopFor(DominatingGuard->getParent());
  478     auto *DominatingBlock = DominatingGuard->getParent();
  479     auto *DominatedBlock = DominatedInstr->getParent();
lib/Transforms/Scalar/IndVarSimplify.cpp
  257     InsertBB = DT->findNearestCommonDominator(InsertPt->getParent(), InsertBB);
  272   auto *L = LI->getLoopFor(DefI->getParent());
  273   assert(!L || L->contains(LI->getLoopFor(InsertPt->getParent())));
  275   for (auto *DTN = (*DT)[InsertPt->getParent()]; DTN; DTN = DTN->getIDom())
  355   if (!L->contains(TheBr->getParent()) ||
  494                                  &*PN->getParent()->getFirstInsertionPt());
  690           if (auto *EVL = LI->getLoopFor(ExitInsn->getParent()))
  793         if (!ExitVal || ExitVal->getParent() != L->getHeader())
  803           assert(ExitVal->getParent() == L->getHeader() &&
 1031         L(LI->getLoopFor(OrigPhi->getParent())), SE(SEv), DT(DTree),
 1033     assert(L->getHeader() == OrigPhi->getParent() && "Phi must be an IV");
 1075   for (const Loop *L = LI->getLoopFor(Use->getParent());
 1549     if (LI->getLoopFor(UsePhi->getParent()) != L) {
 1559         if (isa<CatchSwitchInst>(UsePhi->getParent()->getTerminator()))
 1566         IRBuilder<> Builder(&*WidePhi->getParent()->getFirstInsertionPt());
 1656   assert(DU.NarrowUse != DU.NarrowUse->getParent()->getTerminator() &&
 1856                                      Ctx->getParent()->rend())) {
 1865   BasicBlock *NarrowUserBB = NarrowUser->getParent();
 1887              DT->dominates(BBE, NarrowUser->getParent());
 1912       auto *NarrowUserLoop = (*LI)[NarrowUser->getParent()];
 2039   if (Phi && Phi->getParent() == L->getHeader()) {
 2049   if (Phi && Phi->getParent() == L->getHeader()) {
 2221   assert(Phi->getParent() == L->getHeader());
 2611       BasicBlock *UseBB = User->getParent();
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  394   if (BI->isUnconditional() || BI->getParent() == L->getLoopLatch())
  400       BPI->getEdgeProbability(BI->getParent(), (unsigned)0) < LikelyTaken)
  773       BPI ? BPI->getEdgeProbability(LatchBr->getParent(), LatchBrExitIdx)
 1443                         << " at block " << InsertPt->getParent()->getName()
 1470                         << " at block " << InsertPt->getParent()->getName()
lib/Transforms/Scalar/InferAddressSpaces.cpp
  266   Module *M = II->getParent()->getParent()->getParent();
  595       if (NewI->getParent() == nullptr) {
lib/Transforms/Scalar/JumpThreading.cpp
  290                         MDBuilder(PredBr->getParent()->getContext())
  453   auto *BB = Cond->getParent();
  479   assert(StopAt->getParent() == BB && "Not an instruction from proper BB?");
  616   if (!I || I->getParent() != BB) {
  778     if (PN && PN->getParent() == BB) {
  803           if (LHSInst && LHSInst->getParent() == BB)
  828           cast<Instruction>(CmpLHS)->getParent() != BB) {
  860               cast<Instruction>(AddLHS)->getParent() != BB) {
 1175         else if (CondCmp->getParent() == BB) {
 1214     if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
 1226     if (PN->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
 1231       CondInst->getParent() == BB && isa<BranchInst>(BB->getTerminator()))
 1284     if (OpInst->getParent() == BB)
 1299   BasicBlock *LoadBB = LoadI->getParent();
 1711                  CondInst->getParent() == BB)
 1768   BasicBlock *BB = PN->getParent();
 1797   BasicBlock *BB = BO->getParent();
 2064       } else if (User->getParent() == BB)
 2253         MDBuilder(TI->getParent()->getContext()).createBranchWeights(Weights));
 2383       } else if (User->getParent() == BB)
 2462   if (!CondPHI || CondPHI->getParent() != BB)
 2472     if (!PredSI || PredSI->getParent() != Pred || !PredSI->hasOneUse())
 2503       CondLHS->getParent() != BB)
 2512     if (!SI || SI->getParent() != Pred || !SI->hasOneUse())
 2577       if (SI->getParent() != BB)
 2588         if (Cmp->getParent() == BB && Cmp->hasOneUse() &&
 2609     BasicBlock *SplitBB = SI->getParent();
 2610     BasicBlock *NewBB = Term->getParent();
 2612     NewPN->addIncoming(SI->getTrueValue(), Term->getParent());
lib/Transforms/Scalar/LICM.cpp
  653     BasicBlock *BB = PN->getParent();
  668           PredecessorBlocks.erase(Pair.first->getParent());
  671           PredecessorBlocks.erase(Pair.first->getParent());
  718     BasicBlock *HoistTarget = getOrCreateHoistedBlock(BI->getParent());
  773         if (Pair.second == InitialPreheader && Pair.first != BI->getParent())
  873         SafetyInfo->insertInstructionTo(ReciprocalDivisor, I.getParent());
  879         SafetyInfo->insertInstructionTo(Product, I.getParent());
  945             DT->getNode(I->getParent())->getIDom()->getBlock();
  946         if (!HoistPoint || !DT->dominates(HoistPoint->getParent(), Dominator)) {
  948             assert(DT->dominates(Dominator, HoistPoint->getParent()) &&
  953                           << HoistPoint->getParent()->getName()
 1022         DT->properlyDominates(II->getParent(), CurLoop->getHeader()))
 1399         New, nullptr, New->getParent(), MemorySSA::Beginning);
 1420       if (Loop *OLoop = LI->getLoopFor(OInst->getParent()))
 1446   SafetyInfo.insertInstructionTo(&I, Dest.getParent());
 1451       MSSAU->moveToPlace(OldMemAcc, Dest.getParent(), MemorySSA::End);
 1461   BasicBlock *ExitBlock = TPN->getParent();
 1473   BasicBlock *BB = PN->getParent();
 1500   BasicBlock *ExitBB = PN->getParent();
 1588     if (!DT->isReachableFromEntry(User->getParent())) {
 1648     assert(ExitBlockSet.count(PN->getParent()) &&
 1751       if (Loop *L = LI.getLoopFor(I->getParent()))
 1813               NewSI, nullptr, NewSI->getParent(), MemorySSA::Beginning);
 2130         PreheaderLoad, nullptr, PreheaderLoad->getParent(), MemorySSA::End);
lib/Transforms/Scalar/LoopDistribute.cpp
  174         if (I && OrigLoop->contains(I->getParent()) && Set.insert(I).second)
  244       dbgs() << "  " << I->getParent()->getName() << ":" << *I << "\n";
  330           if (!LoopAccessInfo::blockNeedsPredication(Inst->getParent(), L, DT))
lib/Transforms/Scalar/LoopFuse.cpp
  239       return GuardBranch->getParent();
 1025             if (FC0.L->contains(Def->getParent())) {
 1092       auto *GuardBlock = FC.GuardBranch->getParent();
 1097       if (CmpInst->getParent() == GuardBlock)
 1353     BasicBlock *FC0GuardBlock = FC0.GuardBranch->getParent();
 1354     BasicBlock *FC1GuardBlock = FC1.GuardBranch->getParent();
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 1254   if (PhiX && PhiX->getParent() == LoopEntry &&
 1359         if ((cast<Instruction>(U))->getParent() != LoopEntry) {
lib/Transforms/Scalar/LoopInterchange.cpp
  940      if (!IncomingI || IncomingI->getParent() != OuterLoop->getLoopLatch())
  988                                           CI->getParent())
 1240     if (&InductionPHI->getParent()->front() != InductionPHI)
 1241       InductionPHI->moveBefore(&InductionPHI->getParent()->front());
 1266           if (!InnerLoop->contains(UserI->getParent()) ||
 1267               UserI->getParent() == NewLatch || UserI == InductionPHI)
 1275               this->LI->getLoopFor(OpI->getParent()) != this->InnerLoop ||
 1311   auto &ToList = InsertBefore->getParent()->getInstList();
 1331           {DominatorTree::UpdateKind::Insert, BI->getParent(), NewBB});
 1333           {DominatorTree::UpdateKind::Delete, BI->getParent(), OldBB});
 1359     if (IncI->getParent() != InnerLatch && IncI->getParent() != InnerHeader)
 1359     if (IncI->getParent() != InnerLatch && IncI->getParent() != InnerHeader)
 1364                     return (cast<PHINode>(U)->getParent() == OuterHeader &&
 1365                             IncI->getParent() == InnerHeader) ||
 1366                            cast<PHINode>(U)->getParent() == OuterExit;
 1408       if (!I || ((I->getParent() != OuterLatch || isa<PHINode>(I)) &&
 1409                  I->getParent() != OuterHeader))
lib/Transforms/Scalar/LoopLoadElimination.cpp
  116     auto &DL = Load->getParent()->getModule()->getDataLayout();
  157   return Load->getParent() != L->getHeader();
  280         if (Cand.Store->getParent() == OtherCand->Store->getParent() &&
  280         if (Cand.Store->getParent() == OtherCand->Store->getParent() &&
  496       if (!doesStoreDominatesAllLatches(Cand.Store->getParent(), L, DT))
lib/Transforms/Scalar/LoopRerollPass.cpp
  470       auto *TI = I->getParent()->getTerminator();
lib/Transforms/Scalar/LoopSink.cpp
  187     if (!L.contains(LI.getLoopFor(UI->getParent())))
  189     BBs.insert(UI->getParent());
  234       return cast<Instruction>(U.getUser())->getParent() == N;
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 2425             !DT.properlyDominates(UI->getUser()->getParent(), ExitingBlock)) {
 2507       DT.findNearestCommonDominator(IVIncInsertPos->getParent(),
 2508                                     Inst->getParent());
 2509     if (BB == Inst->getParent())
 2511     else if (BB != IVIncInsertPos->getParent())
 5025       if (Tentative->getParent() == Inst->getParent() &&
 5025       if (Tentative->getParent() == Inst->getParent() &&
 5036     const Loop *IPLoop = LI.getLoopFor(IP->getParent());
 5040     for (DomTreeNode *Rung = DT.getNode(IP->getParent()); ; ) {
 5321         BasicBlock *Parent = PN->getParent();
 5344               NewBB->moveBefore(PN->getParent());
 5523        auto *FirstNonPHI = PN->getParent()->getFirstNonPHI();
lib/Transforms/Scalar/LoopUnrollPass.cpp
  411           if (PhiI->getParent() == L->getHeader()) {
lib/Transforms/Scalar/LoopUnswitch.cpp
  955   auto *OldBranchParent = OldBranch->getParent();
 1529     BasicBlock *Switch = SI->getParent();
 1618         BasicBlock *Pred = BI->getParent();
lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
   74       BasicBlock *Source = BI->getParent();
lib/Transforms/Scalar/LowerExpectIntrinsic.cpp
  218       if (OpndIncomingBB == BI->getParent() && Succ == PhiDef->getParent())
  218       if (OpndIncomingBB == BI->getParent() && Succ == PhiDef->getParent())
lib/Transforms/Scalar/MakeGuardsExplicit.cpp
   59   BasicBlock *BB = Guard->getParent();
lib/Transforms/Scalar/MemCpyOptimizer.cpp
  455     if (Ptr->getParent() == SI->getParent())
  455     if (Ptr->getParent() == SI->getParent())
  517         if (A->getParent() == SI->getParent()) {
  517         if (A->getParent() == SI->getParent()) {
  551         LI->getParent() == SI->getParent()) {
  551         LI->getParent() == SI->getParent()) {
  965                                    M->getIterator(), M->getParent());
 1023                                    MemCpy->getIterator(), MemCpy->getParent());
 1120         MemCpyLoc, true, MemSet->getIterator(), MemSet->getParent());
 1200       SrcLoc, true, M->getIterator(), M->getParent());
 1266       CS.getInstruction()->getIterator(), CS.getInstruction()->getParent());
 1313       CS.getInstruction()->getIterator(), MDep->getParent());
lib/Transforms/Scalar/MergeICmps.cpp
  146   if (LoadI->isUsedOutsideOfBlock(LoadI->getParent())) {
  160   if (GEP->isUsedOutsideOfBlock(LoadI->getParent())) {
  446                                            Block, Phi.getParent(), BaseId);
  660   BasicBlock *const PhiBB = Phi.getParent();
  704   BasicBlock *NextCmpBlock = Phi_.getParent();
  825         cast<ICmpInst>(Phi.getIncomingValue(I))->getParent() !=
  844   if (LastBlock->getSingleSuccessor() != Phi.getParent()) {
lib/Transforms/Scalar/MergedLoadStoreMotion.cpp
  189   BasicBlock *BB0 = Store0->getParent();
  220   NewPN->addIncoming(Opd1, S0->getParent());
  221   NewPN->addIncoming(Opd2, S1->getParent());
  233          (A0->getParent() == S0->getParent()) && A1->hasOneUse() &&
  233          (A0->getParent() == S0->getParent()) && A1->hasOneUse() &&
  234          (A1->getParent() == S1->getParent()) && isa<GetElementPtrInst>(A0);
  234          (A1->getParent() == S1->getParent()) && isa<GetElementPtrInst>(A0);
  262   assert(S0->getParent() == A0->getParent());
  262   assert(S0->getParent() == A0->getParent());
  263   assert(S1->getParent() == A1->getParent());
  263   assert(S1->getParent() == A1->getParent());
lib/Transforms/Scalar/NewGVN.cpp
  918     auto *Parent = I->getParent();
 1510       if (!ReachableBlocks.count(DefiningInst->getParent()))
 2710       MemAccess->getDefiningAccess()->getBlock() == I->getParent())
 3114     processOutgoingEdges(I, I->getParent());
 3476     assert(ToErase->getParent() &&
 3887         assert((!ReachableBlocks.count(cast<Instruction>(M)->getParent()) ||
 4121         assert(DT->dominates(Leader->getParent(), Member->getParent()));
 4121         assert(DT->dominates(Leader->getParent(), Member->getParent()));
lib/Transforms/Scalar/PlaceSafepoints.cpp
  269   for (BasicBlock::iterator BBI(Start), BBE0 = Start->getParent()->end(),
  282       BasicBlock *BB = BBI->getParent();
  297   Seen.insert(Start->getParent());
  399     BasicBlock *nextBB = I->getParent()->getUniqueSuccessor();
  408       return &I->getParent()->getUniqueSuccessor()->front();
  519       return a->getParent()->getName() < b->getParent()->getName();
  519       return a->getParent()->getName() < b->getParent()->getName();
  552           if (DT.dominates(Succ, Term->getParent())) {
  563           BasicBlock *NewBB = SplitEdge(Term->getParent(), Header, &DT);
  623   BasicBlock *OrigBB = InsertBefore->getParent();
lib/Transforms/Scalar/Reassociate.cpp
  203   unsigned Rank = 0, MaxRank = RankMap[I->getParent()];
  867     if (TheNeg->getParent()->getParent() != BI->getParent()->getParent())
  867     if (TheNeg->getParent()->getParent() != BI->getParent()->getParent())
  880       const BasicBlock *BB = InsertPt->getParent();
  893       InsertPt = TheNeg->getParent()->getParent()->getEntryBlock().begin();
 2179         BO->getParent() == BO->user_back()->getParent())
 2179         BO->getParent() == BO->user_back()->getParent())
 2417         assert(II->getParent() == &*BI && "Moved to a different block!");
lib/Transforms/Scalar/Reg2Mem.cpp
   95       if (!(isa<AllocaInst>(iib) && iib->getParent() == BBEntry) &&
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  964         BasicBlock *BB = I->getParent();
 1167             DT->dominates(cast<Instruction>(base)->getParent(),
 1168                           cast<Instruction>(ptr)->getParent())) &&
 1386       auto *RI = cast<ReturnInst>(OldI->getParent()->getTerminator());
 1992       OrigRootPhi.getParent() != AlternateRootPhi.getParent())
 1992       OrigRootPhi.getParent() != AlternateRootPhi.getParent())
 2192     normalizeForInvokeSafepoint(II->getNormalDest(), II->getParent(), DT);
 2193     normalizeForInvokeSafepoint(II->getUnwindDest(), II->getParent(), DT);
 2354     assert(DT.isReachableFromEntry(Info.StatepointToken->getParent()) &&
 2361       assert(DT.isReachableFromEntry(LiveInst->getParent()) &&
 2548       assert(DT.isReachableFromEntry(I.getParent()) &&
 2793   BasicBlock *BB = Inst->getParent();
lib/Transforms/Scalar/SCCP.cpp
  259     auto A = AnalysisResults.find(I->getParent()->getParent());
  579     if (BBExecutable.count(I->getParent()))   // Inst is executable?
  805     if (!isEdgeFeasible(PN.getIncomingBlock(i), PN.getParent()))
  837   Function *F = I.getParent()->getParent();
  864   BasicBlock *BB = TI.getParent();
 1938                    !Solver.isBlockExecutable(cast<Instruction>(U)->getParent()))
 1996     assert(Solver.isEdgeFeasible(I->getParent(), Dest) &&
 2142         BasicBlock *InstBB = I->getParent();
 2209     Function *F = ReturnsToZap[i]->getParent()->getParent();
lib/Transforms/Scalar/SROA.cpp
 1201   BasicBlock *BB = PN.getParent();
 1214     if (LI->getParent() != BB)
 3156       PtrBuilder.SetInsertPoint(&*OldPtr->getParent()->getFirstInsertionPt());
lib/Transforms/Scalar/Scalarizer.cpp
  345     BasicBlock *BB = VOp->getParent();
  351   return Scatterer(Point->getParent(), Point->getIterator(), V);
  837       BasicBlock *BB = Op->getParent();
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
  821   Loop *L = LI->getLoopFor(Variadic->getParent());
 1229   if (!SecondGEP || FirstGEP->getParent() != SecondGEP->getParent())
 1229   if (!SecondGEP || FirstGEP->getParent() != SecondGEP->getParent())
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  385   auto *ParentBB = BI.getParent();
  440     assert(LoopExitBB->getUniquePredecessor() == BI.getParent() &&
  459     OldPH->getInstList().splice(OldPH->end(), BI.getParent()->getInstList(),
  582   auto *ParentBB = SI.getParent();
  769     BasicBlock *BB = SI.getParent();
 1906   auto *ParentBB = TI.getParent();
 2231         if (DT.dominates(LoopPH, UserI->getParent()))
 2234                  DT.dominates(ClonedPH, UserI->getParent()))
 2380   BasicBlock *CheckBB = GI->getParent();
 2461   BasicBlock *CondBlock = TI.getParent();
 2479     BasicBlock *CondBlock = CI->getParent();
 2673     BasicBlock &BB = *TI.getParent();
lib/Transforms/Scalar/Sink.cpp
   45     BasicBlock *UseBlock = UseInst->getParent();
  101   if (Inst->getParent() == SuccToSinkTo)
  113   if (SuccToSinkTo->getUniquePredecessor() != Inst->getParent()) {
  121     if (!DT.dominates(Inst->getParent(), SuccToSinkTo))
  126     Loop *cur = LI.getLoopFor(Inst->getParent());
  167   DomTreeNode *DTN = DT.getNode(Inst->getParent());
  179   for (succ_iterator I = succ_begin(Inst->getParent()),
  180       E = succ_end(Inst->getParent()); I != E && !SuccToSinkTo; ++I) {
  190              Inst->getParent()->printAsOperand(dbgs(), false); dbgs() << " -> ";
lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
   52   auto *PhiBB = PN.getParent();
   65     if (UI->getParent() != PhiBB) {
  116         auto *ParentBB = OpI->getParent();
  567   auto *ParentBB = SpecPNs[0]->getParent();
  629       if (!OpPN || OpPN->getParent() != ParentBB)
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  266           DT->dominates(Basis.Ins->getParent(), C.Ins->getParent()) &&
  266           DT->dominates(Basis.Ins->getParent(), C.Ins->getParent()) &&
  627   assert(Basis.Ins->getParent() != nullptr && "the basis is unlinked");
  633   if (!C.Ins->getParent())
lib/Transforms/Scalar/StructurizeCFG.cpp
  415     BasicBlock *Parent = Inst->getParent();
  418         if (I->getParent() == Parent && match(I, m_Not(m_Specific(Condition))))
  544     BasicBlock *Parent = Term->getParent();
  917         if (User->getParent() == BB) {
  958       LLVM_DEBUG(dbgs() << "BB: " << Br->getParent()->getName()
lib/Transforms/Scalar/TailRecursionElimination.cpp
  310     if (Visited[CI->getParent()] != ESCAPED) {
  370     Function *F = CI->getParent()->getParent();
  384   if (BasicBlock *UniquePred = RI->getParent()->getUniquePredecessor())
  387         return SI->getDefaultDest() != RI->getParent();
  397   Function *F = CI->getParent()->getParent();
  451   BasicBlock *BB = TI->getParent();
  559   BasicBlock *BB = Ret->getParent();
  712     BasicBlock *Pred = BI->getParent();
lib/Transforms/Utils/BasicBlockUtils.cpp
  221           cast<PHINode>(PN.getIncomingValue(0))->getParent() != BB)
  337   assert(I->getParent() == nullptr &&
  357   ReplaceInstWithInst(From->getParent()->getInstList(), BI, To);
  790       if (PN->getParent() == BB) {
  816   BasicBlock *Head = SplitBefore->getParent();
  866   BasicBlock *Head = SplitBefore->getParent();
lib/Transforms/Utils/BreakCriticalEdges.cpp
  145   BasicBlock *TIBB = TI->getParent();
lib/Transforms/Utils/BypassSlowDivision.cpp
  141   MainBB = I->getParent();
  395     if (BCI->getParent() == SlowDivOrRem->getParent() &&
  395     if (BCI->getParent() == SlowDivOrRem->getParent() &&
lib/Transforms/Utils/CallPromotionUtils.cpp
  117   Phi->addIncoming(OrigInst, OrigInst->getParent());
  118   Phi->addIncoming(NewInst, NewInst->getParent());
  174         &SplitEdge(Invoke->getParent(), Invoke->getNormalDest())->front();
  261   BasicBlock *OrigBlock = OrigInst->getParent();
  276   BasicBlock *ThenBlock = ThenTerm->getParent();
  277   BasicBlock *ElseBlock = ElseTerm->getParent();
  278   BasicBlock *MergeBlock = OrigInst->getParent();
lib/Transforms/Utils/CodeExtractor.cpp
  269     if (Blocks.count(I->getParent()))
  280     if (!Blocks.count(I->getParent()))
  511     BasicBlock *BB = AI->getParent();
  947         if (Blocks.count(inst->getParent()))
  969           !Blocks.count(I->getParent()))
 1013   Instruction *Term = TheCall->getParent()->getTerminator();
 1173       if (!Blocks.count(inst->getParent()))
 1247       InsertPt = Phi->getParent()->getFirstInsertionPt();
 1253             Blocks.count(InsertBefore->getParent())) &&
 1276   Type *OldFnRetTy = TheSwitch->getParent()->getParent()->getReturnType();
lib/Transforms/Utils/DemoteRegToStack.cpp
   30   Function *F = I.getParent()->getParent();
   48       unsigned SuccNum = GetSuccessorNumber(II->getParent(), II->getNormalDest());
  124     Function *F = P->getParent()->getParent();
  133       assert(II->getParent() != P->getIncomingBlock(i) &&
lib/Transforms/Utils/EntryExitInstrumenter.cpp
   22   Module &M = *InsertionPt->getParent()->getParent()->getParent();
   23   LLVMContext &C = InsertionPt->getParent()->getContext();
lib/Transforms/Utils/FlattenCFG.cpp
  405   BasicBlock *SecondEntryBlock = CInst2->getParent();
  415   BasicBlock *FirstEntryBlock = CInst1->getParent();
lib/Transforms/Utils/GuardUtils.cpp
   31   auto *CheckBB = Guard->getParent();
lib/Transforms/Utils/InlineFunction.cpp
  117       BasicBlock *InvokeBB = II->getParent();
  205   BasicBlock *Src = RI->getParent();
  632   InvokeDest->removePredecessor(II->getParent());
  652   BasicBlock *InvokeBB = II->getParent();
 1542   assert(TheCall->getParent() && TheCall->getFunction()
 1577   BasicBlock *OrigBB = TheCall->getParent();
 1997             RI->getParent()->getTerminatingMustTailCall())
 2000             RI->getParent()->getTerminatingDeoptimizeCall())
 2024       if (InlinedMustTailCalls && RI->getParent()->getTerminatingMustTailCall())
 2026       if (InlinedDeoptimizeCalls && RI->getParent()->getTerminatingDeoptimizeCall())
 2120         return RI->getParent()->getTerminatingDeoptimizeCall() != nullptr;
 2130         CallInst *DeoptCall = RI->getParent()->getTerminatingDeoptimizeCall();
 2143         auto *CurBB = RI->getParent();
 2183           RI->getParent()->getTerminatingMustTailCall();
 2192       BasicBlock *CurBB = RI->getParent();
 2330         PHI->addIncoming(RI->getReturnValue(), RI->getParent());
 2360     BasicBlock *ReturnBB = Returns[0]->getParent();
lib/Transforms/Utils/LCSSA.cpp
   93     BasicBlock *InstBB = I->getParent();
  106       BasicBlock *UserBB = User->getParent();
  190       BasicBlock *UserBB = User->getParent();
  223       BasicBlock *UserBB = DVI->getParent();
  238       if (auto *OtherLoop = LI.getLoopFor(InsertedPN->getParent()))
  357           (I.hasOneUse() && I.user_back()->getParent() == BB &&
lib/Transforms/Utils/LibCallsShrinkWrap.cpp
  491   BasicBlock *CallBB = NewInst->getParent();
lib/Transforms/Utils/Local.cpp
  145       assert(BI->getParent() && "Terminator not inserted in block!");
  146       Dest1->removePredecessor(BI->getParent());
  206         BasicBlock *ParentBB = SI->getParent();
  237       BasicBlock *BB = SI->getParent();
  317           BasicBlock *ParentBB = IBI->getParent();
  780     if (BBPN && BBPN->getParent() == BB) {
  915   if (isa<PHINode>(OldVal) && cast<PHINode>(OldVal)->getParent() == BB) {
 1219   if (PrevI != I->getParent()->getInstList().begin()) {
 1366   BasicBlock *BB = APN->getParent();
 1470     BasicBlock *Parent = PHI->getParent();
 1901   BasicBlock *BB = I->getParent();
 1966   BasicBlock *BB = II->getParent();
 1976   BasicBlock *BB = CI->getParent();
 2115           UnwindDestBB->removePredecessor(II->getParent());
 2481    auto *BB = From->getParent();
 2488     if (I->getParent() == BB)
 2509     auto *I = cast<Instruction>(U.getUser())->getParent();
lib/Transforms/Utils/LoopRotationUtils.cpp
  125         BasicBlock *UserBB = UserInst->getParent();
  151       BasicBlock *UserBB = DbgValue->getParent();
lib/Transforms/Utils/LoopSimplify.cpp
  634       if (!CI || CI->getParent() != ExitingBlock) continue;
lib/Transforms/Utils/LoopUnroll.cpp
  115           Loop *DefLoop = LI->getLoopFor(Def->getParent());
lib/Transforms/Utils/LoopUnrollAndJam.cpp
  107     if (AftBlocks.count(I->getParent()))
  126                              if (AftBlocks.count(I->getParent()))
  132   BasicBlock *InsertLocBB = InsertLoc->getParent();
  134     if (I->getParent() != InsertLocBB)
  455       Phi->getParent()->getInstList().erase(Phi);
  793             if (SubLoop->contains(I->getParent()))
  795             if (AftBlocks.count(I->getParent())) {
lib/Transforms/Utils/LoopUnrollPeel.cpp
  128   assert(Phi->getParent() == L->getHeader() &&
  147     if (IncPhi->getParent() != L->getHeader())
lib/Transforms/Utils/LoopUnrollRuntime.cpp
  220     assert(EpilogPN->getParent() == Exit && "EpilogPN should be in Exit block");
lib/Transforms/Utils/LoopUtils.cpp
  130             return !L->contains(Use->getParent());
  618           if (L->contains(Usr->getParent()))
lib/Transforms/Utils/LoopVersioning.cpp
  144         if (!VersionedLoop->contains(cast<Instruction>(U)->getParent()))
lib/Transforms/Utils/LowerMemIntrinsics.cpp
   34   BasicBlock *PreLoopBB = InsertBefore->getParent();
  141   BasicBlock *PreLoopBB = InsertBefore->getParent();
  292   BasicBlock *OrigBB = InsertBefore->getParent();
  314   BasicBlock *CopyBackwardsBB = ThenTerm->getParent();
  316   BasicBlock *CopyForwardBB = ElseTerm->getParent();
  318   BasicBlock *ExitBB = InsertBefore->getParent();
  372   BasicBlock *OrigBB = InsertBefore->getParent();
lib/Transforms/Utils/LowerSwitch.cpp
  443   BasicBlock *OrigBlock = SI->getParent();
lib/Transforms/Utils/MisExpect.cpp
   86   OptimizationRemarkEmitter ORE(I->getParent()->getParent());
lib/Transforms/Utils/PredicateInfo.cpp
  165       return std::make_pair(PHI->getIncomingBlock(*VD.U), PHI->getParent());
  306         IBlock = I->getParent();
  479           Op, SI->getParent(), TargetBlock, C.getCaseValue(), SI);
  508       if (DT.isReachableFromEntry(II->getParent()))
  509         processAssume(II, II->getParent(), OpsToRename);
  620         DomTreeNode *DomNode = DT.getNode(PAssume->AssumeInst->getParent());
lib/Transforms/Utils/PromoteMemoryToRegister.cpp
  140         DefiningBlocks.push_back(SI->getParent());
  146         UsingBlocks.push_back(LI->getParent());
  151           OnlyBlock = User->getParent();
  152         else if (OnlyBlock != User->getParent())
  352   BasicBlock *StoreBB = OnlyStore->getParent();
  369       if (LI->getParent() == StoreBB) {
  381       } else if (!DT.dominates(StoreBB, LI->getParent())) {
  385         Info.UsingBlocks.push_back(LI->getParent());
  544     assert(AI->getParent()->getParent() == &F &&
  717     BasicBlock *BB = SomePHI->getParent();
lib/Transforms/Utils/SSAUpdater.cpp
  196     V = GetValueInMiddleOfBlock(User->getParent());
  213     V = GetValueAtEndOfBlock(User->getParent());
  359     UsesByBlock[User->getParent()].push_back(User);
  368     BasicBlock *BB = User->getParent();
  449     Value *NewVal = SSA.GetValueInMiddleOfBlock(ALoad->getParent());
lib/Transforms/Utils/SSAUpdaterBulk.cpp
   35     return User->getParent();
  169       BasicBlock *PBB = PN->getParent();
lib/Transforms/Utils/SimplifyCFG.cpp
  237   BasicBlock *SI1BB = SI1->getParent();
  238   BasicBlock *SI2BB = SI2->getParent();
  282   BasicBlock *SI1BB = SI1->getParent();
  283   BasicBlock *SI2BB = SI2->getParent();
  360   BasicBlock *PBB = I->getParent();
  704     if (!SI->getParent()->hasNPredecessorsOrMore(128 / SI->getNumSuccessors()))
  793     N = MDBuilder(SI->getParent()->getContext()).createBranchWeights(Weights);
  806     N = MDBuilder(I->getParent()->getContext())
  843   if (PredDef == TI->getParent()) {
  859       ThisCases[0].Dest->removePredecessor(TI->getParent());
  881         i->getCaseSuccessor()->removePredecessor(TI->getParent());
  892   BasicBlock *TIBB = TI->getParent();
 1004   BasicBlock *BB = TI->getParent();
 1021           if (!SplitBlockPredecessors(Succ, TI->getParent(), ".fold.split"))
 1266   BasicBlock *BIParent = BI->getParent();
 1597       PN->addIncoming(I->getOperand(O), I->getParent());
 1963   BasicBlock *BB = BI->getParent();
 2022       if (!OpI || OpI->getParent() != BB || OpI->mayHaveSideEffects())
 2161       if (UI->getParent() != BB || isa<PHINode>(UI))
 2176   BasicBlock *BB = BI->getParent();
 2180   if (!PN || PN->getParent() != BB || !PN->hasOneUse())
 2185     FoldSingleEntryPHINodes(PN->getParent());
 2301   BasicBlock *BB = PN->getParent();
 2466     TrueSucc->removePredecessor(BI->getParent());
 2467     FalseSucc->removePredecessor(BI->getParent());
 2480     if (TVPN->getParent() == TrueSucc)
 2481       TrueValue = TVPN->getIncomingValueForBlock(BI->getParent());
 2483     if (FVPN->getParent() == FalseSucc)
 2484       FalseValue = FVPN->getIncomingValueForBlock(BI->getParent());
 2500   TrueSucc->removePredecessor(BI->getParent());
 2501   FalseSucc->removePredecessor(BI->getParent());
 2575   BasicBlock *BB = BI->getParent();
 2611       Cond->getParent() != BB || !Cond->hasOneUse())
 2639     if (User == nullptr || User->getParent() != BB)
 2816             PHIs[i]->getIncomingValueForBlock(PBI->getParent()));
 2845 	PHIs[i]->setIncomingValueForBlock(PBI->getParent(), MergedCond);
 2933       (!isa<Instruction>(V) || cast<Instruction>(V)->getParent() != BB))
 2986   for (auto I = BasicBlock::iterator(PStore), E = PStore->getParent()->end();
 3054                                                 PStore->getParent());
 3056                                                 QStore->getParent(), PPHI);
 3060   Value *PPred = PStore->getParent() == PTB ? PCond : QB.CreateNot(PCond);
 3061   Value *QPred = QStore->getParent() == QTB ? QCond : QB.CreateNot(QCond);
 3154   if (PFB == QBI->getParent()) {
 3165   if (PTB == QBI->getParent())
 3176   if (!HasOnePredAndOneSucc(PFB, PBI->getParent(), QBI->getParent()) ||
 3176   if (!HasOnePredAndOneSucc(PFB, PBI->getParent(), QBI->getParent()) ||
 3177       !HasOnePredAndOneSucc(QFB, QBI->getParent(), PostBB))
 3179   if ((PTB && !HasOnePredAndOneSucc(PTB, PBI->getParent(), QBI->getParent())) ||
 3179   if ((PTB && !HasOnePredAndOneSucc(PTB, PBI->getParent(), QBI->getParent())) ||
 3180       (QTB && !HasOnePredAndOneSucc(QTB, QBI->getParent(), PostBB)))
 3182   if (!QBI->getParent()->hasNUses(2))
 3223   BasicBlock *BB = BI->getParent();
 3332     unsigned PBBIdx = PN->getBasicBlockIndex(PBI->getParent());
 3342   LLVM_DEBUG(dbgs() << "FOLDING BRs:" << *PBI->getParent()
 3343                     << "AND: " << *BI->getParent());
 3361   LLVM_DEBUG(dbgs() << *PBI->getParent()->getParent());
 3409   AddPredecessorToBlock(OtherDest, PBI->getParent(), BB);
 3417     unsigned PBBIdx = PN.getBasicBlockIndex(PBI->getParent());
 3445   LLVM_DEBUG(dbgs() << "INTO: " << *PBI->getParent());
 3446   LLVM_DEBUG(dbgs() << *PBI->getParent()->getParent());
 3477       Succ->removePredecessor(OldTerm->getParent(),
 3592   BasicBlock *BB = ICI->getParent();
 3739   BasicBlock *BB = BI->getParent();
 3810   else if (isa<LandingPadInst>(RI->getParent()->getFirstNonPHI()) &&
 3811            RI->getValue() == RI->getParent()->getFirstNonPHI())
 3820   BasicBlock *BB = RI->getParent();
 3899   BasicBlock *BB = RI->getParent();
 3932   BasicBlock *BB = RI->getParent();
 3934   if (CPInst->getParent() != BB)
 4000       if (SrcPN && SrcPN->getParent() == BB) {
 4069   if (UnwindDest->getSinglePredecessor() != RI->getParent())
 4086   BranchInst::Create(UnwindDest, RI->getParent());
 4109   BasicBlock *BB = RI->getParent();
 4163   BasicBlock *BB = UI->getParent();
 4251         BB->removePredecessor(SU->getParent());
 4258         removeUnwindEdge(TI->getParent());
 4263         removeUnwindEdge(TI->getParent());
 4279         BasicBlock *CatchSwitchBB = CSI->getParent();
 4327      SplitBlockPredecessors(Switch->getDefaultDest(), Switch->getParent(), "");
 4433       cast<PHINode>(BBI)->removeIncomingValue(SI->getParent());
 4440       cast<PHINode>(BBI)->removeIncomingValue(SI->getParent());
 4505     CaseI->getCaseSuccessor()->removePredecessor(SI->getParent());
 4552   BasicBlock *SwitchBlock = SI->getParent();
 4683   BasicBlock *Pred = SI->getParent();
 4705           if (I->getParent() == CaseDest)
 4865   BasicBlock *SelectBB = SI->getParent();
 4870   Builder.CreateBr(PHI->getParent());
 4876     if (Succ == PHI->getParent())
 5235   if (CmpInst->getParent() != PhiBlock)
 5267   BasicBlock *BranchBlock = RangeCheckBranch->getParent();
 5296   Function *Fn = SI->getParent()->getParent();
 5468     AddPredecessorToBlock(SI->getDefaultDest(), MaskBB, SI->getParent());
 5474     SI->getDefaultDest()->removePredecessor(SI->getParent(),
 5502       BasicBlock *PhiBlock = PHI->getParent();
 5521     Succ->removePredecessor(SI->getParent());
 5634   BasicBlock *BB = SI->getParent();
 5685   BasicBlock *BB = IBI->getParent();
 5801   BasicBlock *BB = BI->getParent();
 5861   BasicBlock *BB = BI->getParent();
 5941     if (PN->getParent() == BI->getParent())
 5941     if (PN->getParent() == BI->getParent())
 5982       if (i == I->getParent()->end() || i->mayHaveSideEffects())
lib/Transforms/Utils/SimplifyIndVar.cpp
  188   const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent());
  258   const Loop *ICmpLoop = LI->getLoopFor(ICmp->getParent());
  298   const Loop *L = LI->getLoopFor(SDiv->getParent());
  370   const Loop *ICmpLoop = LI->getLoopFor(Rem->getParent());
  542         !DT->isReachableFromEntry(cast<Instruction>(U)->getParent()))
  546     assert(L->contains(ICI->getParent()) && "LCSSA form broken?");
  936   SimplifyIndvar SIV(LI->getLoopFor(CurrIV->getParent()), SE, DT, LI, Rewriter,
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1175   B.SetInsertPoint(Malloc->getParent(), ++Malloc->getIterator());
 2098     B.SetInsertPoint(ArgInst->getParent(), ++ArgInst->getIterator());
 2719                     llvm::shouldOptimizeForSize(CI->getParent(), PSI, BFI);
lib/Transforms/Utils/VNCoercion.cpp
  426     IRBuilder<> Builder(SrcVal->getParent(), ++BasicBlock::iterator(SrcVal));
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  505   OrderedBasicBlock OBB(I->getParent());
  520       if (IM->getParent() != I->getParent())
  520       if (IM->getParent() != I->getParent())
  531   for (auto BBI = I->getIterator(), E = I->getParent()->end(); BBI != E;
  548   BasicBlock *BB = C0->getParent();
  639   OrderedBasicBlock OBB(Chain[0]->getParent());
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  247                  UnsafeAlgebraInst->getParent())
lib/Transforms/Vectorize/LoopVectorize.cpp
  858     CodeRegion = I->getParent();
 1240     if (!blockNeedsPredication(I->getParent()))
 1662                       DT->dominates(Instr->getParent(), LoopVectorPreHeader));
 3866   auto *PredBB = PredInst->getParent();
 3880     BasicBlock *BB = I->getParent();
 3904       if (!I || isa<PHINode>(I) || I->getParent() == PredBB ||
 3935         predecessors(OrigPhi->getParent()));
 3937         predecessors(NewPhi->getParent()));
 3981   assert(PN->getParent() == OrigLoop->getHeader() &&
 4263     Module *M = I.getParent()->getParent()->getParent();
 4546   if (!blockNeedsPredication(I->getParent()))
 4598       Legal->blockNeedsPredication(I->getParent()) && Legal->isMaskRequired(I);
 5565     if (!I->hasOneUse() || PredInst->getParent() != I->getParent() ||
 5565     if (!I->hasOneUse() || PredInst->getParent() != I->getParent() ||
 5960           !Legal->blockNeedsPredication(I.getParent())) {
 6059         if ((InstOp->getParent() == I->getParent()) && !isa<PHINode>(InstOp) &&
 6059         if ((InstOp->getParent() == I->getParent()) && !isa<PHINode>(InstOp) &&
 6126     } else if (I->getParent() == TheLoop->getLoopLatch() || VF == 1)
 6148     if (VF > 1 && Phi->getParent() != TheLoop->getHeader())
 6739     Mask = createBlockInMask(I->getParent(), Plan);
 6770     Mask = createBlockInMask(I->getParent(), Plan);
 6810   if (!Phi || Phi->getParent() == OrigLoop->getHeader())
 6823       createEdgeMask(Phi->getIncomingBlock(In), Phi->getParent(), Plan);
 6984   VPValue *BlockInMask = createBlockInMask(Instr->getParent(), Plan);
 6988   assert(Instr->getParent() && "Predicated instruction not in any basic block");
 7402   BasicBlock *PredicatedBB = ScalarPredInst->getParent();
lib/Transforms/Vectorize/SLPVectorizer.cpp
  185   BasicBlock *BB = I0->getParent();
  191     if (BB != I->getParent())
 2260   BasicBlock *BB = VL0->getParent();
 3395       if (PrevInstIt == PrevInst->getParent()->rend()) {
 3396         PrevInstIt = Inst->getParent()->rbegin();
 3558   auto *BB = Front->getParent();
 3562                         return !E->isOpcodeOrAlt(I) || I->getParent() == BB;
 3623       CSEBlocks.insert(Insrt->getParent());
 3707       CSEBlocks.insert(I->getParent());
 3746         CSEBlocks.insert(I->getParent());
 3758       Builder.SetInsertPoint(PH->getParent()->getFirstNonPHI());
 3819           CSEBlocks.insert(I->getParent());
 3854           CSEBlocks.insert(I->getParent());
 4301         Builder.SetInsertPoint(VecI->getParent(),
 4308       CSEBlocks.insert(cast<Instruction>(Scalar)->getParent());
 4326               Builder.SetInsertPoint(VecI->getParent(),
 4341         CSEBlocks.insert(cast<Instruction>(User)->getParent());
 4400     Loop *L = LI->getLoopFor(I->getParent());
 4459             DT->dominates(v->getParent(), In->getParent())) {
 4459             DT->dominates(v->getParent(), In->getParent())) {
 5642   Value *P = I->getParent();
 5647   if (!Op0 || !Op1 || Op0->getParent() != P || Op1->getParent() != P)
 5647   if (!Op0 || !Op1 || Op0->getParent() != P || Op1->getParent() != P)
 5660     if (B0 && B0->getParent() == P && tryToVectorizePair(A, B0, R))
 5662     if (B1 && B1->getParent() == P && tryToVectorizePair(A, B1, R))
 5670     if (A0 && A0->getParent() == P && tryToVectorizePair(A0, B, R))
 5672     if (A1 && A1->getParent() == P && tryToVectorizePair(A1, B, R))
 5877         return I->getParent() == P;
 5881         return I->getParent() == P;
 5889         return I->getParent() == P && Cmp && Cmp->getParent() == P;
 5889         return I->getParent() == P && Cmp && Cmp->getParent() == P;
 6327           if (!ReductionData.hasSameParent(I, B->getParent(),
 6685            DT->dominates(P->getParent(), cast<Instruction>(R)->getParent());
 6685            DT->dominates(P->getParent(), cast<Instruction>(R)->getParent());
 6743   if (Root->getParent() != BB || isa<PHINode>(Root))
 6801             if (!isa<PHINode>(I) && !R.isDeleted(I) && I->getParent() == BB)
lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
  137   BasicBlock *InstParent = Inst->getParent();
tools/bugpoint-passes/TestPasses.cpp
   63           CI->getParent()->getInstList().erase(CI);
tools/bugpoint/ExtractFunction.cpp
  108   TheInst->getParent()->getInstList().erase(TheInst);
tools/clang/lib/CodeGen/CGCall.cpp
 2781   llvm::BasicBlock *StoreBB = store->getParent();
tools/clang/lib/CodeGen/CGExpr.cpp
  130   llvm::BasicBlock *Block = AllocaInsertPt->getParent();
tools/clang/lib/CodeGen/CGExprComplex.cpp
  717       llvm::BasicBlock *OrigBB = Branch->getParent();
tools/clang/lib/CodeGen/CGExprScalar.cpp
 2567     Builder.CreateCondBr(success, contBB, atomicPHI->getParent());
 2923     Builder.CreateCondBr(success, contBB, atomicPHI->getParent());
tools/clang/lib/CodeGen/CGObjC.cpp
 2776     CGF.Builder.SetInsertPoint(call->getParent(),
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1705       llvm::BasicBlock *TopBlock = CGF.AllocaInsertPt->getParent();
 1710           cast<llvm::Instruction>(LVal.getPointer())->getParent() == TopBlock ||
 1711           cast<llvm::Instruction>(LVal.getPointer())->getParent() ==
tools/clang/lib/CodeGen/CGStmt.cpp
  506       CurFn->getBasicBlockList().insertAfter(insn->getParent()->getIterator(),
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  272       Builder.SetInsertPoint(BI->getParent());
  366     EmitBlock(IndirectBranch->getParent());
 1705   if (IndirectBranch) return IndirectBranch->getParent();
 1715   return IndirectBranch->getParent();
tools/clang/lib/CodeGen/CodeGenFunction.h
  153     llvm::BasicBlock *block = cast<llvm::Instruction>(value)->getParent();
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
 1631         if (llvm_function && inst->getParent()->getParent() != llvm_function) {
 1637             old_constant, value_maker.GetValue(inst->getParent()->getParent()));
 1819         if (instruction->getParent()->getParent() != &llvm_function) {
 1825             body_result_maker.GetValue(instruction->getParent()->getParent()));
tools/llvm-diff/DifferenceEngine.cpp
  519   BasicBlock::iterator LE = LStart->getParent()->end();
  520   BasicBlock::iterator RE = RStart->getParent()->end();
  631   Instruction *LTerm = LStart->getParent()->getTerminator();
  632   Instruction *RTerm = RStart->getParent()->getTerminator();
  636     if (I == LStart->getParent()->begin()) return;
  649     if (I == RStart->getParent()->begin()) return;
tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
   68     ReturnInst::Create(SwInst.getContext(), nullptr, SwInst.getParent());
tools/llvm-stress/llvm-stress.cpp
  717     BasicBlock *Curr = Instr->getParent();
tools/polly/include/polly/ScopInfo.h
 1379     return represents(Inst->getParent());
 1460            (!isRegionStmt() && Inst->getParent() == BB));
 1480     assert(isBlockStmt() || R->getExit() == PHI->getParent());
tools/polly/lib/Analysis/ScopBuilder.cpp
  549                      TI ? TI->getParent() : nullptr /* BasicBlock */);
 1065       scop->invalidate(COMPLEXITY, TI->getDebugLoc(), TI->getParent());
 1086   auto *Scope = LI.getLoopFor(PHI->getParent());
 1532     if (!InScop && !scop->isDominatedBy(DT, CI->getParent()))
 1535     auto *L = LI.getLoopFor(CI->getParent());
 1557     auto *TI = InScop ? CI->getParent()->getTerminator() : nullptr;
 1558     BasicBlock *BB = InScop ? CI->getParent() : R.getEntry();
 1605       SE.getSCEVAtScope(Address, LI.getLoopFor(Inst->getParent()));
 1685       SE.getSCEVAtScope(Address, LI.getLoopFor(Inst->getParent()));
 1717     scop->invalidate(DELINEARIZATION, Inst->getDebugLoc(), Inst->getParent());
 1730   auto *L = LI.getLoopFor(Inst->getParent());
 1822     Loop *L = LI.getLoopFor(Inst->getParent());
 1850       SE.getSCEVAtScope(Address, LI.getLoopFor(Inst->getParent()));
 2080     int Idx = PHI->getBasicBlockIndex(PHI->getParent());
 2279     if (Inst && DT.dominates(Inst->getParent(), Stmt->getRegion()->getExit()))
 2521     Stmt = scop->getLastStmtFor(Inst->getParent());
 2750         scop->invalidate(INVARIANTLOAD, LI->getDebugLoc(), LI->getParent());
 2895   } else if (BB != LI->getParent()) {
 2919                       AS_RESTRICTION, LI->getParent());
 2936   const DataLayout &DL = LInst->getParent()->getModule()->getDataLayout();
 2983     scop->invalidate(COMPLEXITY, AccInst->getDebugLoc(), AccInst->getParent());
 3109   if (BinOp->getParent() != Store->getParent())
 3109   if (BinOp->getParent() != Store->getParent())
 3126     if (PossibleLoad0->getParent() == Store->getParent())
 3126     if (PossibleLoad0->getParent() == Store->getParent())
 3129     if (PossibleLoad1->getParent() == Store->getParent())
 3129     if (PossibleLoad1->getParent() == Store->getParent())
 3464                        MA->getAccessInstruction()->getParent());
tools/polly/lib/Analysis/ScopDetection.cpp
  476           Load->getParent() != NonAffineRegion->getEntry())
  713         auto *ArgSCEV = SE.getSCEVAtScope(Arg, LI.getLoopFor(CI.getParent()));
  746   Loop *L = LI.getLoopFor(II.getParent());
 1102   auto *Scope = LI.getLoopFor(Inst->getParent());
 1113           std::make_pair(BP, LI.getLoopFor(Inst->getParent())));
 1183   Loop *L = LI.getLoopFor(Inst->getParent());
 1200     if (isErrorBlock(*OpInst->getParent(), Context.CurRegion, LI, DT)) {
tools/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
  554 const Value *ReportFuncCall::getRemarkBB() const { return Inst->getParent(); }
  584   return Inst->getParent();
  646 const Value *ReportAlias::getRemarkBB() const { return Inst->getParent(); }
  685   return BaseValue->getParent();
  708 const Value *ReportAlloca::getRemarkBB() const { return Inst->getParent(); }
  731   return Inst->getParent();
tools/polly/lib/Analysis/ScopInfo.cpp
 2435     if (IncomingInst->getParent() == IncomingBB) {
 2560         isExit(cast<PHINode>(Use.getUser())->getParent()))
tools/polly/lib/CodeGen/BlockGenerators.cpp
  574             DT.dominates(cast<Instruction>(Address)->getParent(),
  716                                      LI.getLoopFor(Inst->getParent())));
  739                                        LI.getLoopFor(Inst->getParent())));
  792                   DT.dominates(cast<Instruction>(Val)->getParent(),
  796                   DT.dominates(cast<Instruction>(Address)->getParent(),
  956     if (PHI->getParent() != AfterMergeBB)
  965             cast<Instruction>(OriginalValue)->getParent() != MergeBB) &&
  994       if (Loop *L = LI.getLoopFor(EUser->getParent()))
 1633   if (OrigPHI->getParent() != SubR->getExit()) {
 1725                   DT.dominates(cast<Instruction>(NewVal)->getParent(),
 1729                   DT.dominates(cast<Instruction>(Address)->getParent(),
 1764     if (IP->getParent() != BBCopyEnd)
 1767     if (IP->getParent() != BBCopyEnd)
 1791   PHICopy->moveBefore(PHICopy->getParent()->getFirstNonPHI());
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
  723   removeSubFuncFromDomTree((*LoopBody).getParent()->getParent(), DT);
 1065             auto *Domain = S.getDomainConditions(Inst->getParent()).release();
tools/polly/lib/Support/ScopHelper.cpp
  552   Loop *L = LI.getLoopFor(LInst->getParent());
  586     auto &BB = *UserI->getParent();
  587     if (DT.dominates(&BB, LInst->getParent()))
  658   return UI->getParent();
tools/polly/lib/Support/VirtualInstruction.cpp
   30     if (S->getRegion().getExit() == PHI->getParent())
   33     if (UserStmt->getEntryBlock() != PHI->getParent())
  386     if (PHI && PHI->getParent() == Stmt->getEntryBlock()) {
tools/polly/lib/Transform/DeLICM.cpp
  714                             LI->getLoopFor(DefInst->getParent()));
tools/polly/lib/Transform/ForwardOpTree.cpp
  769       DefLoop = LI->getLoopFor(Inst->getParent());
tools/polly/lib/Transform/RewriteByReferenceParameters.cpp
   39     BasicBlock *Entry = &Inst.getParent()->getParent()->getEntryBlock();
tools/polly/lib/Transform/Simplify.cpp
  429              Stmt.getEntryBlock() == MA->getAccessInstruction()->getParent());
tools/polly/lib/Transform/ZoneAlgo.cpp
  402         Load, Stmt, LI->getLoopFor(Load->getParent()), Stmt->isBlockStmt());
  424   auto L = MA->isOriginalArrayKind() ? LI->getLoopFor(AccInst->getParent())
unittests/Analysis/LazyCallGraphTest.cpp
 1140     if (CI->getParent()->getParent() == &C1.getFunction()) {
 1143     } else if (CI->getParent()->getParent() == &D1.getFunction()) {
unittests/Analysis/MemorySSATest.cpp
  284                                      LoadInstClone->getParent(),
  409   SideStore->moveBefore(*EntryStore->getParent(), ++EntryStore->getIterator());
  454   SideStore->moveBefore(*EntryStore->getParent(), EntryStore->getIterator());
  818       LIA, MSSA.getMemoryAccess(SIB), LIA->getParent(), MemorySSA::End));
unittests/Analysis/ScalarEvolutionTest.cpp
 1479       auto *Loop = LI.getLoopFor(I.getParent());
 1523       auto *LoopHeaderBB = I.getParent();
 1604       auto *LoopHeaderBB = I.getParent();
 1778       auto *Loop = LI.getLoopFor(I.getParent());
 1820       auto *LoopHeaderBB = I.getParent();
 1874       auto *LoopHeaderBB = I.getParent();
unittests/Analysis/SparsePropagation.cpp
  189     Function *F = I.getParent()->getParent();
unittests/FuzzMutate/OperationsTest.cpp
  193   ASSERT_THAT(RI->getParent(), Eq(BB1));
  207   EXPECT_THAT(AI->getParent(), Eq(BB2));
  208   EXPECT_THAT(RI->getParent(), Eq(BB2));
unittests/IR/IRBuilderTest.cpp
  826   Builder.SetInsertPoint(Call1->getParent(), Call1->getIterator());
unittests/Transforms/Utils/CloningTest.cpp
  244   EXPECT_EQ(AddSplit->getParent(), Split);
  250   EXPECT_EQ(MulSplit->getParent(), Split);
  294   EXPECT_EQ(AddSplit->getParent(), Split);
  300   EXPECT_EQ(MulSplit->getParent(), Split);
  346   EXPECT_EQ(AddSplit->getParent(), Split);
  352   EXPECT_EQ(MulSplit->getParent(), Split);
  619                          getParent()->getParent());
  622                          getParent()->getParent());