LLVM 17.0.0git
|
Public Member Functions | |
MSP430MCCodeEmitter (MCContext &ctx, MCInstrInfo const &MCII) | |
void | encodeInstruction (const MCInst &MI, SmallVectorImpl< char > &CB, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const override |
EncodeInstruction - Encode the given Inst to bytes and append to CB . | |
![]() | |
MCCodeEmitter (const MCCodeEmitter &)=delete | |
MCCodeEmitter & | operator= (const MCCodeEmitter &)=delete |
virtual | ~MCCodeEmitter () |
virtual void | reset () |
Lifetime management. | |
virtual void | emitPrefix (const MCInst &Inst, SmallVectorImpl< char > &CB, const MCSubtargetInfo &STI) const |
Append the prefixes of given instruction to the code buffer. | |
virtual void | encodeInstruction (const MCInst &Inst, SmallVectorImpl< char > &CB, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const |
EncodeInstruction - Encode the given Inst to bytes and append to CB . | |
Additional Inherited Members | |
![]() | |
MCCodeEmitter () | |
virtual void | encodeInstruction (const MCInst &Inst, raw_ostream &OS, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const |
EncodeInstruction - Encode the given Inst to bytes on the output stream OS . | |
Definition at line 35 of file MSP430MCCodeEmitter.cpp.
|
inline |
Definition at line 74 of file MSP430MCCodeEmitter.cpp.
|
overridevirtual |
EncodeInstruction - Encode the given Inst
to bytes and append to CB
.
Reimplemented from llvm::MCCodeEmitter.
Definition at line 82 of file MSP430MCCodeEmitter.cpp.
References llvm::MCInstrInfo::get(), llvm::MCInstrDesc::getSize(), llvm::support::little, MI, Size, and llvm::support::endian::write().