|
LLVM
7.0.0
|
#include "Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h"
Additional Inherited Members | |
Protected Member Functions inherited from llvm::MCCodeEmitter | |
| MCCodeEmitter () | |
Definition at line 31 of file MipsMCCodeEmitter.h.
|
inline |
Definition at line 40 of file MipsMCCodeEmitter.h.
References C, EmitByte(), EmitInstruction(), encodeInstruction(), getBinaryCodeForInstr(), getBranchTarget21OpValue(), getBranchTarget21OpValueMM(), getBranchTarget26OpValue(), getBranchTarget26OpValueMM(), getBranchTarget7OpValueMM(), getBranchTargetOpValue(), getBranchTargetOpValue1SImm16(), getBranchTargetOpValueLsl2MMR6(), getBranchTargetOpValueMM(), getBranchTargetOpValueMMPC10(), getBranchTargetOpValueMMR6(), getExprOpValue(), getJumpOffset16OpValue(), getJumpTargetOpValue(), getJumpTargetOpValueMM(), getMachineOpValue(), getMemEncoding(), getMemEncodingMMGPImm7Lsl2(), getMemEncodingMMImm11(), getMemEncodingMMImm12(), getMemEncodingMMImm16(), getMemEncodingMMImm4(), getMemEncodingMMImm4Lsl1(), getMemEncodingMMImm4Lsl2(), getMemEncodingMMImm4sp(), getMemEncodingMMImm9(), getMemEncodingMMSPImm5Lsl2(), getMovePRegPairOpValue(), getMovePRegSingleOpValue(), getMSAMemEncoding(), getRegisterListOpValue(), getRegisterListOpValue16(), getSimm18Lsl3Encoding(), getSimm19Lsl2Encoding(), getSimm23Lsl2Encoding(), getSImm3Lsa2Value(), getSImm9AddiuspValue(), getSizeInsEncoding(), getUImm3Mod8Encoding(), getUImm4AndValue(), getUImm5Lsl2Encoding(), getUImm6Lsl2Encoding(), getUImmWithOffsetEncoding(), MI, operator=(), llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size, and ~MipsMCCodeEmitter().
|
delete |
|
overridedefault |
Referenced by MipsMCCodeEmitter().
| void MipsMCCodeEmitter::EmitByte | ( | unsigned char | C, |
| raw_ostream & | OS | ||
| ) | const |
Definition at line 129 of file MipsMCCodeEmitter.cpp.
Referenced by EmitInstruction(), and MipsMCCodeEmitter().
| void MipsMCCodeEmitter::EmitInstruction | ( | uint64_t | Val, |
| unsigned | Size, | ||
| const MCSubtargetInfo & | STI, | ||
| raw_ostream & | OS | ||
| ) | const |
Definition at line 133 of file MipsMCCodeEmitter.cpp.
References EmitByte(), encodeInstruction(), and llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size.
Referenced by encodeInstruction(), and MipsMCCodeEmitter().
|
overridevirtual |
encodeInstruction - Emit the instruction.
Size the instruction with Desc.getSize().
Implements llvm::MCCodeEmitter.
Definition at line 154 of file MipsMCCodeEmitter.cpp.
References EmitInstruction(), llvm::MCInstrInfo::get(), getBinaryCodeForInstr(), getBranchTargetOpValue(), llvm::MCInst::getOpcode(), llvm::MCInstrDesc::getSize(), llvm_unreachable, LowerLargeShift(), MI, N, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::pop_back(), llvm::MCInst::setOpcode(), llvm::SmallVectorBase::size(), and llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size.
Referenced by EmitInstruction(), and MipsMCCodeEmitter().
| uint64_t llvm::MipsMCCodeEmitter::getBinaryCodeForInstr | ( | const MCInst & | MI, |
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Referenced by encodeInstruction(), and MipsMCCodeEmitter().
| 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 386 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_MIPS_PC21_S2, getBranchTarget21OpValueMM(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getBranchTargetOpValueMM(), and MipsMCCodeEmitter().
| 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 408 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_MICROMIPS_PC21_S1, getBranchTarget26OpValue(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getBranchTarget21OpValue(), and MipsMCCodeEmitter().
| 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 430 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_MIPS_PC26_S2, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getBranchTarget21OpValueMM(), and MipsMCCodeEmitter().
| 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 451 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_MICROMIPS_PC26_S1, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), getJumpOffset16OpValue(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by MipsMCCodeEmitter().
| 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 322 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::Mips::fixup_MICROMIPS_PC7_S1, getBranchTargetOpValueMMPC10(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getBranchTargetOpValueLsl2MMR6(), and MipsMCCodeEmitter().
| 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 232 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_Mips_PC16, getBranchTargetOpValue1SImm16(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by encodeInstruction(), and MipsMCCodeEmitter().
| 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 254 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_Mips_PC16, getBranchTargetOpValueMMR6(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getBranchTargetOpValue(), and MipsMCCodeEmitter().
| 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 299 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_Mips_PC16, getBranchTarget7OpValueMM(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getBranchTargetOpValueMMR6(), and MipsMCCodeEmitter().
| 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 364 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::Mips::fixup_MICROMIPS_PC16_S1, getBranchTarget21OpValue(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getBranchTargetOpValueMMPC10(), and MipsMCCodeEmitter().
| 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 343 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::Mips::fixup_MICROMIPS_PC10_S1, getBranchTargetOpValueMM(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getBranchTarget7OpValueMM(), and MipsMCCodeEmitter().
| 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 276 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::MCConstantExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::Mips::fixup_Mips_PC16, getBranchTargetOpValueLsl2MMR6(), llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getBranchTargetOpValue1SImm16(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getExprOpValue | ( | const MCExpr * | Expr, |
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 583 of file MipsMCCodeEmitter.cpp.
References llvm::MCExpr::Binary, llvm::MCExpr::Constant, llvm::MCFixup::create(), 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_32, 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(), llvm::MipsMCExpr::getKind(), llvm::MCExpr::getKind(), getMachineOpValue(), llvm::MipsMCExpr::isGpOff(), Kind, llvm_unreachable, llvm::MipsMCExpr::MEK_CALL_HI16, llvm::MipsMCExpr::MEK_CALL_LO16, llvm::MipsMCExpr::MEK_DTPREL_HI, llvm::MipsMCExpr::MEK_DTPREL_LO, llvm::MipsMCExpr::MEK_GOT, llvm::MipsMCExpr::MEK_GOT_CALL, llvm::MipsMCExpr::MEK_GOT_DISP, llvm::MipsMCExpr::MEK_GOT_HI16, llvm::MipsMCExpr::MEK_GOT_LO16, llvm::MipsMCExpr::MEK_GOT_OFST, llvm::MipsMCExpr::MEK_GOT_PAGE, llvm::MipsMCExpr::MEK_GOTTPREL, llvm::MipsMCExpr::MEK_GPREL, llvm::MipsMCExpr::MEK_HI, llvm::MipsMCExpr::MEK_HIGHER, llvm::MipsMCExpr::MEK_HIGHEST, llvm::MipsMCExpr::MEK_LO, llvm::MipsMCExpr::MEK_NEG, llvm::MipsMCExpr::MEK_None, llvm::MipsMCExpr::MEK_PCREL_HI16, llvm::MipsMCExpr::MEK_PCREL_LO16, llvm::MipsMCExpr::MEK_Special, llvm::MipsMCExpr::MEK_TLSGD, llvm::MipsMCExpr::MEK_TLSLDM, llvm::MipsMCExpr::MEK_TPREL_HI, llvm::MipsMCExpr::MEK_TPREL_LO, llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back(), llvm::MCExpr::SymbolRef, llvm::MCExpr::Target, and llvm::MCSymbolRefExpr::VK_None.
Referenced by getMachineOpValue(), getSImm9AddiuspValue(), and MipsMCCodeEmitter().
| 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 474 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCOperand::getImm(), getJumpTargetOpValue(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), and llvm::MCOperand::isImm().
Referenced by getBranchTarget26OpValueMM(), and MipsMCCodeEmitter().
| 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 492 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::Mips::fixup_Mips_26, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), getJumpTargetOpValueMM(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getJumpOffset16OpValue(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getJumpTargetOpValueMM | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 509 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::Mips::fixup_MICROMIPS_26_S1, llvm::MCOperand::getExpr(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), getUImm5Lsl2Encoding(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by getJumpTargetOpValue(), and MipsMCCodeEmitter().
| 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 734 of file MipsMCCodeEmitter.cpp.
References llvm::lltok::APFloat, assert(), llvm::MCRegisterInfo::getEncodingValue(), llvm::MCOperand::getExpr(), getExprOpValue(), llvm::MCOperand::getFPImm(), llvm::MCOperand::getImm(), llvm::MCOperand::getReg(), llvm::MCContext::getRegisterInfo(), llvm::MCOperand::isExpr(), llvm::MCOperand::isFPImm(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), and Reg.
Referenced by getExprOpValue(), getMemEncoding(), getMemEncodingMMGPImm7Lsl2(), getMemEncodingMMImm11(), getMemEncodingMMImm12(), getMemEncodingMMImm16(), getMemEncodingMMImm4(), getMemEncodingMMImm4Lsl1(), getMemEncodingMMImm4Lsl2(), getMemEncodingMMImm4sp(), getMemEncodingMMImm9(), getMemEncodingMMSPImm5Lsl2(), getSimm18Lsl3Encoding(), getSimm19Lsl2Encoding(), getSizeInsEncoding(), getUImm5Lsl2Encoding(), getUImmWithOffsetEncoding(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Return binary encoding of memory related operand.
If the offset operand requires relocation, record the relocation.
Definition at line 755 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), getMemEncodingMMImm4(), llvm::MCInst::getOperand(), and llvm::MCOperand::isReg().
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncodingMMGPImm7Lsl2 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 827 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), getMemEncodingMMImm9(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and llvm::MCOperand::isReg().
Referenced by getMemEncodingMMSPImm5Lsl2(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncodingMMImm11 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 855 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), getMemEncodingMMImm12(), llvm::MCInst::getOperand(), and llvm::MCOperand::isReg().
Referenced by getMemEncodingMMImm9(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncodingMMImm12 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 868 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), getMemEncodingMMImm16(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), and llvm::MCOperand::isReg().
Referenced by getMemEncodingMMImm11(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncodingMMImm16 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 891 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), getMemEncodingMMImm4sp(), llvm::MCInst::getOperand(), and llvm::MCOperand::isReg().
Referenced by getMemEncodingMMImm12(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncodingMMImm4 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 770 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), getMemEncodingMMImm4Lsl1(), llvm::MCInst::getOperand(), and llvm::MCOperand::isReg().
Referenced by getMemEncoding(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncodingMMImm4Lsl1 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 784 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), getMemEncodingMMImm4Lsl2(), llvm::MCInst::getOperand(), and llvm::MCOperand::isReg().
Referenced by getMemEncodingMMImm4(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncodingMMImm4Lsl2 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 798 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), getMemEncodingMMSPImm5Lsl2(), llvm::MCInst::getOperand(), and llvm::MCOperand::isReg().
Referenced by getMemEncodingMMImm4Lsl1(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncodingMMImm4sp | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 904 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and llvm::MCOperand::isReg().
Referenced by getMemEncodingMMImm16(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncodingMMImm9 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 842 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), getMemEncodingMMImm11(), llvm::MCInst::getOperand(), and llvm::MCOperand::isReg().
Referenced by getMemEncodingMMGPImm7Lsl2(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMemEncodingMMSPImm5Lsl2 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 812 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), getMemEncodingMMGPImm7Lsl2(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), and llvm::MCOperand::isReg().
Referenced by getMemEncodingMMImm4Lsl2(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMovePRegPairOpValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 1063 of file MipsMCCodeEmitter.cpp.
References llvm::MCInst::getOperand(), and llvm::MCOperand::getReg().
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getMovePRegSingleOpValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 1097 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCOperand::isReg(), and llvm_unreachable.
Referenced by MipsMCCodeEmitter().
| unsigned llvm::MipsMCCodeEmitter::getMSAMemEncoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getRegisterListOpValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 1036 of file MipsMCCodeEmitter.cpp.
References E, llvm::MCRegisterInfo::getEncodingValue(), llvm::MCInst::getNumOperands(), llvm::MCInst::getOperand(), llvm::MCOperand::getReg(), llvm::MCContext::getRegisterInfo(), I, and Reg.
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getRegisterListOpValue16 | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 1056 of file MipsMCCodeEmitter.cpp.
References llvm::MCInst::getNumOperands().
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getSimm18Lsl3Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 977 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::Mips::fixup_MICROMIPS_PC18_S3, llvm::Mips::fixup_MIPS_PC18_S3, llvm::FixupKind(), llvm::MCOperand::getExpr(), getMachineOpValue(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getSimm19Lsl2Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 955 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCFixup::create(), llvm::Mips::fixup_MICROMIPS_PC19_S2, llvm::Mips::fixup_MIPS_PC19_S2, llvm::FixupKind(), llvm::MCOperand::getExpr(), getMachineOpValue(), llvm::MCInst::getOperand(), llvm::MCOperand::isExpr(), llvm::MCOperand::isImm(), and llvm::SmallVectorTemplateBase< T, isPodLike< T >::value >::push_back().
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getSimm23Lsl2Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 1120 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCOperand::isImm().
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getSImm3Lsa2Value | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 544 of file MipsMCCodeEmitter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), getUImm6Lsl2Encoding(), and llvm::MCOperand::isImm().
Referenced by getUImm5Lsl2Encoding(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getSImm9AddiuspValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 570 of file MipsMCCodeEmitter.cpp.
References getExprOpValue(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCOperand::isImm().
Referenced by getUImm6Lsl2Encoding(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getSizeInsEncoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 932 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Size.
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getUImm3Mod8Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 999 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), and llvm::MCOperand::isImm().
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getUImm4AndValue | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 1008 of file MipsMCCodeEmitter.cpp.
References assert(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), and llvm_unreachable.
Referenced by MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getUImm5Lsl2Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 526 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), llvm::MCInst::getOperand(), getSImm3Lsa2Value(), llvm::MCOperand::isExpr(), and llvm::MCOperand::isImm().
Referenced by getJumpTargetOpValueMM(), and MipsMCCodeEmitter().
| unsigned MipsMCCodeEmitter::getUImm6Lsl2Encoding | ( | const MCInst & | MI, |
| unsigned | OpNo, | ||
| SmallVectorImpl< MCFixup > & | Fixups, | ||
| const MCSubtargetInfo & | STI | ||
| ) | const |
Definition at line 557 of file MipsMCCodeEmitter.cpp.
References llvm::MCOperand::getImm(), llvm::MCInst::getOperand(), getSImm9AddiuspValue(), and llvm::MCOperand::isImm().
Referenced by getSImm3Lsa2Value(), and MipsMCCodeEmitter().
| 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 945 of file MipsMCCodeEmitter.cpp.
References assert(), getMachineOpValue(), llvm::MCInst::getOperand(), and llvm::MCOperand::isImm().
Referenced by MipsMCCodeEmitter().
|
delete |
Referenced by MipsMCCodeEmitter().
1.8.13