|
LLVM 22.0.0git
|
Record instruction ordering so we can query their relative positions within a function. More...
#include "llvm/CodeGen/DbgEntityHistoryCalculator.h"
Public Member Functions | |
| void | initialize (const MachineFunction &MF) |
| void | clear () |
| bool | isBefore (const MachineInstr *A, const MachineInstr *B) const |
Check if instruction A comes before B, where A and B both belong to the MachineFunction passed to initialize(). | |
Record instruction ordering so we can query their relative positions within a function.
Meta instructions are given the same ordinal as the preceding non-meta instruction. Class state is invalid if MF is modified after calling initialize.
Definition at line 30 of file DbgEntityHistoryCalculator.h.
|
inline |
Definition at line 33 of file DbgEntityHistoryCalculator.h.
Referenced by initialize().
| void InstructionOrdering::initialize | ( | const MachineFunction & | MF | ) |
Definition at line 39 of file DbgEntityHistoryCalculator.cpp.
| bool InstructionOrdering::isBefore | ( | const MachineInstr * | A, |
| const MachineInstr * | B ) const |
Check if instruction A comes before B, where A and B both belong to the MachineFunction passed to initialize().
Definition at line 62 of file DbgEntityHistoryCalculator.cpp.