LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
llvm::MCOperand Class Reference

#include <MCInst.h>

Collaboration diagram for llvm::MCOperand:
Collaboration graph
[legend]

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. More...
 
void setReg (unsigned Reg)
 setReg - Set the register number. More...
 
int64_t getImm () const
 
void setImm (int64_t Val)
 
double getFPImm () const
 
void setFPImm (double Val)
 
const MCExprgetExpr () const
 
void setExpr (const MCExpr *Val)
 
const MCInstgetInst () 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)
 

Detailed Description

MCOperand - Instances of this class represent operands of the MCInst class. This is a simple discriminated union.

Definition at line 33 of file MCInst.h.

Constructor & Destructor Documentation

llvm::MCOperand::MCOperand ( )
inline

Definition at line 53 of file MCInst.h.

Member Function Documentation

static MCOperand llvm::MCOperand::CreateExpr ( const MCExpr Val)
inlinestatic
static MCOperand llvm::MCOperand::CreateFPImm ( double  Val)
inlinestatic
static MCOperand llvm::MCOperand::CreateImm ( int64_t  Val)
inlinestatic

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(), decodeBDAddr12Operand(), decodeBDAddr20Operand(), decodeBDLAddr12Len8Operand(), decodeBDXAddr12Operand(), decodeBDXAddr20Operand(), DecodeBitfield32ImmOperand(), DecodeBitfieldInstruction(), DecodeBitfieldMaskOperand(), DecodeBitpOperand(), DecodeBranchImmInstruction(), DecodeBranchTarget(), DecodeBranchTargetMM(), DecodeCopMemInstruction(), DecodeCoprocessor(), DecodeCPSInstruction(), DecodeCVT32FixedPosOperand(), DecodeExtSize(), DecodeFMem(), DecodeFMOVLaneInstruction(), DecodeFPZeroOperand(), DecodeInsSize(), DecodeInstSyncBarrierOption(), DecodeIT(), DecodeJumpTarget(), DecodeJumpTargetMM(), DecodeL2RUSInstruction(), DecodeLDSTPairInstruction(), DecodeLogicalImmOperand(), DecodeLSAImm(), DecodeMem(), DecodeMemBarrierOption(), DecodeMemMMImm12(), DecodeMemMMImm16(), DecodeMemMultipleWritebackInstruction(), DecodeMoveWideImmOperand(), DecodeMRRC2(), DecodeMSA128Mem(), DecodeMSRMask(), DecodeNamedImmOperand(), DecodeNegImmOperand(), DecodeNEONModImmInstruction(), DecodeNeonMovImmShiftOperand(), decodePCDBLOperand(), DecodePostIdxReg(), DecodePredicateOperand(), DecodeRegExtendOperand(), DecodeRFEInstruction(), DecodeRUSInstruction(), DecodeShiftLeftImm16(), DecodeShiftLeftImm32(), DecodeShiftLeftImm64(), DecodeShiftLeftImm8(), DecodeShiftRight16Imm(), DecodeShiftRight32Imm(), DecodeShiftRight64Imm(), DecodeShiftRight8Imm(), DecodeShiftRightImm16(), DecodeShiftRightImm32(), DecodeShiftRightImm64(), DecodeShiftRightImm8(), DecodeSimm16(), decodeSImmOperand(), DecodeSingleIndexedInstruction(), DecodeSOImmOperand(), DecodeSORegImmOperand(), DecodeSORegMemOperand(), DecodeSORegRegOperand(), DecodeSysRegOperand(), DecodeT2AddrModeImm0_1020s4(), DecodeT2AddrModeImm12(), DecodeT2AddrModeSOReg(), DecodeT2Adr(), DecodeT2BInstruction(), DecodeT2BROperand(), DecodeT2CPSInstruction(), DecodeT2Imm8(), DecodeT2Imm8S4(), DecodeT2LoadLabel(), 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(), DecodeVLDSTLanePostInstruction(), DecodeVLDSTPostInstruction(), DecodeVSHLMaxInstruction(), DecodeVST1LN(), DecodeVST2LN(), DecodeVST3LN(), DecodeVST4LN(), DecodeVSTInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::Thumb1InstrInfo::getNoopForMachoTarget(), llvm::Thumb2InstrInfo::getNoopForMachoTarget(), llvm::ARMInstrInfo::getNoopForMachoTarget(), llvm::HexagonLowerToMC(), llvm::AMDGPUMCInstLower::lower(), llvm::MSP430MCInstLower::Lower(), llvm::MipsMCInstLower::LowerOperand(), llvm::XCoreMCInstLower::LowerOperand(), llvm::SystemZMCInstLower::lowerOperand(), llvm::AArch64AsmPrinter::lowerOperand(), llvm::ARMAsmPrinter::lowerOperand(), llvm::LowerPPCMachineInstrToMCInst(), translateImmediate(), and translateRMMemory().

static MCOperand llvm::MCOperand::CreateInst ( const MCInst Val)
inlinestatic

Definition at line 135 of file MCInst.h.

References InstVal.

Referenced by llvm::MCInstBuilder::addInst().

static MCOperand llvm::MCOperand::CreateReg ( unsigned  Reg)
inlinestatic

Definition at line 111 of file MCInst.h.

References RegVal.

Referenced by llvm::MCInstBuilder::addReg(), AddThumb1SBit(), convertToSExti8(), DecodeACC64DSPRegisterClass(), DecodeAddrMode2IdxInstruction(), DecodeAddrMode3Instruction(), DecodeAFGR64RegisterClass(), decodeBDAddr12Operand(), decodeBDAddr20Operand(), decodeBDLAddr12Len8Operand(), decodeBDXAddr12Operand(), decodeBDXAddr20Operand(), DecodeCCOutOperand(), DecodeCCRRegisterClass(), DecodeDPairRegisterClass(), DecodeDPairSpacedRegisterClass(), DecodeDPRRegisterClass(), DecodeFCCRegisterClass(), DecodeFGR32RegisterClass(), DecodeFGR64RegisterClass(), DecodeFGRH32RegisterClass(), DecodeFMem(), DecodeFPR128RegisterClass(), DecodeFPR16RegisterClass(), DecodeFPR32RegisterClass(), DecodeFPR64RegisterClass(), DecodeFPR8RegisterClass(), DecodeGPR32RegisterClass(), DecodeGPR32wspRegisterClass(), DecodeGPR64noxzrRegisterClass(), DecodeGPR64RegisterClass(), DecodeGPR64xspRegisterClass(), DecodeGPRPairRegisterClass(), DecodeGPRRegisterClass(), DecodeGPRwithAPSRRegisterClass(), DecodeGRRegsRegisterClass(), DecodeHI32DSPRegisterClass(), DecodeHWRegsRegisterClass(), DecodeLO32DSPRegisterClass(), DecodeMem(), DecodeMemMMImm12(), DecodeMemMMImm16(), DecodeMSA128BRegisterClass(), DecodeMSA128DRegisterClass(), DecodeMSA128HRegisterClass(), DecodeMSA128Mem(), DecodeMSA128WRegisterClass(), DecodeMSACtrlRegisterClass(), DecodePredicateOperand(), DecodeQPRRegisterClass(), decodeRegisterClass(), DecodeRegisterClassByID(), DecodeRRegsRegisterClass(), DecodeSPRRegisterClass(), DecodetcGPRRegisterClass(), DecodeThumbAddrModeSP(), DecodeThumbAddSpecialReg(), DecodeThumbAddSPImm(), DecodeThumbAddSPReg(), DecodeVLD1LN(), DecodeVLD2LN(), DecodeVLD3DupInstruction(), DecodeVLD3LN(), DecodeVLD4DupInstruction(), DecodeVLD4LN(), DecodeVLDInstruction(), DecodeVST1LN(), DecodeVST2LN(), DecodeVST3LN(), DecodeVST4LN(), DecodeVSTInstruction(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::Thumb1InstrInfo::getNoopForMachoTarget(), llvm::ARMInstrInfo::getNoopForMachoTarget(), llvm::Thumb2InstrInfo::getNoopForMachoTarget(), llvm::HexagonLowerToMC(), llvm::AMDGPUMCInstLower::lower(), llvm::MSP430MCInstLower::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
double llvm::MCOperand::getFPImm ( ) const
inline

Definition at line 83 of file MCInst.h.

References FPImmVal, and isFPImm().

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(), getITDeprecationInfo(), getMCRDeprecationInfo(), HasConditionalBranch(), llvm::HexagonMCInst::isConstExtended(), LowerDextDins(), LowerLargeShift(), llvm::yaml::ScalarTraits< MCModuleYAML::Operand >::output(), print(), llvm::PPCInstPrinter::printAbsBranchOperand(), 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::NVPTXInstPrinter::printCmpMode(), llvm::AArch64InstPrinter::printCondCodeOperand(), llvm::ARMInstPrinter::printCoprocOptionImm(), llvm::ARMInstPrinter::printCPSIFlag(), llvm::ARMInstPrinter::printCPSIMod(), llvm::AArch64InstPrinter::printCRxOperand(), llvm::AArch64InstPrinter::printCVTFixedPosOperand(), llvm::NVPTXInstPrinter::printCvtMode(), llvm::ARMInstPrinter::printFBits16(), llvm::ARMInstPrinter::printFBits32(), llvm::AArch64InstPrinter::printFPImmOperand(), llvm::ARMInstPrinter::printFPImmOperand(), llvm::HexagonInstPrinter::printFrameIndexOperand(), llvm::HexagonInstPrinter::printImmOperand(), llvm::ARMInstPrinter::printImmPlusOneOperand(), llvm::ARMInstPrinter::printInst(), llvm::PPCInstPrinter::printInst(), llvm::ARMInstPrinter::printInstSyncBOption(), llvm::AArch64InstPrinter::printLabelOperand(), llvm::NVPTXInstPrinter::printLdStCode(), llvm::ARMInstPrinter::printLdStmModeOperand(), llvm::AArch64InstPrinter::printLogicalImmOperand(), llvm::ARMInstPrinter::printMandatoryPredicateOperand(), llvm::ARMInstPrinter::printMemBOption(), llvm::X86IntelInstPrinter::printMemOffset(), llvm::X86ATTInstPrinter::printMemOffset(), llvm::NVPTXInstPrinter::printMemOperand(), 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::AArch64InstPrinter::printNeonMovImmShiftOperand(), llvm::AArch64InstPrinter::printNeonUImm64MaskOperand(), llvm::ARMInstPrinter::printNoHashImmediate(), llvm::AArch64InstPrinter::printOffsetSImm9Operand(), llvm::AArch64InstPrinter::printOffsetUImm12Operand(), llvm::MSP430InstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::NVPTXInstPrinter::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::AArch64InstPrinter::printUImmBareOperand(), llvm::AArch64InstPrinter::printUImmHexOperand(), llvm::HexagonInstPrinter::printUnsignedImmOperand(), llvm::ARMInstPrinter::printVectorIndex(), and SimplifyShortMoveForm().

const MCInst* llvm::MCOperand::getInst ( ) const
inline

Definition at line 102 of file MCInst.h.

References InstVal, and isInst().

Referenced by print().

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(), isReg(), listContainsReg(), llvm::MCInstrDesc::mayAffectControlFlow(), llvm::yaml::ScalarTraits< MCModuleYAML::Operand >::output(), 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::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::X86IntelInstPrinter::printOperand(), llvm::HexagonInstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::SystemZInstPrinter::printOperand(), llvm::NVPTXInstPrinter::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::AArch64InstPrinter::printVectorList(), 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(), llvm::AArch64InstPrinter::printVPRRegister(), SimplifyMOVSX(), SimplifyShortImmForm(), and SimplifyShortMoveForm().

bool llvm::MCOperand::isExpr ( ) const
inline
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(), getITDeprecationInfo(), getMCRDeprecationInfo(), HasConditionalBranch(), llvm::HexagonMCInst::isConstExtended(), LowerDextDins(), LowerLargeShift(), llvm::yaml::ScalarTraits< MCModuleYAML::Operand >::output(), print(), llvm::PPCInstPrinter::printAbsBranchOperand(), llvm::AArch64InstPrinter::printAddSubImmLSL0Operand(), llvm::ARMInstPrinter::printBitfieldInvMaskImmOperand(), llvm::PPCInstPrinter::printBranchOperand(), llvm::AArch64InstPrinter::printFPImmOperand(), llvm::HexagonInstPrinter::printImmOperand(), llvm::AArch64InstPrinter::printLabelOperand(), llvm::X86IntelInstPrinter::printMemOffset(), llvm::X86ATTInstPrinter::printMemOffset(), llvm::NVPTXInstPrinter::printMemOperand(), llvm::X86IntelInstPrinter::printMemReference(), llvm::X86ATTInstPrinter::printMemReference(), llvm::AArch64InstPrinter::printMoveWideImmOperand(), llvm::AArch64InstPrinter::printNeonMovImmShiftOperand(), llvm::AArch64InstPrinter::printNeonUImm64MaskOperand(), llvm::AArch64InstPrinter::printOffsetUImm12Operand(), llvm::MSP430InstPrinter::printOperand(), llvm::X86IntelInstPrinter::printOperand(), llvm::HexagonInstPrinter::printOperand(), llvm::ARMInstPrinter::printOperand(), llvm::NVPTXInstPrinter::printOperand(), llvm::SystemZInstPrinter::printOperand(), llvm::X86ATTInstPrinter::printOperand(), llvm::PPCInstPrinter::printOperand(), llvm::AArch64InstPrinter::printOperand(), llvm::X86IntelInstPrinter::printPCRelImm(), llvm::X86ATTInstPrinter::printPCRelImm(), llvm::MSP430InstPrinter::printPCRelImmOperand(), llvm::PPCInstPrinter::printS16ImmOperand(), llvm::AArch64InstPrinter::printShiftOperand(), llvm::MSP430InstPrinter::printSrcMemOperand(), llvm::HexagonInstPrinter::printSymbol(), llvm::ARMInstPrinter::printT2SOOperand(), llvm::PPCInstPrinter::printU16ImmOperand(), llvm::AArch64InstPrinter::printUImmBareOperand(), llvm::AArch64InstPrinter::printUImmHexOperand(), setImm(), SimplifyShortImmForm(), and SimplifyShortMoveForm().

bool llvm::MCOperand::isInst ( ) const
inline

Definition at line 60 of file MCInst.h.

Referenced by getInst(), print(), and setInst().

bool llvm::MCOperand::isReg ( ) const
inline
bool llvm::MCOperand::isValid ( ) const
inline

Definition at line 55 of file MCInst.h.

Referenced by llvm::MipsMCInstLower::Lower(), llvm::XCoreMCInstLower::Lower(), and print().

void MCOperand::print ( raw_ostream OS,
const MCAsmInfo MAI 
) const
void llvm::MCOperand::setExpr ( const MCExpr Val)
inline

Definition at line 97 of file MCInst.h.

References ExprVal, and isExpr().

void llvm::MCOperand::setFPImm ( double  Val)
inline

Definition at line 88 of file MCInst.h.

References FPImmVal, and isFPImm().

void llvm::MCOperand::setImm ( int64_t  Val)
inline

Definition at line 78 of file MCInst.h.

References ImmVal, and isImm().

Referenced by LowerDextDins(), and LowerLargeShift().

void llvm::MCOperand::setInst ( const MCInst Val)
inline

Definition at line 106 of file MCInst.h.

References InstVal, and isInst().

void llvm::MCOperand::setReg ( unsigned  Reg)
inline

setReg - Set the register number.

Definition at line 69 of file MCInst.h.

References isReg(), and RegVal.

Member Data Documentation

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().

unsigned llvm::MCOperand::RegVal

Definition at line 45 of file MCInst.h.

Referenced by CreateReg(), getReg(), and setReg().


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