17 bool OrderedInstructions::localDominates(
const Instruction *InstA,
20 "Instructions must be in the same basic block");
23 auto OBB = OBBMap.find(IBB);
24 if (OBB == OBBMap.end())
25 OBB = OBBMap.insert({IBB, make_unique<OrderedBasicBlock>(IBB)}).first;
26 return OBB->second->dominates(InstA, InstB);
37 return localDominates(InstA, InstB);
46 return localDominates(InstA, InstB);
This class represents lattice values for constants.
bool dominates(const Instruction *, const Instruction *) const
Return true if first instruction dominates the second.
unsigned getDFSNumIn() const
getDFSNumIn/getDFSNumOut - These return the DFS visitation order for nodes in the dominator tree...
LLVM Basic Block Representation.
bool dfsBefore(const Instruction *, const Instruction *) const
Return true if the first instruction comes before the second in the dominator tree DFS traversal if t...
DomTreeNodeBase< NodeT > * getNode(const NodeT *BB) const
getNode - return the (Post)DominatorTree node for the specified basic block.
bool dominates(const Instruction *Def, const Use &U) const
Return true if Def dominates a use in User.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const BasicBlock * getParent() const