LLVM  15.0.0git
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
llvm::AMDGPUMCCodeEmitter Class Referenceabstract

#include "Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.h"

Inheritance diagram for llvm::AMDGPUMCCodeEmitter:
Inheritance graph
[legend]
Collaboration diagram for llvm::AMDGPUMCCodeEmitter:
Collaboration graph
[legend]

Public Member Functions

void getBinaryCodeForInstr (const MCInst &MI, SmallVectorImpl< MCFixup > &Fixups, APInt &Inst, APInt &Scratch, const MCSubtargetInfo &STI) const
 
virtual void getMachineOpValue (const MCInst &MI, const MCOperand &MO, APInt &Op, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
 
virtual void getSOPPBrEncoding (const MCInst &MI, unsigned OpNo, APInt &Op, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
 
virtual void getSMEMOffsetEncoding (const MCInst &MI, unsigned OpNo, APInt &Op, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
 
virtual void getSDWASrcEncoding (const MCInst &MI, unsigned OpNo, APInt &Op, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
 
virtual void getSDWAVopcDstEncoding (const MCInst &MI, unsigned OpNo, APInt &Op, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
 
virtual void getAVOperandEncoding (const MCInst &MI, unsigned OpNo, APInt &Op, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
 
- Public Member Functions inherited from llvm::MCCodeEmitter
 MCCodeEmitter (const MCCodeEmitter &)=delete
 
MCCodeEmitteroperator= (const MCCodeEmitter &)=delete
 
virtual ~MCCodeEmitter ()
 
virtual void reset ()
 Lifetime management. More...
 
virtual void emitPrefix (const MCInst &Inst, raw_ostream &OS, const MCSubtargetInfo &STI) const
 Emit the prefixes of given instruction on the output stream. More...
 
virtual void encodeInstruction (const MCInst &Inst, raw_ostream &OS, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
 EncodeInstruction - Encode the given Inst to bytes on the output stream OS. More...
 

Protected Member Functions

 AMDGPUMCCodeEmitter (const MCInstrInfo &mcii)
 
FeatureBitset computeAvailableFeatures (const FeatureBitset &FB) const
 
void verifyInstructionPredicates (const MCInst &MI, const FeatureBitset &AvailableFeatures) const
 
- Protected Member Functions inherited from llvm::MCCodeEmitter
 MCCodeEmitter ()
 

Protected Attributes

const MCInstrInfoMCII
 

Detailed Description

Definition at line 28 of file AMDGPUMCCodeEmitter.h.

Constructor & Destructor Documentation

◆ AMDGPUMCCodeEmitter()

llvm::AMDGPUMCCodeEmitter::AMDGPUMCCodeEmitter ( const MCInstrInfo mcii)
inlineprotected

Definition at line 34 of file AMDGPUMCCodeEmitter.h.

Member Function Documentation

◆ computeAvailableFeatures()

FeatureBitset llvm::AMDGPUMCCodeEmitter::computeAvailableFeatures ( const FeatureBitset FB) const
protected

◆ getAVOperandEncoding()

virtual void llvm::AMDGPUMCCodeEmitter::getAVOperandEncoding ( const MCInst MI,
unsigned  OpNo,
APInt Op,
SmallVectorImpl< MCFixup > &  Fixups,
const MCSubtargetInfo STI 
) const
pure virtual

◆ getBinaryCodeForInstr()

void llvm::AMDGPUMCCodeEmitter::getBinaryCodeForInstr ( const MCInst MI,
SmallVectorImpl< MCFixup > &  Fixups,
APInt Inst,
APInt Scratch,
const MCSubtargetInfo STI 
) const

◆ getMachineOpValue()

virtual void llvm::AMDGPUMCCodeEmitter::getMachineOpValue ( const MCInst MI,
const MCOperand MO,
APInt Op,
SmallVectorImpl< MCFixup > &  Fixups,
const MCSubtargetInfo STI 
) const
pure virtual

◆ getSDWASrcEncoding()

virtual void llvm::AMDGPUMCCodeEmitter::getSDWASrcEncoding ( const MCInst MI,
unsigned  OpNo,
APInt Op,
SmallVectorImpl< MCFixup > &  Fixups,
const MCSubtargetInfo STI 
) const
pure virtual

◆ getSDWAVopcDstEncoding()

virtual void llvm::AMDGPUMCCodeEmitter::getSDWAVopcDstEncoding ( const MCInst MI,
unsigned  OpNo,
APInt Op,
SmallVectorImpl< MCFixup > &  Fixups,
const MCSubtargetInfo STI 
) const
pure virtual

◆ getSMEMOffsetEncoding()

virtual void llvm::AMDGPUMCCodeEmitter::getSMEMOffsetEncoding ( const MCInst MI,
unsigned  OpNo,
APInt Op,
SmallVectorImpl< MCFixup > &  Fixups,
const MCSubtargetInfo STI 
) const
pure virtual

◆ getSOPPBrEncoding()

virtual void llvm::AMDGPUMCCodeEmitter::getSOPPBrEncoding ( const MCInst MI,
unsigned  OpNo,
APInt Op,
SmallVectorImpl< MCFixup > &  Fixups,
const MCSubtargetInfo STI 
) const
pure virtual

◆ verifyInstructionPredicates()

void llvm::AMDGPUMCCodeEmitter::verifyInstructionPredicates ( const MCInst MI,
const FeatureBitset AvailableFeatures 
) const
protected

Member Data Documentation

◆ MCII

const MCInstrInfo& llvm::AMDGPUMCCodeEmitter::MCII
protected

Definition at line 32 of file AMDGPUMCCodeEmitter.h.


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