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

#include "llvm/CodeGen/MachinePipeliner.h"

Public Member Functions

 ResourceManager (const TargetSubtargetInfo *ST)
 
void initProcResourceVectors (const MCSchedModel &SM, SmallVectorImpl< uint64_t > &Masks)
 
bool canReserveResources (const MCInstrDesc *MID) const
 Check if the resources occupied by a MCInstrDesc are available in the current state. More...
 
void reserveResources (const MCInstrDesc *MID)
 Reserve the resources occupied by a MCInstrDesc and change the current state to reflect that change. More...
 
bool canReserveResources (const MachineInstr &MI) const
 Check if the resources occupied by a machine instruction are available in the current state. More...
 
void reserveResources (const MachineInstr &MI)
 Reserve the resources occupied by a machine instruction and change the current state to reflect that change. More...
 
void clearResources ()
 Reset the state. More...
 

Detailed Description

Definition at line 425 of file MachinePipeliner.h.

Constructor & Destructor Documentation

◆ ResourceManager()

llvm::ResourceManager::ResourceManager ( const TargetSubtargetInfo ST)
inline

Member Function Documentation

◆ canReserveResources() [1/2]

bool ResourceManager::canReserveResources ( const MCInstrDesc MID) const

◆ canReserveResources() [2/2]

bool ResourceManager::canReserveResources ( const MachineInstr MI) const

Check if the resources occupied by a machine instruction are available in the current state.

Definition at line 3013 of file MachinePipeliner.cpp.

References llvm::MachineInstr::getDesc().

◆ clearResources()

void ResourceManager::clearResources ( )

Reset the state.

Definition at line 3021 of file MachinePipeliner.cpp.

◆ initProcResourceVectors()

void ResourceManager::initProcResourceVectors ( const MCSchedModel SM,
SmallVectorImpl< uint64_t > &  Masks 
)

◆ reserveResources() [1/2]

void ResourceManager::reserveResources ( const MCInstrDesc MID)

◆ reserveResources() [2/2]

void ResourceManager::reserveResources ( const MachineInstr MI)

Reserve the resources occupied by a machine instruction and change the current state to reflect that change.

Definition at line 3017 of file MachinePipeliner.cpp.

References llvm::MachineInstr::getDesc().


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