|
LLVM
5.0.0
|
#include "llvm/Transforms/Utils/OrderedInstructions.h"
Public Member Functions | |
| OrderedInstructions (DominatorTree *DT) | |
| Constructor. More... | |
| bool | dominates (const Instruction *, const Instruction *) const |
| Return true if first instruction dominates the second. More... | |
| void | invalidateBlock (const BasicBlock *BB) |
| Invalidate the OrderedBasicBlock cache when its basic block changes. More... | |
Definition at line 30 of file OrderedInstructions.h.
|
inline |
Constructor.
Definition at line 40 of file OrderedInstructions.h.
| bool OrderedInstructions::dominates | ( | const Instruction * | InstA, |
| const Instruction * | InstB | ||
| ) | const |
Return true if first instruction dominates the second.
Given 2 instructions, use OrderedBasicBlock to check for dominance relation if the instructions are in the same basic block, Otherwise, use dominator tree.
Definition at line 20 of file OrderedInstructions.cpp.
References first, and llvm::Instruction::getParent().
Referenced by llvm::PredicateInfoClasses::valueComesBefore().
|
inline |
Invalidate the OrderedBasicBlock cache when its basic block changes.
i.e. If an instruction is deleted or added to the basic block, the user should call this function to invalidate the OrderedBasicBlock cache for this basic block.
Definition at line 49 of file OrderedInstructions.h.
1.8.6