LLVM 20.0.0git
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
OperandInfo Struct Reference

Represents the EMUL and EEW of a MachineOperand. More...

Public Types

enum class  State { Unknown , Known }
 

Public Member Functions

 OperandInfo (RISCVII::VLMUL EMUL, unsigned Log2EEW)
 
 OperandInfo (std::pair< unsigned, bool > EMUL, unsigned Log2EEW)
 
 OperandInfo ()
 
bool isUnknown () const
 
bool isKnown () const
 
void print (raw_ostream &OS) const
 

Static Public Member Functions

static bool EMULAndEEWAreEqual (const OperandInfo &A, const OperandInfo &B)
 

Public Attributes

enum OperandInfo::State S
 
std::optional< std::pair< unsigned, bool > > EMUL
 
unsigned Log2EEW
 

Detailed Description

Represents the EMUL and EEW of a MachineOperand.

Definition at line 78 of file RISCVVLOptimizer.cpp.

Member Enumeration Documentation

◆ State

enum class OperandInfo::State
strong
Enumerator
Unknown 
Known 

Definition at line 79 of file RISCVVLOptimizer.cpp.

Constructor & Destructor Documentation

◆ OperandInfo() [1/3]

OperandInfo::OperandInfo ( RISCVII::VLMUL  EMUL,
unsigned  Log2EEW 
)
inline

Definition at line 91 of file RISCVVLOptimizer.cpp.

◆ OperandInfo() [2/3]

OperandInfo::OperandInfo ( std::pair< unsigned, bool EMUL,
unsigned  Log2EEW 
)
inline

Definition at line 95 of file RISCVVLOptimizer.cpp.

◆ OperandInfo() [3/3]

OperandInfo::OperandInfo ( )
inline

Definition at line 98 of file RISCVVLOptimizer.cpp.

Member Function Documentation

◆ EMULAndEEWAreEqual()

static bool OperandInfo::EMULAndEEWAreEqual ( const OperandInfo A,
const OperandInfo B 
)
inlinestatic

Definition at line 103 of file RISCVVLOptimizer.cpp.

References A, assert(), and B.

◆ isKnown()

bool OperandInfo::isKnown ( ) const
inline

Definition at line 101 of file RISCVVLOptimizer.cpp.

References Known, and S.

◆ isUnknown()

bool OperandInfo::isUnknown ( ) const
inline

Definition at line 100 of file RISCVVLOptimizer.cpp.

References S, and Unknown.

Referenced by print().

◆ print()

void OperandInfo::print ( raw_ostream OS) const
inline

Definition at line 110 of file RISCVVLOptimizer.cpp.

References assert(), EMUL, isUnknown(), Log2EEW, and OS.

Referenced by operator<<().

Member Data Documentation

◆ EMUL

std::optional<std::pair<unsigned, bool> > OperandInfo::EMUL

Definition at line 87 of file RISCVVLOptimizer.cpp.

Referenced by print().

◆ Log2EEW

unsigned OperandInfo::Log2EEW

Definition at line 89 of file RISCVVLOptimizer.cpp.

Referenced by print().

◆ S

enum OperandInfo::State OperandInfo::S

Referenced by isKnown(), and isUnknown().


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