LLVM API Documentation
#include <MCInst.h>

Public Member Functions | |
| MCOperand () | |
| bool | isValid () const |
| bool | isReg () const |
| bool | isImm () const |
| bool | isFPImm () const |
| bool | isExpr () const |
| bool | isInst () const |
| unsigned | getReg () const |
| getReg - Returns the register number. | |
| void | setReg (unsigned Reg) |
| setReg - Set the register number. | |
| int64_t | getImm () const |
| void | setImm (int64_t Val) |
| double | getFPImm () const |
| void | setFPImm (double Val) |
| const MCExpr * | getExpr () const |
| void | setExpr (const MCExpr *Val) |
| const MCInst * | getInst () const |
| void | setInst (const MCInst *Val) |
| void | print (raw_ostream &OS, const MCAsmInfo *MAI) const |
| void | dump () const |
Static Public Member Functions | |
| static MCOperand | CreateReg (unsigned Reg) |
| static MCOperand | CreateImm (int64_t Val) |
| static MCOperand | CreateFPImm (double Val) |
| static MCOperand | CreateExpr (const MCExpr *Val) |
| static MCOperand | CreateInst (const MCInst *Val) |
MCOperand - Instances of this class represent operands of the MCInst class. This is a simple discriminated union.
Definition at line 129 of file MCInst.h.
References ExprVal.
Referenced by llvm::MCInstBuilder::addExpr(), llvm::ARMAsmPrinter::EmitInstruction(), GetSymbolRef(), llvm::HexagonLowerToMC(), llvm::AMDGPUMCInstLower::lower(), llvm::MSP430MCInstLower::Lower(), llvm::MBlazeMCInstLower::Lower(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), llvm::MBlazeMCInstLower::LowerSymbolOperand(), llvm::MSP430MCInstLower::LowerSymbolOperand(), llvm::SystemZMCInstLower::lowerSymbolOperand(), llvm::AArch64AsmPrinter::lowerSymbolOperand(), and tryAddingSymbolicOperand().
| static MCOperand llvm::MCOperand::CreateFPImm | ( | double | Val | ) | [inline, static] |
Definition at line 123 of file MCInst.h.
References FPImmVal.
Referenced by llvm::MCInstBuilder::addFPImm(), llvm::AMDGPUMCInstLower::lower(), and llvm::ARMAsmPrinter::lowerOperand().
| static MCOperand llvm::MCOperand::CreateImm | ( | int64_t | Val | ) | [inline, static] |
Definition at line 117 of file MCInst.h.
References ImmVal.
Referenced by llvm::MCInstBuilder::addImm(), Decode2RImmInstruction(), Decode2RUSInstruction(), Decode32BitShiftOperand(), Decode3RImmInstruction(), DecodeAddrMode2IdxInstruction(), DecodeAddrMode3Instruction(), DecodeAddrMode5Operand(), DecodeAddrMode6Operand(), DecodeAddrModeImm12Operand(), DecodeAddrRegExtendOperand(), DecodeArmMOVTWInstruction(), DecodeBC1(), decodeBDAddr12Operand(), decodeBDAddr20Operand(), decodeBDXAddr12Operand(), decodeBDXAddr20Operand(), DecodeBitfield32ImmOperand(), DecodeBitfieldInstruction(), DecodeBitfieldMaskOperand(), DecodeBitpOperand(), DecodeBranchImmInstruction(), DecodeBranchTarget(), DecodeCondCode(), DecodeCopMemInstruction(), DecodeCoprocessor(), DecodeCPSInstruction(), DecodeCVT32FixedPosOperand(), DecodeExtSize(), DecodeFMem(), DecodeFMOVLaneInstruction(), DecodeFPZeroOperand(), DecodeImm0_4(), DecodeInsSize(), DecodeIT(), DecodeJumpTarget(), DecodeL2RUSInstruction(), DecodeLDSTPairInstruction(), DecodeLogicalImmOperand(), DecodeMem(), DecodeMemBarrierOption(), DecodeMemMultipleWritebackInstruction(), DecodeMoveWideImmOperand(), DecodeMRRC2(), DecodeMSRMask(), DecodeNamedImmOperand(), DecodeNegImmOperand(), DecodeNEONModImmInstruction(), decodePCDBLOperand(), DecodePostIdxReg(), DecodePredicateOperand(), DecodeRegExtendOperand(), DecodeRFEInstruction(), DecodeRUSInstruction(), DecodeShiftRight16Imm(), DecodeShiftRight32Imm(), DecodeShiftRight64Imm(), DecodeShiftRight8Imm(), DecodeSimm16(), decodeSImmOperand(), DecodeSingleIndexedInstruction(), DecodeSOImmOperand(), DecodeSORegImmOperand(), DecodeSORegMemOperand(), DecodeSORegRegOperand(), DecodeSysRegOperand(), DecodeT2AddrModeImm0_1020s4(), DecodeT2AddrModeImm12(), DecodeT2AddrModeSOReg(), DecodeT2Adr(), DecodeT2BInstruction(), DecodeT2BROperand(), DecodeT2CPSInstruction(), DecodeT2Imm8(), DecodeT2Imm8S4(), DecodeT2LoadShift(), DecodeT2MOVTWInstruction(), DecodeT2ShifterImmOperand(), DecodeT2SOImm(), DecodeThumbAddrModeIS(), DecodeThumbAddrModePC(), DecodeThumbAddrModeSP(), DecodeThumbAddSpecialReg(), DecodeThumbAddSPImm(), DecodeThumbBCCTargetOperand(), DecodeThumbBLTargetOperand(), DecodeThumbBLXOffset(), DecodeThumbBROperand(), DecodeThumbCmpBROperand(), DecodeThumbCPS(), decodeUImmOperand(), DecodeVCVTD(), DecodeVCVTQ(), DecodeVLD1DupInstruction(), DecodeVLD1LN(), DecodeVLD2DupInstruction(), DecodeVLD2LN(), DecodeVLD3DupInstruction(), DecodeVLD3LN(), DecodeVLD4DupInstruction(), DecodeVLD4LN(), DecodeVLDInstruction(), DecodeVSHLMaxInstruction(), DecodeVST1LN(), DecodeVST2LN(), DecodeVST3LN(), DecodeVST4LN(), DecodeVSTInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::MBlazeDisassembler::getInstruction(), llvm::Thumb1InstrInfo::getNoopForMachoTarget(), llvm::ARMInstrInfo::getNoopForMachoTarget(), llvm::Thumb2InstrInfo::getNoopForMachoTarget(), llvm::HexagonLowerToMC(), llvm::AMDGPUMCInstLower::lower(), llvm::MSP430MCInstLower::Lower(), llvm::MBlazeMCInstLower::Lower(), llvm::XCoreMCInstLower::LowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), translateImmediate(), and translateRMMemory().
Definition at line 135 of file MCInst.h.
References InstVal.
Referenced by llvm::MCInstBuilder::addInst().
Definition at line 111 of file MCInst.h.
References RegVal.
Referenced by llvm::MCInstBuilder::addReg(), AddThumb1SBit(), convertToSExti8(), DecodeACRegsDSPRegisterClass(), DecodeAddrMode2IdxInstruction(), DecodeAddrMode3Instruction(), DecodeAFGR64RegisterClass(), decodeBDAddr12Operand(), decodeBDAddr20Operand(), decodeBDXAddr12Operand(), decodeBDXAddr20Operand(), DecodeCCOutOperand(), DecodeCCRRegisterClass(), DecodeCPU64RegsRegisterClass(), DecodeCPURegsRegisterClass(), DecodeDPairRegisterClass(), DecodeDPairSpacedRegisterClass(), DecodeDPRRegisterClass(), DecodeFGR32RegisterClass(), DecodeFGR64RegisterClass(), DecodeFMem(), DecodeFPR128RegisterClass(), DecodeFPR16RegisterClass(), DecodeFPR32RegisterClass(), DecodeFPR64RegisterClass(), DecodeFPR8RegisterClass(), DecodeGPR32RegisterClass(), DecodeGPR32wspRegisterClass(), DecodeGPR64RegisterClass(), DecodeGPR64xspRegisterClass(), DecodeGPRRegisterClass(), DecodeGPRwithAPSRRegisterClass(), DecodeGRRegsRegisterClass(), DecodeHIRegsDSPRegisterClass(), DecodeHWRegs64RegisterClass(), DecodeHWRegsRegisterClass(), DecodeLORegsDSPRegisterClass(), DecodeMem(), DecodePredicateOperand(), DecodeQPRRegisterClass(), decodeRegisterClass(), DecodeRRegsRegisterClass(), DecodeSPRRegisterClass(), DecodeT2LoadShift(), DecodetcGPRRegisterClass(), DecodeThumbAddrModeSP(), DecodeThumbAddSpecialReg(), DecodeThumbAddSPImm(), DecodeThumbAddSPReg(), DecodeVLD1LN(), DecodeVLD2LN(), DecodeVLD3DupInstruction(), DecodeVLD3LN(), DecodeVLD4DupInstruction(), DecodeVLD4LN(), DecodeVLDInstruction(), DecodeVPR128RegisterClass(), DecodeVST1LN(), DecodeVST2LN(), DecodeVST3LN(), DecodeVST4LN(), DecodeVSTInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::MBlazeDisassembler::getInstruction(), llvm::Thumb1InstrInfo::getNoopForMachoTarget(), llvm::Thumb2InstrInfo::getNoopForMachoTarget(), llvm::ARMInstrInfo::getNoopForMachoTarget(), llvm::HexagonLowerToMC(), llvm::AMDGPUMCInstLower::lower(), llvm::MSP430MCInstLower::Lower(), llvm::MBlazeMCInstLower::Lower(), llvm::XCoreMCInstLower::LowerOperand(), llvm::MipsMCInstLower::LowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), llvm::ARMInstPrinter::printInst(), translateFPRegister(), translateImmediate(), translateRegister(), and translateRMMemory().
| void MCOperand::dump | ( | ) | const |
Definition at line 36 of file MCInst.cpp.
References llvm::dbgs(), and print().
| const MCExpr* llvm::MCOperand::getExpr | ( | ) | const [inline] |
Definition at line 93 of file MCInst.h.
References ExprVal, and isExpr().
Referenced by llvm::MCObjectStreamer::EmitInstruction(), getBranchTargetOpValue(), print(), llvm::AArch64InstPrinter::printAddSubImmLSL0Operand(), llvm::ARMInstPrinter::printAdrLabelOperand(), llvm::HexagonInstPrinter::printImmOperand(), llvm::AArch64InstPrinter::printInst(), llvm::X86IntelInstPrinter::printMemReference(), llvm::X86ATTInstPrinter::printMemReference(), llvm::AArch64InstPrinter::printMoveWideImmOperand(), llvm::AArch64InstPrinter::printOffsetUImm12Operand(), llvm::MBlazeInstPrinter::printOperand(), llvm::MSP430InstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::HexagonInstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::SystemZInstPrinter::printOperand(), llvm::X86ATTInstPrinter::printOperand(), llvm::PPCInstPrinter::printOperand(), llvm::AArch64InstPrinter::printOperand(), llvm::X86IntelInstPrinter::printPCRelImm(), llvm::X86ATTInstPrinter::printPCRelImm(), llvm::MSP430InstPrinter::printPCRelImmOperand(), llvm::MSP430InstPrinter::printSrcMemOperand(), llvm::PPCInstPrinter::printSymbolHi(), llvm::PPCInstPrinter::printSymbolLo(), llvm::ARMInstPrinter::printThumbLdrLabelOperand(), and SimplifyShortMoveForm().
| double llvm::MCOperand::getFPImm | ( | ) | const [inline] |
| int64_t llvm::MCOperand::getImm | ( | ) | const [inline] |
Definition at line 74 of file MCInst.h.
References ImmVal, and isImm().
Referenced by convert16i16to16ri8(), convert32i32to32ri8(), convert64i32to64ri8(), DecodeInsSize(), llvm::EmitAnyX86InstComments(), llvm::MCInstrAnalysis::evaluateBranch(), getBranchTargetOpValue(), HasConditionalBranch(), llvm::HexagonMCInst::isConstExtended(), llvm::Mips::LowerDextDins(), llvm::Mips::LowerLargeShift(), print(), llvm::PPCInstPrinter::printAbsAddrOperand(), llvm::ARMInstPrinter::printAddrMode2OffsetOperand(), llvm::ARMInstPrinter::printAddrMode2Operand(), llvm::ARMInstPrinter::printAddrMode3OffsetOperand(), llvm::ARMInstPrinter::printAddrMode3Operand(), llvm::ARMInstPrinter::printAddrMode5Operand(), llvm::ARMInstPrinter::printAddrMode6Operand(), llvm::ARMInstPrinter::printAddrModeImm12Operand(), llvm::AArch64InstPrinter::printAddrRegExtendOperand(), llvm::AArch64InstPrinter::printAddSubImmLSL0Operand(), llvm::ARMInstPrinter::printAdrLabelOperand(), llvm::ARMInstPrinter::printAM2PreOrOffsetIndexOp(), llvm::ARMInstPrinter::printAM3PostIndexOp(), llvm::ARMInstPrinter::printAM3PreOrOffsetIndexOp(), llvm::X86IntelInstPrinter::printAVXCC(), llvm::X86ATTInstPrinter::printAVXCC(), llvm::AArch64InstPrinter::printBareImmOperand(), llvm::AArch64InstPrinter::printBFILSBOperand(), llvm::AArch64InstPrinter::printBFIWidthOperand(), llvm::AArch64InstPrinter::printBFXWidthOperand(), llvm::ARMInstPrinter::printBitfieldInvMaskImmOperand(), llvm::MSP430InstPrinter::printCCOperand(), llvm::ARMInstPrinter::printCImmediate(), llvm::AArch64InstPrinter::printCondCodeOperand(), llvm::ARMInstPrinter::printCoprocOptionImm(), llvm::ARMInstPrinter::printCPSIFlag(), llvm::ARMInstPrinter::printCPSIMod(), llvm::AArch64InstPrinter::printCRxOperand(), llvm::AArch64InstPrinter::printCVTFixedPosOperand(), llvm::ARMInstPrinter::printFBits16(), llvm::ARMInstPrinter::printFBits32(), llvm::AArch64InstPrinter::printFPImmOperand(), llvm::ARMInstPrinter::printFPImmOperand(), llvm::HexagonInstPrinter::printFrameIndexOperand(), llvm::MBlazeInstPrinter::printFSLImm(), llvm::HexagonInstPrinter::printImmOperand(), llvm::ARMInstPrinter::printImmPlusOneOperand(), llvm::ARMInstPrinter::printInst(), llvm::PPCInstPrinter::printInst(), llvm::AArch64InstPrinter::printLabelOperand(), llvm::ARMInstPrinter::printLdStmModeOperand(), llvm::AArch64InstPrinter::printLogicalImmOperand(), llvm::ARMInstPrinter::printMandatoryPredicateOperand(), llvm::ARMInstPrinter::printMemBOption(), llvm::X86IntelInstPrinter::printMemReference(), llvm::X86ATTInstPrinter::printMemReference(), llvm::HexagonInstPrinter::printMEMriOperand(), llvm::AArch64InstPrinter::printMoveWideImmOperand(), llvm::ARMInstPrinter::printMSRMaskOperand(), llvm::AArch64InstPrinter::printNamedImmOperand(), llvm::HexagonInstPrinter::printNegImmOperand(), llvm::ARMInstPrinter::printNEONModImmOperand(), llvm::ARMInstPrinter::printNoHashImmediate(), llvm::AArch64InstPrinter::printOffsetSImm9Operand(), llvm::AArch64InstPrinter::printOffsetUImm12Operand(), llvm::MSP430InstPrinter::printOperand(), llvm::MBlazeInstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::SystemZInstPrinter::printOperand(), llvm::X86ATTInstPrinter::printOperand(), llvm::PPCInstPrinter::printOperand(), llvm::AArch64InstPrinter::printOperand(), llvm::X86IntelInstPrinter::printPCRelImm(), llvm::X86ATTInstPrinter::printPCRelImm(), llvm::MSP430InstPrinter::printPCRelImmOperand(), llvm::ARMInstPrinter::printPImmediate(), llvm::ARMInstPrinter::printPKHASRShiftImm(), llvm::ARMInstPrinter::printPKHLSLShiftImm(), llvm::ARMInstPrinter::printPostIdxImm8Operand(), llvm::ARMInstPrinter::printPostIdxImm8s4Operand(), llvm::ARMInstPrinter::printPostIdxRegOperand(), llvm::PPCInstPrinter::printPredicateOperand(), llvm::ARMInstPrinter::printPredicateOperand(), llvm::AArch64InstPrinter::printRegExtendOperand(), llvm::ARMInstPrinter::printRotImmOperand(), llvm::PPCInstPrinter::printS16ImmOperand(), llvm::PPCInstPrinter::printS5ImmOperand(), llvm::ARMInstPrinter::printSetendOperand(), llvm::ARMInstPrinter::printShiftImmOperand(), llvm::AArch64InstPrinter::printShiftOperand(), llvm::AArch64InstPrinter::printSImm7ScaledOperand(), llvm::ARMInstPrinter::printSORegImmOperand(), llvm::ARMInstPrinter::printSORegRegOperand(), llvm::MSP430InstPrinter::printSrcMemOperand(), llvm::X86IntelInstPrinter::printSSECC(), llvm::X86ATTInstPrinter::printSSECC(), llvm::AArch64InstPrinter::printSysRegOperand(), llvm::ARMInstPrinter::printT2AddrModeImm0_1020s4Operand(), llvm::ARMInstPrinter::printT2AddrModeImm8OffsetOperand(), llvm::ARMInstPrinter::printT2AddrModeImm8Operand(), llvm::ARMInstPrinter::printT2AddrModeImm8s4OffsetOperand(), llvm::ARMInstPrinter::printT2AddrModeImm8s4Operand(), llvm::ARMInstPrinter::printT2AddrModeSoRegOperand(), llvm::ARMInstPrinter::printT2SOOperand(), llvm::ARMInstPrinter::printThumbAddrModeImm5SOperand(), llvm::ARMInstPrinter::printThumbITMask(), llvm::ARMInstPrinter::printThumbLdrLabelOperand(), llvm::ARMInstPrinter::printThumbS4ImmOperand(), llvm::ARMInstPrinter::printThumbSRImm(), llvm::PPCInstPrinter::printU16ImmOperand(), llvm::PPCInstPrinter::printU5ImmOperand(), llvm::PPCInstPrinter::printU6ImmOperand(), llvm::MBlazeInstPrinter::printUnsignedImm(), llvm::HexagonInstPrinter::printUnsignedImmOperand(), llvm::ARMInstPrinter::printVectorIndex(), and SimplifyShortMoveForm().
| const MCInst* llvm::MCOperand::getInst | ( | ) | const [inline] |
| unsigned llvm::MCOperand::getReg | ( | ) | const [inline] |
getReg - Returns the register number.
Definition at line 63 of file MCInst.h.
References isReg(), and RegVal.
Referenced by checkLowRegisterList(), DecodeRegListOperand(), DetermineREXPrefix(), llvm::EmitAnyX86InstComments(), HasConditionalBranch(), llvm::MCInstrDesc::hasDefOfPhysReg(), Is16BitMemOperand(), Is32BitMemOperand(), Is64BitMemOperand(), listContainsReg(), lower_lea64_32mem(), lower_subreg32(), print(), llvm::ARMInstPrinter::printAddrMode2OffsetOperand(), llvm::ARMInstPrinter::printAddrMode3OffsetOperand(), llvm::ARMInstPrinter::printAddrMode5Operand(), llvm::ARMInstPrinter::printAddrMode6OffsetOperand(), llvm::ARMInstPrinter::printAddrMode6Operand(), llvm::ARMInstPrinter::printAddrMode7Operand(), llvm::ARMInstPrinter::printAddrModeImm12Operand(), llvm::ARMInstPrinter::printAddrModeTBB(), llvm::ARMInstPrinter::printAddrModeTBH(), llvm::ARMInstPrinter::printAM2PreOrOffsetIndexOp(), llvm::ARMInstPrinter::printAM3PostIndexOp(), llvm::ARMInstPrinter::printAM3PreOrOffsetIndexOp(), llvm::MipsInstPrinter::printCPURegs(), llvm::PPCInstPrinter::printcrbitm(), llvm::HexagonInstPrinter::printFrameIndexOperand(), llvm::ARMInstPrinter::printGPRPairOperand(), llvm::ARMInstPrinter::printInst(), llvm::PPCInstPrinter::printInst(), llvm::X86IntelInstPrinter::printMemReference(), llvm::X86ATTInstPrinter::printMemReference(), llvm::PPCInstPrinter::printMemRegImm(), llvm::PPCInstPrinter::printMemRegReg(), llvm::HexagonInstPrinter::printMEMriOperand(), llvm::MSP430InstPrinter::printOperand(), llvm::MBlazeInstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::HexagonInstPrinter::printOperand(), llvm::SystemZInstPrinter::printOperand(), llvm::X86ATTInstPrinter::printOperand(), llvm::PPCInstPrinter::printOperand(), llvm::AArch64InstPrinter::printOperand(), llvm::ARMInstPrinter::printPostIdxRegOperand(), llvm::AArch64InstPrinter::printRegExtendOperand(), llvm::ARMInstPrinter::printRegisterList(), llvm::ARMInstPrinter::printSBitModifierOperand(), llvm::ARMInstPrinter::printSORegImmOperand(), llvm::ARMInstPrinter::printSORegRegOperand(), llvm::MSP430InstPrinter::printSrcMemOperand(), llvm::ARMInstPrinter::printT2AddrModeImm0_1020s4Operand(), llvm::ARMInstPrinter::printT2AddrModeImm8Operand(), llvm::ARMInstPrinter::printT2AddrModeImm8s4Operand(), llvm::ARMInstPrinter::printT2AddrModeSoRegOperand(), llvm::ARMInstPrinter::printT2SOOperand(), llvm::ARMInstPrinter::printThumbAddrModeImm5SOperand(), llvm::ARMInstPrinter::printThumbAddrModeRROperand(), llvm::ARMInstPrinter::printVectorListFour(), llvm::ARMInstPrinter::printVectorListFourAllLanes(), llvm::ARMInstPrinter::printVectorListFourSpaced(), llvm::ARMInstPrinter::printVectorListFourSpacedAllLanes(), llvm::ARMInstPrinter::printVectorListOne(), llvm::ARMInstPrinter::printVectorListOneAllLanes(), llvm::ARMInstPrinter::printVectorListThree(), llvm::ARMInstPrinter::printVectorListThreeAllLanes(), llvm::ARMInstPrinter::printVectorListThreeSpaced(), llvm::ARMInstPrinter::printVectorListThreeSpacedAllLanes(), llvm::ARMInstPrinter::printVectorListTwo(), llvm::ARMInstPrinter::printVectorListTwoAllLanes(), llvm::ARMInstPrinter::printVectorListTwoSpaced(), llvm::ARMInstPrinter::printVectorListTwoSpacedAllLanes(), SimplifyShortImmForm(), and SimplifyShortMoveForm().
| bool llvm::MCOperand::isExpr | ( | ) | const [inline] |
Definition at line 59 of file MCInst.h.
Referenced by llvm::MCObjectStreamer::EmitInstruction(), getBranchTargetOpValue(), getExpr(), llvm::HexagonMCInst::isConstExtended(), print(), llvm::AArch64InstPrinter::printAddSubImmLSL0Operand(), llvm::ARMInstPrinter::printAdrLabelOperand(), llvm::HexagonInstPrinter::printConstantPool(), llvm::HexagonInstPrinter::printGlobalOperand(), llvm::HexagonInstPrinter::printImmOperand(), llvm::HexagonInstPrinter::printJumpTable(), llvm::X86IntelInstPrinter::printMemReference(), llvm::X86ATTInstPrinter::printMemReference(), llvm::MBlazeInstPrinter::printOperand(), llvm::MSP430InstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::HexagonInstPrinter::printOperand(), llvm::SystemZInstPrinter::printOperand(), llvm::X86ATTInstPrinter::printOperand(), llvm::PPCInstPrinter::printOperand(), llvm::AArch64InstPrinter::printOperand(), llvm::X86IntelInstPrinter::printPCRelImm(), llvm::X86ATTInstPrinter::printPCRelImm(), llvm::MSP430InstPrinter::printPCRelImmOperand(), llvm::MSP430InstPrinter::printSrcMemOperand(), llvm::PPCInstPrinter::printSymbolHi(), llvm::PPCInstPrinter::printSymbolLo(), llvm::ARMInstPrinter::printThumbLdrLabelOperand(), setExpr(), SimplifyShortImmForm(), and SimplifyShortMoveForm().
| bool llvm::MCOperand::isFPImm | ( | ) | const [inline] |
Definition at line 58 of file MCInst.h.
Referenced by getFPImm(), and setFPImm().
| bool llvm::MCOperand::isImm | ( | ) | const [inline] |
Definition at line 57 of file MCInst.h.
Referenced by convert16i16to16ri8(), convert32i32to32ri8(), convert64i32to64ri8(), getBranchTargetOpValue(), getImm(), HasConditionalBranch(), llvm::HexagonMCInst::isConstExtended(), llvm::Mips::LowerDextDins(), llvm::Mips::LowerLargeShift(), print(), llvm::AArch64InstPrinter::printAddSubImmLSL0Operand(), llvm::ARMInstPrinter::printBitfieldInvMaskImmOperand(), llvm::PPCInstPrinter::printBranchOperand(), llvm::AArch64InstPrinter::printFPImmOperand(), llvm::MBlazeInstPrinter::printFSLImm(), llvm::HexagonInstPrinter::printImmOperand(), llvm::AArch64InstPrinter::printLabelOperand(), llvm::X86IntelInstPrinter::printMemReference(), llvm::X86ATTInstPrinter::printMemReference(), llvm::AArch64InstPrinter::printMoveWideImmOperand(), llvm::AArch64InstPrinter::printOffsetUImm12Operand(), llvm::MBlazeInstPrinter::printOperand(), llvm::MSP430InstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::HexagonInstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::SystemZInstPrinter::printOperand(), llvm::X86ATTInstPrinter::printOperand(), llvm::PPCInstPrinter::printOperand(), llvm::AArch64InstPrinter::printOperand(), llvm::X86IntelInstPrinter::printPCRelImm(), llvm::X86ATTInstPrinter::printPCRelImm(), llvm::MSP430InstPrinter::printPCRelImmOperand(), llvm::AArch64InstPrinter::printShiftOperand(), llvm::MSP430InstPrinter::printSrcMemOperand(), llvm::HexagonInstPrinter::printSymbol(), llvm::PPCInstPrinter::printSymbolHi(), llvm::PPCInstPrinter::printSymbolLo(), llvm::ARMInstPrinter::printT2SOOperand(), llvm::ARMInstPrinter::printThumbLdrLabelOperand(), llvm::MBlazeInstPrinter::printUnsignedImm(), setImm(), SimplifyShortImmForm(), and SimplifyShortMoveForm().
| bool llvm::MCOperand::isInst | ( | ) | const [inline] |
| bool llvm::MCOperand::isReg | ( | ) | const [inline] |
Definition at line 56 of file MCInst.h.
Referenced by DetermineREXPrefix(), llvm::HexagonMCInst::getNewValue(), getReg(), HasConditionalBranch(), llvm::MCInstrDesc::hasDefOfPhysReg(), lower_lea64_32mem(), print(), llvm::ARMInstPrinter::printAddrMode2Operand(), llvm::ARMInstPrinter::printAddrMode3Operand(), llvm::ARMInstPrinter::printAddrMode5Operand(), llvm::ARMInstPrinter::printAddrModeImm12Operand(), llvm::MBlazeInstPrinter::printOperand(), llvm::MSP430InstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::HexagonInstPrinter::printOperand(), llvm::SystemZInstPrinter::printOperand(), llvm::X86ATTInstPrinter::printOperand(), llvm::PPCInstPrinter::printOperand(), llvm::AArch64InstPrinter::printOperand(), llvm::ARMInstPrinter::printT2AddrModeImm8s4Operand(), llvm::ARMInstPrinter::printThumbAddrModeImm5SOperand(), llvm::ARMInstPrinter::printThumbAddrModeRROperand(), setReg(), SimplifyShortImmForm(), and SimplifyShortMoveForm().
| bool llvm::MCOperand::isValid | ( | ) | const [inline] |
Definition at line 55 of file MCInst.h.
Referenced by llvm::XCoreMCInstLower::Lower(), llvm::MipsMCInstLower::Lower(), llvm::SystemZMCInstLower::lower(), and print().
| void MCOperand::print | ( | raw_ostream & | OS, |
| const MCAsmInfo * | MAI | ||
| ) | const |
Definition at line 18 of file MCInst.cpp.
References getExpr(), getImm(), getInst(), getReg(), isExpr(), isImm(), isInst(), isReg(), and isValid().
Referenced by dump(), llvm::MCInst::dump_pretty(), llvm::operator<<(), and llvm::MCInst::print().
| void llvm::MCOperand::setExpr | ( | const MCExpr * | Val | ) | [inline] |
| void llvm::MCOperand::setFPImm | ( | double | Val | ) | [inline] |
| void llvm::MCOperand::setImm | ( | int64_t | Val | ) | [inline] |
Definition at line 78 of file MCInst.h.
References ImmVal, and isImm().
Referenced by llvm::Mips::LowerDextDins(), and llvm::Mips::LowerLargeShift().
| void llvm::MCOperand::setInst | ( | const MCInst * | Val | ) | [inline] |
| void llvm::MCOperand::setReg | ( | unsigned | Reg | ) | [inline] |
setReg - Set the register number.
Definition at line 69 of file MCInst.h.
References isReg(), and RegVal.
Referenced by lower_lea64_32mem(), and lower_subreg32().
| const MCExpr* llvm::MCOperand::ExprVal |
Definition at line 48 of file MCInst.h.
Referenced by CreateExpr(), getExpr(), and setExpr().
| double llvm::MCOperand::FPImmVal |
Definition at line 47 of file MCInst.h.
Referenced by CreateFPImm(), getFPImm(), and setFPImm().
| int64_t llvm::MCOperand::ImmVal |
Definition at line 46 of file MCInst.h.
Referenced by CreateImm(), getImm(), and setImm().
| const MCInst* llvm::MCOperand::InstVal |
Definition at line 49 of file MCInst.h.
Referenced by CreateInst(), getInst(), and setInst().
Definition at line 45 of file MCInst.h.
Referenced by CreateReg(), getReg(), and setReg().