LLVM  8.0.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
llvm::AMDGPUMCCodeEmitter Class Reference

#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

uint64_t getBinaryCodeForInstr (const MCInst &MI, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
 
virtual uint64_t getMachineOpValue (const MCInst &MI, const MCOperand &MO, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
 
virtual unsigned getSOPPBrEncoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
 
virtual unsigned getSDWASrcEncoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
 
virtual unsigned getSDWAVopcDstEncoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
 
- 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 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)
 
uint64_t computeAvailableFeatures (const FeatureBitset &FB) const
 
void verifyInstructionPredicates (const MCInst &MI, uint64_t AvailableFeatures) const
 
- Protected Member Functions inherited from llvm::MCCodeEmitter
 MCCodeEmitter ()
 

Protected Attributes

const MCInstrInfoMCII
 

Detailed Description

Definition at line 29 of file AMDGPUMCCodeEmitter.h.

Constructor & Destructor Documentation

◆ AMDGPUMCCodeEmitter()

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

Definition at line 35 of file AMDGPUMCCodeEmitter.h.

References getBinaryCodeForInstr(), and MI.

Member Function Documentation

◆ computeAvailableFeatures()

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

Referenced by getSDWAVopcDstEncoding().

◆ getBinaryCodeForInstr()

uint64_t llvm::AMDGPUMCCodeEmitter::getBinaryCodeForInstr ( const MCInst MI,
SmallVectorImpl< MCFixup > &  Fixups,
const MCSubtargetInfo STI 
) const

Referenced by AMDGPUMCCodeEmitter().

◆ getMachineOpValue()

virtual uint64_t llvm::AMDGPUMCCodeEmitter::getMachineOpValue ( const MCInst MI,
const MCOperand MO,
SmallVectorImpl< MCFixup > &  Fixups,
const MCSubtargetInfo STI 
) const
inlinevirtual

Definition at line 43 of file AMDGPUMCCodeEmitter.h.

◆ getSDWASrcEncoding()

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

Definition at line 55 of file AMDGPUMCCodeEmitter.h.

◆ getSDWAVopcDstEncoding()

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

◆ getSOPPBrEncoding()

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

Definition at line 49 of file AMDGPUMCCodeEmitter.h.

◆ verifyInstructionPredicates()

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

Referenced by getSDWAVopcDstEncoding().

Member Data Documentation

◆ MCII

const MCInstrInfo& llvm::AMDGPUMCCodeEmitter::MCII
protected

Definition at line 33 of file AMDGPUMCCodeEmitter.h.


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