Searched refs:dominates (Results 1 - 25 of 92) sorted by relevance

1234

/external/llvm/unittests/IR/
H A DDominatorTreeTest.cpp67 EXPECT_TRUE(DT->dominates(BB0, BB0));
68 EXPECT_TRUE(DT->dominates(BB0, BB1));
69 EXPECT_TRUE(DT->dominates(BB0, BB2));
70 EXPECT_TRUE(DT->dominates(BB0, BB3));
71 EXPECT_TRUE(DT->dominates(BB0, BB4));
73 EXPECT_FALSE(DT->dominates(BB1, BB0));
74 EXPECT_TRUE(DT->dominates(BB1, BB1));
75 EXPECT_FALSE(DT->dominates(BB1, BB2));
76 EXPECT_TRUE(DT->dominates(BB1, BB3));
77 EXPECT_FALSE(DT->dominates(BB
[all...]
/external/llvm/include/llvm/CodeGen/
H A DMachinePostDominators.h56 bool dominates(const MachineDomTreeNode *A, function in struct:llvm::MachinePostDominatorTree
58 return DT->dominates(A, B);
61 bool dominates(const MachineBasicBlock *A, const MachineBasicBlock *B) const { function in struct:llvm::MachinePostDominatorTree
62 return DT->dominates(A, B);
H A DMachineDominators.h105 inline bool dominates(const MachineDomTreeNode* A, function in class:llvm::MachineDominatorTree
108 return DT->dominates(A, B);
111 inline bool dominates(const MachineBasicBlock* A, function in class:llvm::MachineDominatorTree
114 return DT->dominates(A, B);
117 // dominates - Return true if A dominates B. This performs the
119 bool dominates(const MachineInstr *A, const MachineInstr *B) const { function in class:llvm::MachineDominatorTree
122 if (BBA != BBB) return DT->dominates(BBA, BBB);
130 // A dominates B if it is found first in the basic block.
133 // // A post-dominates
[all...]
H A DLexicalScopes.h96 // If Parent dominates NewScope then do not close Parent's instruction
98 if (Parent && (!NewScope || !Parent->dominates(NewScope)))
102 /// dominates - Return true if current scope dominates given lexical scope.
103 bool dominates(const LexicalScope *S) const { function in class:llvm::LexicalScope
165 /// dominates - Return true if DebugLoc's lexical scope dominates at least one
167 bool dominates(const DILocation *DL, MachineBasicBlock *MBB);
/external/llvm/lib/IR/
H A DDominators.cpp74 // dominates - Return true if Def dominates a use in User. This performs
77 bool DominatorTree::dominates(const Instruction *Def, function in class:DominatorTree
94 // The value defined by an invoke dominates an instruction only if it
95 // dominates every instruction in UseBB.
96 // A PHI is dominated only if the instruction dominates every possible use in
99 return dominates(Def, UseBB);
102 return dominates(DefBB, UseBB);
113 // note that dominates(Def, Def->getParent()) is false.
114 bool DominatorTree::dominates(cons function in class:DominatorTree
140 bool DominatorTree::dominates(const BasicBlockEdge &BBE, function in class:DominatorTree
192 bool DominatorTree::dominates(const BasicBlockEdge &BBE, const Use &U) const { function in class:DominatorTree
216 bool DominatorTree::dominates(const Instruction *Def, const Use &U) const { function in class:DominatorTree
[all...]
/external/llvm/include/llvm/Analysis/
H A DOrderedBasicBlock.h57 /// \brief Find out whether \p A dominates \p B, meaning whether \p A
61 bool dominates(const Instruction *A, const Instruction *B);
H A DPostDominators.h57 inline bool dominates(DomTreeNode* A, DomTreeNode* B) const { function in struct:llvm::PostDominatorTree
58 return DT->dominates(A, B);
61 inline bool dominates(const BasicBlock* A, const BasicBlock* B) const { function in struct:llvm::PostDominatorTree
62 return DT->dominates(A, B);
H A DTrace.h79 bool dominates(const BasicBlock *B1, const BasicBlock *B2) const { function in class:llvm::Trace
H A DRegionInfoImpl.h115 return (DT->dominates(entry, BB) &&
116 !(DT->dominates(exit, BB) && DT->dominates(entry, exit)));
564 if (DT->dominates(entry, P) && !DT->dominates(exit, P))
580 if (!DT->dominates(entry, exit)) {
710 if (!DT->dominates(entry, exit))
862 if (DT->dominates(Exit, BB))
/external/llvm/lib/Target/WebAssembly/
H A DWebAssemblyStoreResults.cpp101 // of FromReg and check that MI's block dominates it.
104 if (!MDT.dominates(&MBB, Pred))
107 // For a non-PHI, check that MI dominates the instruction in the
109 if (&MI == Where || !MDT.dominates(&MI, Where))
H A DWebAssemblyOptimizeReturned.cpp66 if (DT->dominates(Inst, U))
/external/llvm/include/llvm/IR/
H A DDominators.h115 using Base::dominates;
117 /// \brief Return true if Def dominates a use in User.
121 bool dominates(const Instruction *Def, const Use &U) const;
122 bool dominates(const Instruction *Def, const Instruction *User) const;
123 bool dominates(const Instruction *Def, const BasicBlock *BB) const;
124 bool dominates(const BasicBlockEdge &BBE, const Use &U) const;
125 bool dominates(const BasicBlockEdge &BBE, const BasicBlock *BB) const;
/external/llvm/lib/Analysis/
H A DOrderedBasicBlock.cpp61 /// \brief Find out whether \p A dominates \p B, meaning whether \p A
65 bool OrderedBasicBlock::dominates(const Instruction *A, const Instruction *B) { function in class:OrderedBasicBlock
H A DPHITransAddr.cpp210 (!DT || DT->dominates(CastI->getParent(), PredBB)))
246 (!DT || DT->dominates(GEPI->getParent(), PredBB))) {
299 (!DT || DT->dominates(BO->getParent(), PredBB)))
330 if (!DT->dominates(Inst->getParent(), PredBB))
H A DCaptureTracking.cpp78 // 'OrderedBB', avoid using 'dominates' and 'isPotentiallyReachable'
81 // 'I' dominates 'BeforeHere' => not safe to prune.
83 // The value defined by an invoke dominates an instruction only
84 // if it dominates every instruction in UseBB. A PHI is dominated only
85 // if the instruction dominates every possible use in the UseBB. Since
89 if (!OrderedBB->dominates(BeforeHere, I))
108 // there is no need to explore the use if BeforeHere dominates use.
110 if (BeforeHere != I && DT->dominates(BeforeHere, I) &&
H A DScalarEvolutionNormalization.cpp40 if (DT->dominates(LatchBlock, User->getParent()))
55 !DT->dominates(LatchBlock, PN->getIncomingBlock(i)))
H A DScalarEvolutionExpander.cpp48 // where the uses will be added (only that it dominates it), we are
83 assert(SE.DT.dominates(Ret, &*BIP));
497 SE.DT.dominates(cast<Instruction>(V), &*Builder.GetInsertPoint()));
593 if (DT.dominates(A->getHeader(), B->getHeader())) return B;
594 if (DT.dominates(B->getHeader(), A->getHeader())) return A;
837 if (!SE.DT.dominates(OInst, IVIncInsertPos))
876 if (!OInst || SE.DT.dominates(OInst, InsertPos))
887 if (!SE.DT.dominates(OInst, InsertPos))
912 /// until we reach a value that dominates InsertPos.
914 if (SE.DT.dominates(Inc
[all...]
/external/clang/include/clang/Analysis/Analyses/
H A DDominators.h105 /// \brief This method tests if one CFGBlock dominates the other.
106 /// The method return true if A dominates B, false otherwise.
107 /// Note a block always dominates itself.
109 inline bool dominates(const CFGBlock* A, const CFGBlock* B) const { function in class:clang::DominatorTree
110 return DT->dominates(A, B);
113 /// \brief This method tests if one CFGBlock properly dominates the other.
114 /// The method return true if A properly dominates B, false otherwise.
/external/llvm/lib/CodeGen/
H A DMachineDominators.cpp104 if (!DT->dominates(SuccDTNode, DT->getNode(PredBB))) {
115 // We know FromBB dominates NewBB.
H A DLexicalScopes.cpp257 if (PrevLexicalScope && !PrevLexicalScope->dominates(S))
293 /// dominates - Return true if DebugLoc's lexical scope dominates at least one
295 bool LexicalScopes::dominates(const DILocation *DL, MachineBasicBlock *MBB) { function in class:LexicalScopes
309 if (Scope->dominates(IScope))
H A DMachineSink.cpp250 // Check that it dominates.
251 if (!DT->dominates(MBB, UseBlock))
449 // sunk to dominates all the uses.
462 if (!DT->dominates(ToBB, *PI))
507 if (!PDT->dominates(SuccToSinkTo, MBB))
511 // loop, even if the latter post-dominates the former (PR21115).
525 // If SuccToSinkTo post dominates then also it may be profitable if MI
740 if (!TryBreak && !DT->dominates(ParentBlock, SuccToSinkTo)) {
/external/llvm/lib/Target/AArch64/
H A DAArch64PromoteConstant.cpp119 /// Map an insertion point to all the uses it dominates.
125 /// Find the closest point that dominates the given Use.
136 /// \return true if one of the insertion point in InsertPts dominates NewPt,
154 /// Compute the minimal insertion points to dominates all the interesting
157 /// contains a list of all the uses it dominates within the related function
351 if (NewPt == IPI.first || DT.dominates(IPI.first, NewPt) ||
356 DT.dominates(IPI.first->getParent(), NewPt->getParent()))) {
449 // point in a common dominator or if NewPt dominates an existing one.
502 assert(DT.dominates(LoadedCst, findInsertionPoint(*Use)) &&
/external/llvm/include/llvm/Support/
H A DGenericDomTree.h276 if (ND != NewBB && !DT.dominates(NewBBSucc, ND) &&
307 // If NewBB strictly dominates other blocks, then it is now the immediate
413 /// properlyDominates - Returns true iff A dominates B and A != B.
422 return dominates(A, B);
437 /// dominates - Returns true iff A dominates B. Note that this is not a
440 bool dominates(const DomTreeNodeBase<NodeT> *A, function in class:llvm::DominatorTreeBase
442 // A node trivially dominates itself.
450 // And dominates nothing.
476 bool dominates(cons
754 bool DominatorTreeBase<NodeT>::dominates(const NodeT *A, const NodeT *B) const { function in class:llvm::DominatorTreeBase
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DSink.cpp92 // Check that it dominates.
93 if (!DT->dominates(BB, UseBlock))
215 if (!DT->dominates(Inst->getParent(), SuccToSinkTo))
/external/llvm/lib/Transforms/Utils/
H A DLCSSA.cpp96 // dominates the value, so adjust DomBB to the normal destination block,
113 if (!DT.dominates(DomNode, DT.getNode(ExitBB)))
205 /// Return true if the specified block dominates at least
213 if (DT.dominates(DomNode, DT.getNode(ExitBB)))

Completed in 215 milliseconds

1234