|
LLVM 24.0.0git
|
#include "Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h"
Additional Inherited Members | |
| Protected Member Functions inherited from llvm::MCCodeEmitter | |
| MCCodeEmitter () | |
| Static Protected Member Functions inherited from llvm::MCCodeEmitter | |
| static void | reportUnsupportedInst (const MCInst &Inst) |
| static void | reportUnsupportedOperand (const MCInst &Inst, unsigned OpNum) |
Definition at line 30 of file MipsMCCodeEmitter.h.
|
inline |
Definition at line 40 of file MipsMCCodeEmitter.h.
Referenced by MipsMCCodeEmitter(), and operator=().
|
delete |
References MipsMCCodeEmitter().
| void MipsMCCodeEmitter::EmitByte | ( | unsigned char | C, |
| raw_ostream & | OS ) const |
Definition at line 157 of file MipsMCCodeEmitter.cpp.
References C().
|
overridevirtual |
encodeInstruction - Emit the instruction.
Size the instruction with Desc.getSize().
Implements llvm::MCCodeEmitter.
Definition at line 163 of file MipsMCCodeEmitter.cpp.
References llvm::big, llvm::Binary, getBinaryCodeForInstr(), getMovePRegPairOpValue(), llvm::MCInst::getOpcode(), llvm::little, llvm_unreachable, LowerLargeShift(), MI, N, llvm::MCInst::setOpcode(), llvm::Size, and llvm::support::endian::write().
| uint64_t llvm::MipsMCCodeEmitter::getBinaryCodeForInstr | ( | const MCInst & | MI, |
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Referenced by encodeInstruction().
| 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 495 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_MIPS_PC21_S2, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getBranchTarget21OpValueMM | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
getBranchTarget21OpValueMM - Return binary encoding of the branch target operand for microMIPS.
If the machine operand requires relocation, record the relocation and return zero.
Definition at line 516 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_MICROMIPS_PC21_S1, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| 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 537 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_MIPS_PC26_S2, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getBranchTarget26OpValueMM | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
getBranchTarget26OpValueMM - Return binary encoding of the branch target operand.
If the machine operand requires relocation, record the relocation and return zero.
Definition at line 558 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_MICROMIPS_PC26_S1, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getBranchTarget7OpValueMM | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
getBranchTarget7OpValueMM - Return binary encoding of the microMIPS branch target operand.
If the machine operand requires relocation, record the relocation and return zero.
Definition at line 435 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::Mips::fixup_MICROMIPS_PC7_S1, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| 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 349 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_Mips_PC16, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getBranchTargetOpValue1SImm16 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
getBranchTargetOpValue1SImm16 - Return binary encoding of the branch target operand.
If the machine operand requires relocation, record the relocation and return zero.
Definition at line 370 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_Mips_PC16, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getBranchTargetOpValueLsl2MMR6 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
getBranchTargetOpValueLsl2MMR6 - Return binary encoding of the branch target operand.
If the machine operand requires relocation, record the relocation and return zero.
Definition at line 413 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_Mips_PC16, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| 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 475 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::Mips::fixup_MICROMIPS_PC16_S1, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getBranchTargetOpValueMMPC10 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
getBranchTargetOpValueMMPC10 - Return binary encoding of the microMIPS 10-bit branch target operand.
If the machine operand requires relocation, record the relocation and return zero.
Definition at line 455 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::Mips::fixup_MICROMIPS_PC10_S1, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getBranchTargetOpValueMMR6 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
getBranchTargetOpValueMMR6 - Return binary encoding of the branch target operand.
If the machine operand requires relocation, record the relocation and return zero.
Definition at line 391 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_Mips_PC16, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getExprOpValue | ( | const MCExpr * | Expr, |
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 689 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), llvm::cast(), llvm::Mips::fixup_MICROMIPS_CALL16, llvm::Mips::fixup_MICROMIPS_GOT16, llvm::Mips::fixup_MICROMIPS_GOT_DISP, llvm::Mips::fixup_MICROMIPS_GOT_OFST, llvm::Mips::fixup_MICROMIPS_GOT_PAGE, llvm::Mips::fixup_MICROMIPS_GOTTPREL, llvm::Mips::fixup_MICROMIPS_GPOFF_HI, llvm::Mips::fixup_MICROMIPS_GPOFF_LO, llvm::Mips::fixup_MICROMIPS_HI16, llvm::Mips::fixup_MICROMIPS_HIGHER, llvm::Mips::fixup_MICROMIPS_HIGHEST, llvm::Mips::fixup_MICROMIPS_LO16, llvm::Mips::fixup_MICROMIPS_SUB, llvm::Mips::fixup_MICROMIPS_TLS_DTPREL_HI16, llvm::Mips::fixup_MICROMIPS_TLS_DTPREL_LO16, llvm::Mips::fixup_MICROMIPS_TLS_GD, llvm::Mips::fixup_MICROMIPS_TLS_LDM, llvm::Mips::fixup_MICROMIPS_TLS_TPREL_HI16, llvm::Mips::fixup_MICROMIPS_TLS_TPREL_LO16, llvm::Mips::fixup_Mips_CALL16, llvm::Mips::fixup_Mips_CALL_HI16, llvm::Mips::fixup_Mips_CALL_LO16, llvm::Mips::fixup_Mips_DTPREL_HI, llvm::Mips::fixup_Mips_DTPREL_LO, llvm::Mips::fixup_Mips_GOT, llvm::Mips::fixup_Mips_GOT_DISP, llvm::Mips::fixup_Mips_GOT_HI16, llvm::Mips::fixup_Mips_GOT_LO16, llvm::Mips::fixup_Mips_GOT_OFST, llvm::Mips::fixup_Mips_GOT_PAGE, llvm::Mips::fixup_Mips_GOTTPREL, llvm::Mips::fixup_Mips_GPOFF_HI, llvm::Mips::fixup_Mips_GPOFF_LO, llvm::Mips::fixup_Mips_GPREL16, llvm::Mips::fixup_Mips_HI16, llvm::Mips::fixup_Mips_HIGHER, llvm::Mips::fixup_Mips_HIGHEST, llvm::Mips::fixup_Mips_LO16, llvm::Mips::fixup_MIPS_PCHI16, llvm::Mips::fixup_MIPS_PCLO16, llvm::Mips::fixup_Mips_SUB, llvm::Mips::fixup_Mips_TLSGD, llvm::Mips::fixup_Mips_TLSLDM, llvm::Mips::fixup_Mips_TPREL_HI, llvm::Mips::fixup_Mips_TPREL_LO, llvm::FixupKind(), getExprOpValue(), llvm::MCExpr::getKind(), llvm::MCExpr::getLoc(), llvm::Mips::isGpOff(), llvm_unreachable, llvm::Mips::S_CALL_HI16, llvm::Mips::S_CALL_LO16, llvm::Mips::S_DTPREL, llvm::Mips::S_DTPREL_HI, llvm::Mips::S_DTPREL_LO, llvm::Mips::S_GOT, llvm::Mips::S_GOT_CALL, llvm::Mips::S_GOT_DISP, llvm::Mips::S_GOT_HI16, llvm::Mips::S_GOT_LO16, llvm::Mips::S_GOT_OFST, llvm::Mips::S_GOT_PAGE, llvm::Mips::S_GOTTPREL, llvm::Mips::S_GPREL, llvm::Mips::S_HI, llvm::Mips::S_HIGHER, llvm::Mips::S_HIGHEST, llvm::Mips::S_LO, llvm::Mips::S_NEG, llvm::Mips::S_None, llvm::Mips::S_PCREL_HI16, llvm::Mips::S_PCREL_LO16, llvm::Mips::S_Special, llvm::Mips::S_TLSGD, llvm::Mips::S_TLSLDM, llvm::Mips::S_TPREL_HI, llvm::Mips::S_TPREL_LO, and llvm::MCExpr::Specifier.
Referenced by getExprOpValue(), and getImmOpValue().
| unsigned MipsMCCodeEmitter::getImmOpValue | ( | const MCInst & | MI, |
| const MCOperand & | MO, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 835 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::Mips::fixup_Mips_AnyImm16, llvm::MipsII::FrmI, llvm::MCOperand::getExpr(), getExprOpValue(), llvm::MipsII::getFormat(), llvm::MCOperand::getImm(), llvm::isa(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
Referenced by getMachineOpValue().
| 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 579 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::Mips::fixup_MICROMIPS_LO16, llvm::Mips::fixup_Mips_LO16, llvm::FixupKind(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| 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 600 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::Mips::fixup_Mips_26, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getJumpTargetOpValueMM | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 616 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::Mips::fixup_MICROMIPS_26_S1, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| 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 816 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::bit_cast(), llvm::MCOperand::getDFPImm(), llvm::MCOperand::getImm(), getImmOpValue(), llvm::MCOperand::getReg(), llvm::MCOperand::isDFPImm(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), and MI.
Referenced by getScaledImmOpValue(), getSimm18Lsl3Encoding(), getSimm19Lsl2Encoding(), getSizeInsEncoding(), getUImm5Lsl2Encoding(), and getUImmWithOffsetEncoding().
| unsigned MipsMCCodeEmitter::getMovePRegPairOpValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 1004 of file MipsMCCodeEmitter.cpp.
References MI.
Referenced by encodeInstruction().
| unsigned MipsMCCodeEmitter::getMovePRegSingleOpValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 1038 of file MipsMCCodeEmitter.cpp.
References assert(), llvm_unreachable, and MI.
| unsigned MipsMCCodeEmitter::getOperandFromEndValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 863 of file MipsMCCodeEmitter.cpp.
References getScaledImmOpValue(), and MI.
| unsigned MipsMCCodeEmitter::getRegisterListOpValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 977 of file MipsMCCodeEmitter.cpp.
| unsigned MipsMCCodeEmitter::getRegisterListOpValue16 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 997 of file MipsMCCodeEmitter.cpp.
References MI.
| unsigned MipsMCCodeEmitter::getScaledImmOpValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 855 of file MipsMCCodeEmitter.cpp.
References getMachineOpValue(), and MI.
Referenced by getOperandFromEndValue().
| unsigned MipsMCCodeEmitter::getSimm18Lsl3Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 918 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::Mips::fixup_MICROMIPS_PC18_S3, llvm::Mips::fixup_MIPS_PC18_S3, llvm::FixupKind(), llvm::MCOperand::getExpr(), getMachineOpValue(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getSimm19Lsl2Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 896 of file MipsMCCodeEmitter.cpp.
References llvm::addFixup(), assert(), llvm::Mips::fixup_MICROMIPS_PC19_S2, llvm::Mips::fixup_MIPS_PC19_S2, llvm::FixupKind(), llvm::MCOperand::getExpr(), getMachineOpValue(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getSimm23Lsl2Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 1069 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getSImm3Lsa2Value | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 650 of file MipsMCCodeEmitter.cpp.
References llvm::MCOperand::getImm(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getSImm9AddiuspValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 676 of file MipsMCCodeEmitter.cpp.
References llvm::Binary, llvm::MCOperand::getImm(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getSizeInsEncoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 873 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), MI, and llvm::Size.
| unsigned MipsMCCodeEmitter::getUImm3Mod8Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 940 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCOperand::getImm(), and MI.
| unsigned MipsMCCodeEmitter::getUImm4AndValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 949 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm_unreachable, and MI.
| unsigned MipsMCCodeEmitter::getUImm5Lsl2Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 632 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getUImm6Lsl2Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Definition at line 663 of file MipsMCCodeEmitter.cpp.
References llvm::MCOperand::getImm(), llvm::MCOperand::isImm(), and MI.
| unsigned MipsMCCodeEmitter::getUImmWithOffsetEncoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI ) const |
Subtract Offset then encode as a N-bit unsigned integer.
Definition at line 886 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), MI, and llvm::Offset.
|
delete |
References MipsMCCodeEmitter().