class OrderedInstructions
Declaration
class OrderedInstructions { /* full declaration omitted */ };
Declared at: llvm/include/llvm/Analysis/OrderedInstructions.h:29
Method Overview
- public OrderedInstructions(llvm::DominatorTree * DT)
- public bool dfsBefore(const llvm::Instruction *, const llvm::Instruction *) const
- public bool dominates(const llvm::Instruction *, const llvm::Instruction *) const
- public void invalidateBlock(const llvm::BasicBlock * BB)
Methods
¶OrderedInstructions(llvm::DominatorTree* DT)
OrderedInstructions(llvm::DominatorTree* DT)
Description
Constructor.
Declared at: llvm/include/llvm/Analysis/OrderedInstructions.h:44
Parameters
¶bool dfsBefore(const llvm::Instruction*,
const llvm::Instruction*) const
bool dfsBefore(const llvm::Instruction*,
const llvm::Instruction*) const
Description
Return true if the first instruction comes before the second in the dominator tree DFS traversal if they are in different basic blocks, or if the first instruction comes before the second in the same basic block.
Declared at: llvm/include/llvm/Analysis/OrderedInstructions.h:53
Parameters
- const llvm::Instruction*
- const llvm::Instruction*
¶bool dominates(const llvm::Instruction*,
const llvm::Instruction*) const
bool dominates(const llvm::Instruction*,
const llvm::Instruction*) const
Description
Return true if first instruction dominates the second.
Declared at: llvm/include/llvm/Analysis/OrderedInstructions.h:47
Parameters
- const llvm::Instruction*
- const llvm::Instruction*
¶void invalidateBlock(const llvm::BasicBlock* BB)
void invalidateBlock(const llvm::BasicBlock* BB)
Description
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.
Declared at: llvm/include/llvm/Analysis/OrderedInstructions.h:59
Parameters
- const llvm::BasicBlock* BB