LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::mca::MCAOperand Class Reference

A representation of an mca::Instruction operand for use in mca::CustomBehaviour. More...

#include "llvm/MCA/Instruction.h"

Public Member Functions

 MCAOperand ()
 
bool isValid () const
 
bool isReg () const
 
bool isImm () const
 
bool isSFPImm () const
 
bool isDFPImm () const
 
unsigned getReg () const
 Returns the register number.
 
int64_t getImm () const
 
uint32_t getSFPImm () const
 
uint64_t getDFPImm () const
 
void setIndex (const unsigned Idx)
 
unsigned getIndex () const
 

Static Public Member Functions

static MCAOperand createReg (unsigned Reg)
 
static MCAOperand createImm (int64_t Val)
 
static MCAOperand createSFPImm (uint32_t Val)
 
static MCAOperand createDFPImm (uint64_t Val)
 
static MCAOperand createInvalid ()
 

Detailed Description

A representation of an mca::Instruction operand for use in mca::CustomBehaviour.

Definition at line 38 of file Instruction.h.

Constructor & Destructor Documentation

◆ MCAOperand()

llvm::mca::MCAOperand::MCAOperand ( )
inline

Definition at line 65 of file Instruction.h.

Member Function Documentation

◆ createDFPImm()

static MCAOperand llvm::mca::MCAOperand::createDFPImm ( uint64_t  Val)
inlinestatic

Definition at line 119 of file Instruction.h.

◆ createImm()

static MCAOperand llvm::mca::MCAOperand::createImm ( int64_t  Val)
inlinestatic

Definition at line 105 of file Instruction.h.

◆ createInvalid()

static MCAOperand llvm::mca::MCAOperand::createInvalid ( )
inlinestatic

Definition at line 126 of file Instruction.h.

◆ createReg()

static MCAOperand llvm::mca::MCAOperand::createReg ( unsigned  Reg)
inlinestatic

Definition at line 98 of file Instruction.h.

References Reg.

◆ createSFPImm()

static MCAOperand llvm::mca::MCAOperand::createSFPImm ( uint32_t  Val)
inlinestatic

Definition at line 112 of file Instruction.h.

◆ getDFPImm()

uint64_t llvm::mca::MCAOperand::getDFPImm ( ) const
inline

Definition at line 89 of file Instruction.h.

References assert(), FPImmVal, and isDFPImm().

◆ getImm()

int64_t llvm::mca::MCAOperand::getImm ( ) const
inline

Definition at line 79 of file Instruction.h.

References assert(), ImmVal, and isImm().

◆ getIndex()

unsigned llvm::mca::MCAOperand::getIndex ( ) const
inline

Definition at line 96 of file Instruction.h.

◆ getReg()

unsigned llvm::mca::MCAOperand::getReg ( ) const
inline

Returns the register number.

Definition at line 74 of file Instruction.h.

References assert(), isReg(), and RegVal.

◆ getSFPImm()

uint32_t llvm::mca::MCAOperand::getSFPImm ( ) const
inline

Definition at line 84 of file Instruction.h.

References assert(), isSFPImm(), and SFPImmVal.

◆ isDFPImm()

bool llvm::mca::MCAOperand::isDFPImm ( ) const
inline

Definition at line 71 of file Instruction.h.

Referenced by getDFPImm().

◆ isImm()

bool llvm::mca::MCAOperand::isImm ( ) const
inline

Definition at line 69 of file Instruction.h.

Referenced by getImm().

◆ isReg()

bool llvm::mca::MCAOperand::isReg ( ) const
inline

Definition at line 68 of file Instruction.h.

Referenced by getReg().

◆ isSFPImm()

bool llvm::mca::MCAOperand::isSFPImm ( ) const
inline

Definition at line 70 of file Instruction.h.

Referenced by getSFPImm().

◆ isValid()

bool llvm::mca::MCAOperand::isValid ( ) const
inline

Definition at line 67 of file Instruction.h.

◆ setIndex()

void llvm::mca::MCAOperand::setIndex ( const unsigned  Idx)
inline

Definition at line 94 of file Instruction.h.

References Idx.

Member Data Documentation

◆ FPImmVal

uint64_t llvm::mca::MCAOperand::FPImmVal

Definition at line 55 of file Instruction.h.

Referenced by getDFPImm().

◆ ImmVal

int64_t llvm::mca::MCAOperand::ImmVal

Definition at line 53 of file Instruction.h.

Referenced by getImm().

◆ RegVal

unsigned llvm::mca::MCAOperand::RegVal

Definition at line 52 of file Instruction.h.

Referenced by getReg().

◆ SFPImmVal

uint32_t llvm::mca::MCAOperand::SFPImmVal

Definition at line 54 of file Instruction.h.

Referenced by getSFPImm().


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