LLVM 20.0.0git
Classes | Typedefs | Enumerations | Functions
llvm::RISCVMatInt Namespace Reference

Classes

class  Inst
 

Typedefs

using InstSeq = SmallVector< Inst, 8 >
 

Enumerations

enum  OpndKind { RegImm , Imm , RegReg , RegX0 }
 

Functions

InstSeq generateInstSeq (int64_t Val, const MCSubtargetInfo &STI)
 
void generateMCInstSeq (int64_t Val, const MCSubtargetInfo &STI, MCRegister DestReg, SmallVectorImpl< MCInst > &Insts)
 
InstSeq generateTwoRegInstSeq (int64_t Val, const MCSubtargetInfo &STI, unsigned &ShiftAmt, unsigned &AddOpc)
 
int getIntMatCost (const APInt &Val, unsigned Size, const MCSubtargetInfo &STI, bool CompressionCost, bool FreeZeroes)
 

Typedef Documentation

◆ InstSeq

Definition at line 43 of file RISCVMatInt.h.

Enumeration Type Documentation

◆ OpndKind

Enumerator
RegImm 
Imm 
RegReg 
RegX0 

Definition at line 22 of file RISCVMatInt.h.

Function Documentation

◆ generateInstSeq()

InstSeq llvm::RISCVMatInt::generateInstSeq ( int64_t  Val,
const MCSubtargetInfo STI 
)

◆ generateMCInstSeq()

void llvm::RISCVMatInt::generateMCInstSeq ( int64_t  Val,
const MCSubtargetInfo STI,
MCRegister  DestReg,
SmallVectorImpl< MCInst > &  Insts 
)

◆ generateTwoRegInstSeq()

InstSeq llvm::RISCVMatInt::generateTwoRegInstSeq ( int64_t  Val,
const MCSubtargetInfo STI,
unsigned ShiftAmt,
unsigned AddOpc 
)

◆ getIntMatCost()

int llvm::RISCVMatInt::getIntMatCost ( const APInt Val,
unsigned  Size,
const MCSubtargetInfo STI,
bool  CompressionCost,
bool  FreeZeroes 
)