LLVM 20.0.0git
|
Expander that simply annotates each scheduled instruction with a post-instr symbol that can be consumed by the ModuloScheduleTest pass. More...
#include "llvm/CodeGen/ModuloSchedule.h"
Public Member Functions | |
ModuloScheduleTestAnnotater (MachineFunction &MF, ModuloSchedule &S) | |
void | annotate () |
Performs the annotation. | |
Expander that simply annotates each scheduled instruction with a post-instr symbol that can be consumed by the ModuloScheduleTest pass.
The post-instr symbol is a way of annotating an instruction that can be roundtripped in MIR. The syntax is: MYINST %0, post-instr-symbol <mcsymbol Stage-1_Cycle-5>
Definition at line 451 of file ModuloSchedule.h.
|
inline |
Definition at line 456 of file ModuloSchedule.h.
void ModuloScheduleTestAnnotater::annotate | ( | ) |
Performs the annotation.
Definition at line 2842 of file ModuloSchedule.cpp.
References llvm::MachineFunction::getContext(), llvm::ModuloSchedule::getCycle(), llvm::ModuloSchedule::getInstructions(), llvm::MCContext::getOrCreateSymbol(), llvm::ModuloSchedule::getStage(), MI, OS, and Sym.
Referenced by llvm::SwingSchedulerDAG::schedule().