Home
last modified time | relevance | path

Searched refs:ParentBB (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSimpleLoopUnswitch.cpp549 auto *ParentBB = BI.getParent(); in unswitchTrivialBranch() local
550 if (!areLoopExitPHIsLoopInvariant(L, *ParentBB, *LoopExitBB)) { in unswitchTrivialBranch()
631 BI.clone()->insertInto(ParentBB, ParentBB->end()); in unswitchTrivialBranch()
635 Instruction *NewBI = BranchInst::Create(ContinueBB, ParentBB); in unswitchTrivialBranch()
670 Instruction *Term = ParentBB->getTerminator(); in unswitchTrivialBranch()
673 Instruction *NewBI = BranchInst::Create(ContinueBB, ParentBB); in unswitchTrivialBranch()
676 MSSAU->removeEdge(ParentBB, LoopExitBB); in unswitchTrivialBranch()
678 DT.deleteEdge(ParentBB, LoopExitBB); in unswitchTrivialBranch()
686 rewritePHINodesForUnswitchedExitBlock(*UnswitchedBB, *ParentBB, *OldPH); in unswitchTrivialBranch()
689 *ParentBB, *OldPH, FullUnswitch); in unswitchTrivialBranch()
[all …]
H A DDivRemPairs.cpp247 auto IsSafeToHoist = [](Instruction *DivOrRem, BasicBlock *ParentBB) { in optimizeDivRem() argument
248 for (auto I = ParentBB->begin(), E = DivOrRem->getIterator(); I != E; in optimizeDivRem()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DCFG.cpp49 const BasicBlock *ParentBB = Top.first; in FindFunctionBackedges() local
53 while (I != succ_end(ParentBB)) { in FindFunctionBackedges()
61 Result.push_back(std::make_pair(ParentBB, BB)); in FindFunctionBackedges()
H A DLazyValueInfo.cpp2022 auto *ParentBB = I->getParent(); in emitInstructionAnnot() local
2039 printResult(ParentBB); in emitInstructionAnnot()
2042 for (const auto *BBSucc : successors(ParentBB)) in emitInstructionAnnot()
2043 if (DT.dominates(ParentBB, BBSucc)) in emitInstructionAnnot()
2049 if (!isa<PHINode>(UseI) || DT.dominates(ParentBB, UseI->getParent())) in emitInstructionAnnot()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DOpenMPOpt.cpp1102 BasicBlock *ParentBB = SeqStartI->getParent(); in mergeParallelRegions() local
1104 SplitBlock(ParentBB, SeqEndI->getNextNode(), DT, LI); in mergeParallelRegions()
1108 SplitBlock(ParentBB, SeqStartI, DT, LI, nullptr, "seq.par.merged"); in mergeParallelRegions()
1110 assert(ParentBB->getUniqueSuccessor() == SeqStartBB && in mergeParallelRegions()
1112 const DebugLoc DL = ParentBB->getTerminator()->getDebugLoc(); in mergeParallelRegions()
1113 ParentBB->getTerminator()->eraseFromParent(); in mergeParallelRegions()
1166 InsertPointTy(ParentBB, ParentBB->end()), DL); in mergeParallelRegions()
3951 BasicBlock *ParentBB = RegionStartI->getParent(); in insertInstructionGuardsHelper() local
3952 Function *Fn = ParentBB->getParent(); in insertInstructionGuardsHelper()
3977 BasicBlock *RegionEndBB = SplitBlock(ParentBB, RegionEndI->getNextNode(), in insertInstructionGuardsHelper()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DInstruction.cpp115 BasicBlock::iterator Instruction::insertInto(BasicBlock *ParentBB, in insertInto() argument
118 assert((It == ParentBB->end() || It->getParent() == ParentBB) && in insertInto()
120 insertBefore(*ParentBB, It); in insertInto()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVEmitIntrinsics.cpp944 BasicBlock *ParentBB = I.getParent(); in visitSwitchInst() local
945 IRBuilder<> B(ParentBB); in visitSwitchInst()
967 B.SetInsertPoint(ParentBB); in visitSwitchInst()
969 Constant::getNullValue(PointerType::getUnqual(ParentBB->getContext())), in visitSwitchInst()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstruction.h218 InstListType::iterator insertInto(BasicBlock *ParentBB,
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DIRTranslator.h686 MachineBasicBlock *ParentBB);
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.h524 MachineBasicBlock *ParentBB);
H A DSelectionDAGBuilder.cpp3079 MachineBasicBlock *ParentBB) { in visitSPDescriptorParent() argument
3086 MachineFrameInfo &MFI = ParentBB->getParent()->getFrameInfo(); in visitSPDescriptorParent()
3092 const Module &M = *ParentBB->getParent()->getFunction().getParent(); in visitSPDescriptorParent()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DIRTranslator.cpp3682 MachineBasicBlock *ParentBB) { in emitSPDescriptorParent() argument
3683 CurBuilder->setInsertPt(*ParentBB, ParentBB->end()); in emitSPDescriptorParent()
3689 MachineFrameInfo &MFI = ParentBB->getParent()->getFrameInfo(); in emitSPDescriptorParent()
3694 const Module &M = *ParentBB->getParent()->getFunction().getParent(); in emitSPDescriptorParent()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp237 BasicBlock *ParentBB = SI->getParent(); in ConstantFoldTerminator() local
238 DefaultDest->removePredecessor(ParentBB); in ConstantFoldTerminator()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp18118 BasicBlock *ParentBB, LoopInfo *LI) { in getReductionInstr() argument
18130 if (P->getIncomingBlock(0) == ParentBB) { in getReductionInstr()
18132 } else if (P->getIncomingBlock(1) == ParentBB) { in getReductionInstr()
18140 Loop *BBL = LI->getLoopFor(ParentBB); in getReductionInstr()