LLVM API Documentation
#include <MipsMCCodeEmitter.h>
Definition at line 33 of file MipsMCCodeEmitter.h.
llvm::MipsMCCodeEmitter::MipsMCCodeEmitter | ( | const MCInstrInfo & | mcii, |
MCContext & | Ctx_, | ||
bool | IsLittle | ||
) | [inline] |
Definition at line 43 of file MipsMCCodeEmitter.h.
llvm::MipsMCCodeEmitter::~MipsMCCodeEmitter | ( | ) | [inline] |
Definition at line 46 of file MipsMCCodeEmitter.h.
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.
uint64_t llvm::MipsMCCodeEmitter::getBinaryCodeForInstr | ( | const MCInst & | MI, |
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
unsigned MipsMCCodeEmitter::getBranchTarget21OpValue | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
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.
unsigned MipsMCCodeEmitter::getBranchTarget26OpValue | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
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.
unsigned MipsMCCodeEmitter::getBranchTargetOpValue | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
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.
unsigned MipsMCCodeEmitter::getBranchTargetOpValueMM | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
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.
unsigned MipsMCCodeEmitter::getExprOpValue | ( | const MCExpr * | Expr, |
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
Definition at line 367 of file MipsMCCodeEmitter.cpp.
unsigned MipsMCCodeEmitter::getJumpOffset16OpValue | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
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.
unsigned MipsMCCodeEmitter::getJumpTargetOpValue | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
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.
unsigned MipsMCCodeEmitter::getJumpTargetOpValueMM | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
Definition at line 330 of file MipsMCCodeEmitter.cpp.
unsigned MipsMCCodeEmitter::getLSAImmEncoding | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
Definition at line 631 of file MipsMCCodeEmitter.cpp.
unsigned MipsMCCodeEmitter::getMachineOpValue | ( | const MCInst & | MI, |
const MCOperand & | MO, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
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.
unsigned MipsMCCodeEmitter::getMemEncoding | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
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.
unsigned MipsMCCodeEmitter::getMemEncodingMMImm12 | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
Definition at line 596 of file MipsMCCodeEmitter.cpp.
unsigned MipsMCCodeEmitter::getMSAMemEncoding | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
getMSAMemEncoding - Return binary encoding of memory operand for LD/ST instructions.
Definition at line 540 of file MipsMCCodeEmitter.cpp.
unsigned MipsMCCodeEmitter::getSimm18Lsl3Encoding | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
Definition at line 661 of file MipsMCCodeEmitter.cpp.
unsigned MipsMCCodeEmitter::getSimm19Lsl2Encoding | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
Definition at line 640 of file MipsMCCodeEmitter.cpp.
unsigned MipsMCCodeEmitter::getSizeExtEncoding | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
Definition at line 608 of file MipsMCCodeEmitter.cpp.
unsigned MipsMCCodeEmitter::getSizeInsEncoding | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
Definition at line 619 of file MipsMCCodeEmitter.cpp.
unsigned MipsMCCodeEmitter::getUImm5Lsl2Encoding | ( | const MCInst & | MI, |
unsigned | OpNo, | ||
SmallVectorImpl< MCFixup > & | Fixups, | ||
const MCSubtargetInfo & | STI | ||
) | const |
Definition at line 348 of file MipsMCCodeEmitter.cpp.