21 #ifndef LLVM_ANALYSIS_INSTRUCTIONPRECEDENCETRACKING_H 22 #define LLVM_ANALYSIS_INSTRUCTIONPRECEDENCETRACKING_H 49 void validateAll()
const;
150 #endif // LLVM_ANALYSIS_INSTRUCTIONPRECEDENCETRACKING_H This class represents lattice values for constants.
void clear()
Invalidates all information from this tracking.
MemoryWriteTracking(DominatorTree *DT)
bool hasSpecialInstructions(const BasicBlock *BB)
Returns true iff at least one instruction from the basic block BB is special.
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree...
LLVM Basic Block Representation.
const Instruction * getFirstICFI(const BasicBlock *BB)
Returns the topmost instruction with implicit control flow from the given basic block.
InstructionPrecedenceTracking(DominatorTree *DT)
bool hasICF(const BasicBlock *BB)
Returns true if at least one instruction from the given basic block has implicit control flow...
bool isDominatedByICFIFromSameBlock(const Instruction *Insn)
Returns true if the first ICFI of Insn's block exists and dominates Insn.
const Instruction * getFirstSpecialInstruction(const BasicBlock *BB)
Returns the topmost special instruction from the block BB.
void insertInstructionTo(const Instruction *Inst, const BasicBlock *BB)
Notifies this tracking that we are going to insert a new instruction Inst to the basic block BB...
ImplicitControlFlowTracking(DominatorTree *DT)
void removeInstruction(const Instruction *Inst)
Notifies this tracking that we are going to remove the instruction Inst It makes all necessary update...
bool isPreceededBySpecialInstruction(const Instruction *Insn)
Returns true iff the first special instruction of Insn's block exists and dominates Insn...
This class allows to keep track on instructions with implicit control flow.
virtual bool isSpecialInstruction(const Instruction *Insn) const =0
A predicate that defines whether or not the instruction Insn is considered special and needs to be tr...
bool mayWriteToMemory(const BasicBlock *BB)
Returns true if at least one instruction from the given basic block may write memory.
virtual ~InstructionPrecedenceTracking()=default
const Instruction * getFirstMemoryWrite(const BasicBlock *BB)
Returns the topmost instruction that may write memory from the given basic block. ...
bool isDominatedByMemoryWriteFromSameBlock(const Instruction *Insn)
Returns true if the first memory writing instruction of Insn's block exists and dominates Insn...