LLVM  15.0.0git
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 443 of file MachinePipeliner.h.

Constructor & Destructor Documentation

◆ ResourceManager()

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

Definition at line 458 of file MachinePipeliner.h.

References initProcResourceVectors(), and llvm::ARM_MB::ST.

Member Function Documentation

◆ canReserveResources() [1/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 3147 of file MachinePipeliner.cpp.

References canReserveResources(), and MI.

◆ canReserveResources() [2/2]

bool ResourceManager::canReserveResources ( const MCInstrDesc MID) const

◆ clearResources()

void ResourceManager::clearResources ( )

Reset the state.

Definition at line 3155 of file MachinePipeliner.cpp.

Referenced by llvm::SMSchedule::insert().

◆ initProcResourceVectors()

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

◆ reserveResources() [1/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 3151 of file MachinePipeliner.cpp.

References MI, and reserveResources().

◆ reserveResources() [2/2]

void ResourceManager::reserveResources ( const MCInstrDesc MID)

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