LLVM API Documentation

Public Member Functions
llvm::MipsMCCodeEmitter Class Reference

#include <MipsMCCodeEmitter.h>

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

List of all members.

Public Member Functions

 MipsMCCodeEmitter (const MCInstrInfo &mcii, MCContext &Ctx_, bool IsLittle)
 ~MipsMCCodeEmitter ()
void EmitByte (unsigned char C, raw_ostream &OS) const
void EmitInstruction (uint64_t Val, unsigned Size, const MCSubtargetInfo &STI, raw_ostream &OS) const
void EncodeInstruction (const MCInst &MI, raw_ostream &OS, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const override
uint64_t getBinaryCodeForInstr (const MCInst &MI, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getJumpTargetOpValue (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getJumpTargetOpValueMM (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getUImm5Lsl2Encoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getBranchTargetOpValue (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getBranchTargetOpValueMM (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getBranchTarget21OpValue (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getBranchTarget26OpValue (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getJumpOffset16OpValue (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getMachineOpValue (const MCInst &MI, const MCOperand &MO, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getMSAMemEncoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getMemEncoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getMemEncodingMMImm12 (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getSizeExtEncoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getSizeInsEncoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getLSAImmEncoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getSimm19Lsl2Encoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getSimm18Lsl3Encoding (const MCInst &MI, unsigned OpNo, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const
unsigned getExprOpValue (const MCExpr *Expr, SmallVectorImpl< MCFixup > &Fixups, const MCSubtargetInfo &STI) const

Detailed Description

Definition at line 33 of file MipsMCCodeEmitter.h.


Constructor & Destructor Documentation

llvm::MipsMCCodeEmitter::MipsMCCodeEmitter ( const MCInstrInfo mcii,
MCContext Ctx_,
bool  IsLittle 
) [inline]

Definition at line 43 of file MipsMCCodeEmitter.h.

Definition at line 46 of file MipsMCCodeEmitter.h.


Member Function Documentation

void MipsMCCodeEmitter::EmitByte ( unsigned char  C,
raw_ostream OS 
) const

Definition at line 120 of file MipsMCCodeEmitter.cpp.

void MipsMCCodeEmitter::EmitInstruction ( uint64_t  Val,
unsigned  Size,
const MCSubtargetInfo STI,
raw_ostream OS 
) const

Definition at line 124 of file MipsMCCodeEmitter.cpp.

void MipsMCCodeEmitter::EncodeInstruction ( const MCInst MI,
raw_ostream OS,
SmallVectorImpl< MCFixup > &  Fixups,
const MCSubtargetInfo STI 
) const [override, virtual]

EncodeInstruction - Emit the instruction. Size the instruction with Desc.getSize().

Implements llvm::MCCodeEmitter.

Definition at line 145 of file MipsMCCodeEmitter.cpp.

getBranchTarget21OpValue - Return binary encoding of the branch target operand. If the machine operand requires relocation, record the relocation and return zero.

Definition at line 249 of file MipsMCCodeEmitter.cpp.

getBranchTarget26OpValue - Return binary encoding of the branch target operand. If the machine operand requires relocation, record the relocation and return zero.

Definition at line 271 of file MipsMCCodeEmitter.cpp.

getBranchTargetOpValue - Return binary encoding of the branch target operand. If the machine operand requires relocation, record the relocation and return zero.

Definition at line 204 of file MipsMCCodeEmitter.cpp.

getBranchTargetOpValue - Return binary encoding of the microMIPS branch target operand. If the machine operand requires relocation, record the relocation and return zero.

Definition at line 226 of file MipsMCCodeEmitter.cpp.

Definition at line 367 of file MipsMCCodeEmitter.cpp.

getJumpOffset16OpValue - Return binary encoding of the jump target operand. If the machine operand requires relocation, record the relocation and return zero.

Definition at line 293 of file MipsMCCodeEmitter.cpp.

getJumpTargetOpValue - Return binary encoding of the jump target operand. If the machine operand requires relocation, record the relocation and return zero.

Definition at line 312 of file MipsMCCodeEmitter.cpp.

Definition at line 330 of file MipsMCCodeEmitter.cpp.

Definition at line 631 of file MipsMCCodeEmitter.cpp.

getMachineOpValue - Return binary encoding of operand. If the machine operand requires relocation, record the relocation and return zero.

Definition at line 519 of file MipsMCCodeEmitter.cpp.

getMemEncoding - Return binary encoding of memory related operand. If the offset operand requires relocation, record the relocation.

Definition at line 584 of file MipsMCCodeEmitter.cpp.

Definition at line 596 of file MipsMCCodeEmitter.cpp.

getMSAMemEncoding - Return binary encoding of memory operand for LD/ST instructions.

Definition at line 540 of file MipsMCCodeEmitter.cpp.

Definition at line 661 of file MipsMCCodeEmitter.cpp.

Definition at line 640 of file MipsMCCodeEmitter.cpp.

Definition at line 608 of file MipsMCCodeEmitter.cpp.

Definition at line 619 of file MipsMCCodeEmitter.cpp.

Definition at line 348 of file MipsMCCodeEmitter.cpp.


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