class ResourceManager

Declaration

class ResourceManager { /* full declaration omitted */ };

Declared at: llvm/include/llvm/CodeGen/MachinePipeliner.h:428

Method Overview

Methods

ResourceManager(
    const llvm::TargetSubtargetInfo* ST)

Declared at: llvm/include/llvm/CodeGen/MachinePipeliner.h:443

Parameters

const llvm::TargetSubtargetInfo* ST

bool canReserveResources(
    const llvm::MCInstrDesc* MID) const

Description

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

Declared at: llvm/include/llvm/CodeGen/MachinePipeliner.h:456

Parameters

const llvm::MCInstrDesc* MID

bool canReserveResources(
    const llvm::MachineInstr& MI) const

Description

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

Declared at: llvm/include/llvm/CodeGen/MachinePipeliner.h:464

Parameters

const llvm::MachineInstr& MI

void clearResources()

Description

Reset the state

Declared at: llvm/include/llvm/CodeGen/MachinePipeliner.h:471

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

Declared at: llvm/include/llvm/CodeGen/MachinePipeliner.h:452

Parameters

const llvm::MCSchedModel& SM
SmallVectorImpl<uint64_t>& Masks

void reserveResources(
    const llvm::MCInstrDesc* MID)

Description

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

Declared at: llvm/include/llvm/CodeGen/MachinePipeliner.h:460

Parameters

const llvm::MCInstrDesc* MID

void reserveResources(
    const llvm::MachineInstr& MI)

Description

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

Declared at: llvm/include/llvm/CodeGen/MachinePipeliner.h:468

Parameters

const llvm::MachineInstr& MI