Home
last modified time | relevance | path

Searched refs:dominates (Results 1 – 25 of 467) sorted by relevance

12345678910>>...19

/external/llvm/unittests/IR/
DDominatorTreeTest.cpp68 EXPECT_TRUE(DT->dominates(BB0, BB0)); in runOnFunction()
69 EXPECT_TRUE(DT->dominates(BB0, BB1)); in runOnFunction()
70 EXPECT_TRUE(DT->dominates(BB0, BB2)); in runOnFunction()
71 EXPECT_TRUE(DT->dominates(BB0, BB3)); in runOnFunction()
72 EXPECT_TRUE(DT->dominates(BB0, BB4)); in runOnFunction()
74 EXPECT_FALSE(DT->dominates(BB1, BB0)); in runOnFunction()
75 EXPECT_TRUE(DT->dominates(BB1, BB1)); in runOnFunction()
76 EXPECT_FALSE(DT->dominates(BB1, BB2)); in runOnFunction()
77 EXPECT_TRUE(DT->dominates(BB1, BB3)); in runOnFunction()
78 EXPECT_FALSE(DT->dominates(BB1, BB4)); in runOnFunction()
[all …]
/external/llvm-project/clang/unittests/Analysis/
DCFGDominatorTree.cpp53 EXPECT_TRUE(Dom.dominates(ExitBlock, ExitBlock)); in TEST()
55 EXPECT_TRUE(Dom.dominates(CaseABlock, ExitBlock)); in TEST()
56 EXPECT_TRUE(Dom.dominates(SwitchBlock, ExitBlock)); in TEST()
57 EXPECT_TRUE(Dom.dominates(EntryBlock, ExitBlock)); in TEST()
59 EXPECT_TRUE(Dom.dominates(CaseABlock, CaseABlock)); in TEST()
61 EXPECT_TRUE(Dom.dominates(SwitchBlock, CaseABlock)); in TEST()
62 EXPECT_TRUE(Dom.dominates(EntryBlock, CaseABlock)); in TEST()
64 EXPECT_TRUE(Dom.dominates(SwitchBlock, SwitchBlock)); in TEST()
66 EXPECT_TRUE(Dom.dominates(EntryBlock, SwitchBlock)); in TEST()
68 EXPECT_TRUE(Dom.dominates(EntryBlock, EntryBlock)); in TEST()
[all …]
/external/llvm-project/llvm/unittests/Transforms/Vectorize/
DVPlanDominatorTreeTest.cpp66 EXPECT_TRUE(VPDT.dominates(PH, PH)); in TEST_F()
67 EXPECT_TRUE(VPDT.dominates(PH, H)); in TEST_F()
68 EXPECT_TRUE(VPDT.dominates(PH, IfThen)); in TEST_F()
69 EXPECT_TRUE(VPDT.dominates(PH, IfElse)); in TEST_F()
70 EXPECT_TRUE(VPDT.dominates(PH, Latch)); in TEST_F()
71 EXPECT_TRUE(VPDT.dominates(PH, Exit)); in TEST_F()
73 EXPECT_FALSE(VPDT.dominates(H, PH)); in TEST_F()
74 EXPECT_TRUE(VPDT.dominates(H, H)); in TEST_F()
75 EXPECT_TRUE(VPDT.dominates(H, IfThen)); in TEST_F()
76 EXPECT_TRUE(VPDT.dominates(H, IfElse)); in TEST_F()
[all …]
/external/llvm-project/mlir/test/Analysis/
Dtest-dominance.mlir209 // CHECK-NEXT: dominates(0, 0) = true
210 // CHECK-NEXT: dominates(0, 1) = true
211 // CHECK-NEXT: dominates(0, 2) = true
212 // CHECK-NEXT: dominates(0, 3) = true
213 // CHECK-NEXT: dominates(0, 4) = true
214 // CHECK-NEXT: dominates(0, 5) = true
215 // CHECK-NEXT: dominates(0, 6) = false
216 // CHECK-NEXT: dominates(1, 0) = false
217 // CHECK-NEXT: dominates(1, 1) = true
218 // CHECK-NEXT: dominates(1, 2) = true
[all …]
/external/llvm-project/llvm/unittests/IR/
DDominatorTreeTest.cpp72 EXPECT_TRUE(DT->dominates(PhiA, PhiB)); in TEST()
73 EXPECT_TRUE(DT->dominates(PhiB, PhiA)); in TEST()
142 EXPECT_TRUE(DT->dominates(BB0, BB0)); in TEST()
143 EXPECT_TRUE(DT->dominates(BB0, BB1)); in TEST()
144 EXPECT_TRUE(DT->dominates(BB0, BB2)); in TEST()
145 EXPECT_TRUE(DT->dominates(BB0, BB3)); in TEST()
146 EXPECT_TRUE(DT->dominates(BB0, BB4)); in TEST()
148 EXPECT_FALSE(DT->dominates(BB1, BB0)); in TEST()
149 EXPECT_TRUE(DT->dominates(BB1, BB1)); in TEST()
150 EXPECT_FALSE(DT->dominates(BB1, BB2)); in TEST()
[all …]
/external/llvm-project/llvm/unittests/CodeGen/
DLexicalScopesTest.cpp158 EXPECT_TRUE(FuncScope->dominates(FuncScope)); in TEST_F()
167 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), &MBB)); in TEST_F()
168 EXPECT_FALSE(LS.dominates(InBlockLoc.get(), &MBB)); in TEST_F()
169 EXPECT_FALSE(LS.dominates(InlinedLoc.get(), &MBB)); in TEST_F()
192 EXPECT_TRUE(FuncScope->dominates(BlockScope)); in TEST_F()
193 EXPECT_FALSE(BlockScope->dominates(FuncScope)); in TEST_F()
203 EXPECT_TRUE(LS.dominates(OutermostLoc.get(), &MBB)); in TEST_F()
204 EXPECT_TRUE(LS.dominates(InBlockLoc.get(), &MBB)); in TEST_F()
205 EXPECT_FALSE(LS.dominates(InlinedLoc.get(), &MBB)); in TEST_F()
352 EXPECT_TRUE(FuncScope->dominates(BlockScope)); in TEST_F()
[all …]
/external/llvm/lib/IR/
DDominators.cpp75 bool DominatorTree::dominates(const Instruction *Def, in dominates() function in DominatorTree
97 return dominates(Def, UseBB); in dominates()
100 return dominates(DefBB, UseBB); in dominates()
112 bool DominatorTree::dominates(const Instruction *Def, in dominates() function in DominatorTree
132 return dominates(E, UseBB); in dominates()
135 return dominates(DefBB, UseBB); in dominates()
138 bool DominatorTree::dominates(const BasicBlockEdge &BBE, in dominates() function in DominatorTree
150 if (!dominates(End, UseBB)) in dominates()
184 if (!dominates(End, BB)) in dominates()
190 bool DominatorTree::dominates(const BasicBlockEdge &BBE, const Use &U) const { in dominates() function in DominatorTree
[all …]
/external/llvm-project/llvm/lib/IR/
DDominators.cpp118 bool DominatorTree::dominates(const Value *DefV, in dominates() function in DominatorTree
147 return dominates(Def, UseBB); in dominates()
150 return dominates(DefBB, UseBB); in dominates()
157 bool DominatorTree::dominates(const Instruction *Def, in dominates() function in DominatorTree
177 return dominates(E, UseBB); in dominates()
184 return dominates(E, UseBB); in dominates()
187 return dominates(DefBB, UseBB); in dominates()
190 bool DominatorTree::dominates(const BasicBlockEdge &BBE, in dominates() function in DominatorTree
196 if (!dominates(End, UseBB)) in dominates()
236 if (!dominates(End, BB)) in dominates()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DDominators.cpp116 bool DominatorTree::dominates(const Instruction *Def, in dominates() function in DominatorTree
138 return dominates(Def, UseBB); in dominates()
141 return dominates(DefBB, UseBB); in dominates()
153 bool DominatorTree::dominates(const Instruction *Def, in dominates() function in DominatorTree
173 return dominates(E, UseBB); in dominates()
176 return dominates(DefBB, UseBB); in dominates()
179 bool DominatorTree::dominates(const BasicBlockEdge &BBE, in dominates() function in DominatorTree
185 if (!dominates(End, UseBB)) in dominates()
225 if (!dominates(End, BB)) in dominates()
231 bool DominatorTree::dominates(const BasicBlockEdge &BBE, const Use &U) const { in dominates() function in DominatorTree
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DCodeMoverUtils.cpp111 assert(DT.dominates(&Dominator, &BB) && "Expecting Dominator to dominate BB"); in collectControlConditions()
126 assert(DT.dominates(&Dominator, IDom) && in collectControlConditions()
135 if (PDT.dominates(CurBlock, IDom)) { in collectControlConditions()
139 } else if (PDT.dominates(CurBlock, BI->getSuccessor(0))) { in collectControlConditions()
145 } else if (PDT.dominates(CurBlock, BI->getSuccessor(1))) { in collectControlConditions()
241 if ((DT.dominates(&BB0, &BB1) && PDT.dominates(&BB1, &BB0)) || in isControlFlowEquivalent()
242 (PDT.dominates(&BB0, &BB1) && DT.dominates(&BB1, &BB0))) in isControlFlowEquivalent()
335 if (!DT.dominates(&InsertPoint, &I)) in isSafeToMoveBefore()
338 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
340 if (!DT.dominates(&I, &InsertPoint)) in isSafeToMoveBefore()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCodeMoverUtils.cpp45 return ((DT.dominates(&BB0, &BB1) && PDT.dominates(&BB1, &BB0)) || in isControlFlowEquivalent()
46 (PDT.dominates(&BB0, &BB1) && DT.dominates(&BB1, &BB0))); in isControlFlowEquivalent()
116 const bool MoveForward = DT.dominates(&I, &InsertPoint); in isSafeToMoveBefore()
122 if (UserInst != &InsertPoint && !DT.dominates(&InsertPoint, U)) in isSafeToMoveBefore()
129 if (&InsertPoint == OpInst || !DT.dominates(OpInst, &InsertPoint)) in isSafeToMoveBefore()
/external/llvm/include/llvm/CodeGen/
DMachinePostDominators.h56 bool dominates(const MachineDomTreeNode *A, in dominates() function
58 return DT->dominates(A, B); in dominates()
61 bool dominates(const MachineBasicBlock *A, const MachineBasicBlock *B) const { in dominates() function
62 return DT->dominates(A, B); in dominates()
DMachineDominators.h105 inline bool dominates(const MachineDomTreeNode* A, in dominates() function
108 return DT->dominates(A, B); in dominates()
111 inline bool dominates(const MachineBasicBlock* A, in dominates() function
114 return DT->dominates(A, B); in dominates()
119 bool dominates(const MachineInstr *A, const MachineInstr *B) const { in dominates() function
122 if (BBA != BBB) return DT->dominates(BBA, BBB); in dominates()
/external/llvm-project/llvm/include/llvm/CodeGen/
DMachinePostDominators.h54 bool dominates(const MachineDomTreeNode *A, in dominates() function
56 return PDT->dominates(A, B); in dominates()
59 bool dominates(const MachineBasicBlock *A, const MachineBasicBlock *B) const { in dominates() function
60 return PDT->dominates(A, B); in dominates()
DMachineDominators.h109 bool dominates(const MachineDomTreeNode *A, in dominates() function
112 return DT->dominates(A, B); in dominates()
115 bool dominates(const MachineBasicBlock *A, const MachineBasicBlock *B) const { in dominates() function
117 return DT->dominates(A, B); in dominates()
122 bool dominates(const MachineInstr *A, const MachineInstr *B) const { in dominates() function
125 if (BBA != BBB) return DT->dominates(BBA, BBB); in dominates()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DMachinePostDominators.h52 bool dominates(const MachineDomTreeNode *A, in dominates() function
54 return PDT->dominates(A, B); in dominates()
57 bool dominates(const MachineBasicBlock *A, const MachineBasicBlock *B) const { in dominates() function
58 return PDT->dominates(A, B); in dominates()
DMachineDominators.h119 bool dominates(const MachineDomTreeNode *A, in dominates() function
122 return DT->dominates(A, B); in dominates()
125 bool dominates(const MachineBasicBlock *A, const MachineBasicBlock *B) const { in dominates() function
127 return DT->dominates(A, B); in dominates()
132 bool dominates(const MachineInstr *A, const MachineInstr *B) const { in dominates() function
135 if (BBA != BBB) return DT->dominates(BBA, BBB); in dominates()
/external/llvm-project/mlir/lib/Dialect/Vector/
DVectorTransferOpTransforms.cpp63 if (dominators.dominates(start, dest)) in isReachable()
74 if (dominators.dominates(bb, destBlock)) in isReachable()
137 if (!dominators.dominates(firstOverwriteCandidate, read)) { in deadStoreOp()
176 if (dominators.dominates(write, read) && !write.hasMaskedDim() && in storeToLoadForwarding()
180 if (lastwrite == nullptr || dominators.dominates(lastwrite, write)) in storeToLoadForwarding()
183 assert(dominators.dominates(write, lastwrite)); in storeToLoadForwarding()
/external/llvm-project/llvm/include/llvm/IR/
DDominators.h166 using Base::dominates;
177 bool dominates(const Value *Def, const Use &U) const;
180 bool dominates(const Value *Def, const Instruction *User) const;
183 bool dominates(const Instruction *Def, const BasicBlock *BB) const;
189 bool dominates(const BasicBlockEdge &BBE, const Use &U) const;
190 bool dominates(const BasicBlockEdge &BBE, const BasicBlock *BB) const;
192 bool dominates(const BasicBlockEdge &BBE1, const BasicBlockEdge &BBE2) const;
/external/llvm/include/llvm/IR/
DDominators.h128 using Base::dominates;
134 bool dominates(const Instruction *Def, const Use &U) const;
135 bool dominates(const Instruction *Def, const Instruction *User) const;
136 bool dominates(const Instruction *Def, const BasicBlock *BB) const;
137 bool dominates(const BasicBlockEdge &BBE, const Use &U) const;
138 bool dominates(const BasicBlockEdge &BBE, const BasicBlock *BB) const;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DOrderedInstructions.cpp25 return OBB->second->dominates(InstA, InstB); in localDominates()
31 bool OrderedInstructions::dominates(const Instruction *InstA, in dominates() function in OrderedInstructions
37 return DT->dominates(InstA->getParent(), InstB->getParent()); in dominates()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DDominators.h159 using Base::dominates;
165 bool dominates(const Instruction *Def, const Use &U) const;
166 bool dominates(const Instruction *Def, const Instruction *User) const;
167 bool dominates(const Instruction *Def, const BasicBlock *BB) const;
173 bool dominates(const BasicBlockEdge &BBE, const Use &U) const;
174 bool dominates(const BasicBlockEdge &BBE, const BasicBlock *BB) const;
/external/llvm-project/llvm/lib/Target/ARC/
DARCOptAddrMode.cpp154 if (!MDT->dominates(InstBB, MBB)) in dominatesAllUsesOf()
161 if (!MDT->dominates(MI, User)) in dominatesAllUsesOf()
237 if (MDT->dominates(Last, First)) std::swap(First, Last); in tryToCombine()
271 if (MDT->dominates(Ldst, Add)) in canJoinInstructions()
273 else if (!MDT->dominates(Add, Ldst)) in canJoinInstructions()
308 if (&MI != Add && MDT->dominates(Ldst, &MI)) in canJoinInstructions()
310 else if (!MDT->dominates(&MI, Ldst)) in canJoinInstructions()
312 if (MDT->dominates(Add, &MI)) in canJoinInstructions()
410 if (!OpDef || !MDT->dominates(OpDef, To)) in canHoistLoadStoreTo()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARC/
DARCOptAddrMode.cpp154 if (!MDT->dominates(InstBB, MBB)) in dominatesAllUsesOf()
161 if (!MDT->dominates(MI, User)) in dominatesAllUsesOf()
237 if (MDT->dominates(Last, First)) std::swap(First, Last); in tryToCombine()
271 if (MDT->dominates(Ldst, Add)) in canJoinInstructions()
273 else if (!MDT->dominates(Add, Ldst)) in canJoinInstructions()
308 if (&MI != Add && MDT->dominates(Ldst, &MI)) in canJoinInstructions()
310 else if (!MDT->dominates(&MI, Ldst)) in canJoinInstructions()
312 if (MDT->dominates(Add, &MI)) in canJoinInstructions()
410 if (!OpDef || !MDT->dominates(OpDef, To)) in canHoistLoadStoreTo()
/external/llvm-project/mlir/include/mlir/IR/
DDominance.h96 bool dominates(Operation *a, Operation *b) const { in dominates() function
107 bool dominates(Value a, Operation *b) const { in dominates() function
113 bool dominates(Block *a, Block *b) const { in dominates() function

12345678910>>...19