LLVM  14.0.0git
Public Member Functions | List of all members
llvm::PressureDiffs Class Reference

Array of PressureDiffs. More...

#include "llvm/CodeGen/RegisterPressure.h"

Public Member Functions

 PressureDiffs ()=default
 ~PressureDiffs ()
void clear ()
void init (unsigned N)
 Initialize an array of N PressureDiffs. More...
PressureDiffoperator[] (unsigned Idx)
const PressureDiffoperator[] (unsigned Idx) const
void addInstruction (unsigned Idx, const RegisterOperands &RegOpers, const MachineRegisterInfo &MRI)
 Record pressure difference induced by the given operand list to node with index Idx. More...

Detailed Description

Array of PressureDiffs.

Definition at line 198 of file RegisterPressure.h.

Constructor & Destructor Documentation

◆ PressureDiffs()

llvm::PressureDiffs::PressureDiffs ( )

◆ ~PressureDiffs()

llvm::PressureDiffs::~PressureDiffs ( )

Definition at line 205 of file RegisterPressure.h.

Member Function Documentation

◆ addInstruction()

void PressureDiffs::addInstruction ( unsigned  Idx,
const RegisterOperands RegOpers,
const MachineRegisterInfo MRI 

◆ clear()

void llvm::PressureDiffs::clear ( )

Definition at line 207 of file RegisterPressure.h.

Referenced by llvm::ScheduleDAGMILive::enterRegion().

◆ init()

void PressureDiffs::init ( unsigned  N)

Initialize an array of N PressureDiffs.

Definition at line 648 of file RegisterPressure.cpp.

References N, llvm::safe_calloc(), and llvm::Check::Size.

Referenced by llvm::ScheduleDAGInstrs::buildSchedGraph().

◆ operator[]() [1/2]

PressureDiff& llvm::PressureDiffs::operator[] ( unsigned  Idx)

Definition at line 211 of file RegisterPressure.h.

References assert().

◆ operator[]() [2/2]

const PressureDiff& llvm::PressureDiffs::operator[] ( unsigned  Idx) const

Definition at line 215 of file RegisterPressure.h.

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