|
LLVM
10.0.0
|
Represents a schedule for a single-block loop. More...
#include "llvm/CodeGen/ModuloSchedule.h"
Public Member Functions | |
| ModuloSchedule (MachineFunction &MF, MachineLoop *Loop, std::vector< MachineInstr *> ScheduledInstrs, DenseMap< MachineInstr *, int > Cycle, DenseMap< MachineInstr *, int > Stage) | |
| Create a new ModuloSchedule. More... | |
| MachineLoop * | getLoop () const |
| Return the single-block loop being scheduled. More... | |
| int | getNumStages () const |
| Return the number of stages contained in this schedule, which is the largest stage index + 1. More... | |
| int | getFirstCycle () |
| Return the first cycle in the schedule, which is the cycle index of the first instruction. More... | |
| int | getFinalCycle () |
| Return the final cycle in the schedule, which is the cycle index of the last instruction. More... | |
| int | getStage (MachineInstr *MI) |
| Return the stage that MI is scheduled in, or -1. More... | |
| int | getCycle (MachineInstr *MI) |
| Return the cycle that MI is scheduled at, or -1. More... | |
| ArrayRef< MachineInstr * > | getInstructions () |
| Return the rescheduled instructions in order. More... | |
| void | dump () |
| void | print (raw_ostream &OS) |
Represents a schedule for a single-block loop.
For every instruction we maintain a Cycle and Stage.
Definition at line 78 of file ModuloSchedule.h.
|
inline |
Create a new ModuloSchedule.
Definition at line 105 of file ModuloSchedule.h.
References llvm::max().
|
inline |
Definition at line 147 of file ModuloSchedule.h.
References llvm::dbgs(), and print().
|
inline |
Return the cycle that MI is scheduled at, or -1.
Definition at line 139 of file ModuloSchedule.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
Referenced by llvm::ModuloScheduleTestAnnotater::annotate(), and print().
|
inline |
Return the final cycle in the schedule, which is the cycle index of the last instruction.
Definition at line 130 of file ModuloSchedule.h.
|
inline |
Return the first cycle in the schedule, which is the cycle index of the first instruction.
Definition at line 126 of file ModuloSchedule.h.
|
inline |
Return the rescheduled instructions in order.
Definition at line 145 of file ModuloSchedule.h.
Referenced by llvm::ModuloScheduleTestAnnotater::annotate().
|
inline |
Return the single-block loop being scheduled.
Definition at line 118 of file ModuloSchedule.h.
|
inline |
Return the number of stages contained in this schedule, which is the largest stage index + 1.
Definition at line 122 of file ModuloSchedule.h.
|
inline |
Return the stage that MI is scheduled in, or -1.
Definition at line 133 of file ModuloSchedule.h.
References llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT, BucketT >, KeyT, ValueT, KeyInfoT, BucketT >::find(), and I.
Referenced by llvm::ModuloScheduleTestAnnotater::annotate(), llvm::PeelingModuloScheduleExpander::PeelingModuloScheduleExpander(), and print().
| void ModuloSchedule::print | ( | raw_ostream & | OS | ) |
Definition at line 25 of file ModuloSchedule.cpp.
References getCycle(), getStage(), and MI.
Referenced by dump().
1.8.13