LLVM 20.0.0git
Classes | Public Member Functions | List of all members
llvm::HexagonMCCodeEmitter Class Reference

#include "Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.h"

Inheritance diagram for llvm::HexagonMCCodeEmitter:
Inheritance graph
[legend]

Public Member Functions

 HexagonMCCodeEmitter (MCInstrInfo const &MII, MCContext &MCT)
 
void encodeInstruction (MCInst const &MI, SmallVectorImpl< char > &CB, SmallVectorImpl< MCFixup > &Fixups, MCSubtargetInfo const &STI) const override
 Emit the bundle.
 
void encodeSingleInstruction (const MCInst &MI, SmallVectorImpl< char > &CB, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI, uint32_t Parse) const
 
uint64_t getBinaryCodeForInstr (MCInst const &MI, SmallVectorImpl< MCFixup > &Fixups, MCSubtargetInfo const &STI) const
 
unsigned getMachineOpValue (MCInst const &MI, MCOperand const &MO, SmallVectorImpl< MCFixup > &Fixups, MCSubtargetInfo const &STI) const
 Return binary encoding of operand.
 
- Public Member Functions inherited from llvm::MCCodeEmitter
 MCCodeEmitter (const MCCodeEmitter &)=delete
 
MCCodeEmitteroperator= (const MCCodeEmitter &)=delete
 
virtual ~MCCodeEmitter ()
 
virtual void reset ()
 Lifetime management.
 
virtual void encodeInstruction (const MCInst &Inst, SmallVectorImpl< char > &CB, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const =0
 Encode the given Inst to bytes and append to CB.
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::MCCodeEmitter
 MCCodeEmitter ()
 

Detailed Description

Definition at line 34 of file HexagonMCCodeEmitter.h.

Constructor & Destructor Documentation

◆ HexagonMCCodeEmitter()

llvm::HexagonMCCodeEmitter::HexagonMCCodeEmitter ( MCInstrInfo const MII,
MCContext MCT 
)
inline

Definition at line 49 of file HexagonMCCodeEmitter.h.

Member Function Documentation

◆ encodeInstruction()

void HexagonMCCodeEmitter::encodeInstruction ( MCInst const MI,
SmallVectorImpl< char > &  CB,
SmallVectorImpl< MCFixup > &  Fixups,
MCSubtargetInfo const STI 
) const
overridevirtual

◆ encodeSingleInstruction()

void HexagonMCCodeEmitter::encodeSingleInstruction ( const MCInst MI,
SmallVectorImpl< char > &  CB,
SmallVectorImpl< MCFixup > &  Fixups,
const MCSubtargetInfo STI,
uint32_t  Parse 
) const

◆ getBinaryCodeForInstr()

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

Referenced by encodeSingleInstruction().

◆ getMachineOpValue()

unsigned HexagonMCCodeEmitter::getMachineOpValue ( MCInst const MI,
MCOperand const MO,
SmallVectorImpl< MCFixup > &  Fixups,
MCSubtargetInfo const STI 
) const

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