Home
last modified time | relevance | path

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

/external/llvm/include/llvm/Support/
DGenericDomTree.h71 DomTreeNodeBase<NodeT> *IDom; variable
89 DomTreeNodeBase<NodeT> *getIDom() const { return IDom; } in getIDom()
95 : TheBB(BB), IDom(iDom), DFSNumIn(-1), DFSNumOut(-1) {} in DomTreeNodeBase()
126 assert(IDom && "No immediate dominator?"); in setIDom()
127 if (IDom != NewIDom) { in setIDom()
129 std::find(IDom->Children.begin(), IDom->Children.end(), this); in setIDom()
130 assert(I != IDom->Children.end() && in setIDom()
133 IDom->Children.erase(I); in setIDom()
136 IDom = NewIDom; in setIDom()
137 IDom->Children.push_back(this); in setIDom()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/
DDominators.h66 DomTreeNodeBase<NodeT> *IDom; variable
83 DomTreeNodeBase<NodeT> *getIDom() const { return IDom; } in getIDom()
89 : TheBB(BB), IDom(iDom), DFSNumIn(-1), DFSNumOut(-1) { } in DomTreeNodeBase()
123 assert(IDom && "No immediate dominator?"); in setIDom()
124 if (IDom != NewIDom) { in setIDom()
126 std::find(IDom->Children.begin(), IDom->Children.end(), this); in setIDom()
127 assert(I != IDom->Children.end() && in setIDom()
130 IDom->Children.erase(I); in setIDom()
133 IDom = NewIDom; in setIDom()
134 IDom->Children.push_back(this); in setIDom()
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DSSAUpdaterImpl.h52 BBInfo *IDom; // Immediate dominator. variable
59 IDom(nullptr), NumPreds(0), Preds(nullptr), PHITag(nullptr) {} in BBInfo()
160 Info->IDom = PseudoEntry; in BuildBlockList()
206 Blk1 = Blk1->IDom; in IntersectDominators()
211 Blk2 = Blk2->IDom; in IntersectDominators()
259 if (NewIDom && NewIDom != Info->IDom) { in FindDominators()
260 Info->IDom = NewIDom; in FindDominators()
271 bool IsDefInDomFrontier(const BBInfo *Pred, const BBInfo *IDom) { in IsDefInDomFrontier() argument
272 for (; Pred != IDom; Pred = Pred->IDom) { in IsDefInDomFrontier()
297 BBInfo *NewDefBB = Info->IDom->DefBB; in FindPHIPlacement()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
DSSAUpdaterImpl.h41 BBInfo *IDom; // Immediate dominator. variable
47 : BB(ThisBB), AvailableVal(V), DefBB(V ? this : 0), BlkNum(0), IDom(0), in BBInfo()
149 Info->IDom = PseudoEntry; in BuildBlockList()
195 Blk1 = Blk1->IDom; in IntersectDominators()
200 Blk2 = Blk2->IDom; in IntersectDominators()
248 if (NewIDom && NewIDom != Info->IDom) { in FindDominators()
249 Info->IDom = NewIDom; in FindDominators()
260 bool IsDefInDomFrontier(const BBInfo *Pred, const BBInfo *IDom) { in IsDefInDomFrontier() argument
261 for (; Pred != IDom; Pred = Pred->IDom) { in IsDefInDomFrontier()
286 BBInfo *NewDefBB = Info->IDom->DefBB; in FindPHIPlacement()
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DLiveRangeCalc.cpp190 MachineDomTreeNode *IDom = Node->getIDom(); in updateSSA() local
195 bool needPHI = !IDom || !Seen.test(IDom->getBlock()->getNumber()); in updateSSA()
201 IDomValue = LiveOut[IDom->getBlock()]; in updateSSA()
205 LiveOut[IDom->getBlock()].second = IDomValue.second = in updateSSA()
222 if (DomTree->dominates(IDom, Value.second)) { in updateSSA()
DSplitKit.cpp694 MachineDomTreeNode *IDom = MDT[Loop->getHeader()]->getIDom(); in findShallowDominator() local
697 if (!IDom || !MDT.dominates(DefDomNode, IDom)) in findShallowDominator()
700 MBB = IDom->getBlock(); in findShallowDominator()
/external/llvm/lib/CodeGen/
DShrinkWrap.cpp261 MachineBasicBlock *IDom = &Block; in FindIDom() local
263 IDom = Dom.findNearestCommonDominator(IDom, BB); in FindIDom()
264 if (!IDom) in FindIDom()
267 if (IDom == &Block) in FindIDom()
269 return IDom; in FindIDom()
DLiveRangeCalc.cpp404 MachineDomTreeNode *IDom = Node->getIDom(); in updateSSA() local
409 bool needPHI = !IDom || !Seen.test(IDom->getBlock()->getNumber()); in updateSSA()
415 IDomValue = Map[IDom->getBlock()]; in updateSSA()
419 Map[IDom->getBlock()].second = IDomValue.second = in updateSSA()
436 if (DomTree->dominates(IDom, Value.second)) { in updateSSA()
DSplitKit.cpp736 MachineDomTreeNode *IDom = MDT[Loop->getHeader()]->getIDom(); in findShallowDominator() local
739 if (!IDom || !MDT.dominates(DefDomNode, IDom)) in findShallowDominator()
742 MBB = IDom->getBlock(); in findShallowDominator()
/external/llvm/lib/Target/AMDGPU/
DSIAnnotateControlFlow.cpp192 BasicBlock *IDom = DT->getNode(Phi->getParent())->getIDom()->getBlock(); in isElse() local
194 if (Phi->getIncomingBlock(i) == IDom) { in isElse()
264 BasicBlock *IDom = DT->getNode(Parent)->getIDom()->getBlock(); in handleLoopCondition() local
273 if (From == IDom) { in handleLoopCondition()
/external/llvm/lib/Transforms/Scalar/
DConstantHoisting.cpp139 BasicBlock *IDom = DT->getNode(Inst->getParent())->getIDom()->getBlock(); in findMatInsertPt() local
140 return IDom->getTerminator(); in findMatInsertPt()
DLoopStrengthReduce.cpp4345 BasicBlock *IDom; in HoistInsertPosition() local
4350 IDom = Rung->getBlock(); in HoistInsertPosition()
4353 const Loop *IDomLoop = LI.getLoopFor(IDom); in HoistInsertPosition()
4360 Tentative = IDom->getTerminator(); in HoistInsertPosition()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopStrengthReduce.cpp3393 BasicBlock *IDom; in HoistInsertPosition() local
3398 IDom = Rung->getBlock(); in HoistInsertPosition()
3401 const Loop *IDomLoop = LI.getLoopFor(IDom); in HoistInsertPosition()
3410 Instruction *Tentative = IDom->getTerminator(); in HoistInsertPosition()
3420 if (IDom == Inst->getParent() && in HoistInsertPosition()
/external/llvm/lib/Analysis/
DScalarEvolution.cpp4191 BasicBlock *IDom = DT[PN->getParent()]->getIDom()->getBlock(); in createNodeFromSelectLikePHI() local
4192 assert(IDom && "At least the entry block should dominate PN"); in createNodeFromSelectLikePHI()
4194 auto *BI = dyn_cast<BranchInst>(IDom->getTerminator()); in createNodeFromSelectLikePHI()