LLVM  10.0.0svn
Public Types | Public Member Functions | List of all members
llvm::ModuloScheduleExpander Class Reference

The ModuloScheduleExpander takes a ModuloSchedule and expands it in-place, rewriting the old loop and inserting prologs and epilogs as required. More...

#include "llvm/CodeGen/ModuloSchedule.h"

Public Types

using InstrChangesTy = DenseMap< MachineInstr *, std::pair< unsigned, int64_t > >
 

Public Member Functions

 ModuloScheduleExpander (MachineFunction &MF, ModuloSchedule &S, LiveIntervals &LIS, InstrChangesTy InstrChanges)
 Create a new ModuloScheduleExpander. More...
 
void expand ()
 Performs the actual expansion. More...
 
void cleanup ()
 Performs final cleanup after expansion. More...
 
MachineBasicBlockgetRewrittenKernel ()
 Returns the newly rewritten kernel block, or nullptr if this was optimized away. More...
 

Detailed Description

The ModuloScheduleExpander takes a ModuloSchedule and expands it in-place, rewriting the old loop and inserting prologs and epilogs as required.

Definition at line 153 of file ModuloSchedule.h.

Member Typedef Documentation

◆ InstrChangesTy

Definition at line 155 of file ModuloSchedule.h.

Constructor & Destructor Documentation

◆ ModuloScheduleExpander()

llvm::ModuloScheduleExpander::ModuloScheduleExpander ( MachineFunction MF,
ModuloSchedule S,
LiveIntervals LIS,
InstrChangesTy  InstrChanges 
)
inline

Create a new ModuloScheduleExpander.

  • InstrChanges Modifications to make to instructions with memory operands. FIXME: InstrChanges is opaque and is an implementation detail of an optimization in MachinePipeliner that crosses abstraction boundaries.

Definition at line 255 of file ModuloSchedule.h.

References cleanup(), and expand().

Member Function Documentation

◆ cleanup()

void ModuloScheduleExpander::cleanup ( )

◆ expand()

void ModuloScheduleExpander::expand ( )

◆ getRewrittenKernel()

MachineBasicBlock* llvm::ModuloScheduleExpander::getRewrittenKernel ( )
inline

Returns the newly rewritten kernel block, or nullptr if this was optimized away.

Definition at line 268 of file ModuloSchedule.h.

Referenced by llvm::PeelingModuloScheduleExpander::validateAgainstModuloScheduleExpander().


The documentation for this class was generated from the following files: