llvm::MCParsedAsmOperand

Abstract representation of a source-level assembly instruction operand.

Synopsis

Declared in <llvm/MC/MCParser/MCParsedAsmOperand.h>

class MCParsedAsmOperand;

Description

It should be subclassed by target-specific code. This base class is used by target-independent clients and is the interface between parsing an asm instruction and recognizing it.

Member Functions

NameDescription
~MCParsedAsmOperand [destructor] [virtual]Destroy this parsed assembly operand.
dump [virtual]dump - Print to the debug stream.
getConstraint Return the MS-style inline assembly constraint for this operand.
getEndLoc [virtual]getEndLoc - Get the location of the last token of this operand.
getMCOperandNum Return the corresponding MCInst operand number.
getOffsetOfLoc [virtual]getOffsetOfLoc - Get the location of the offset operator.
getOpDecl [virtual]Return an opaque declaration pointer for this operand, if any.
getReg [virtual]Return the register for this register operand.
getStartLoc [virtual]getStartLoc - Get the location of the first token of this operand.
getSymName [virtual]Return the symbol name for this operand, if any.
isImm [virtual]isImm - Is this an immediate operand?
isMem [virtual]isMem - Is this a memory operand?
isMemUseUpRegs [virtual]Return true if this memory operand consumes registers in its address.
isOffsetOfLocal [virtual]isOffsetOfLocal - Do we need to emit code to get the offset of the local variable, rather than its value? Only valid when parsing MS-style inline assembly.
isReg [virtual]isReg - Is this a register operand?
isToken [virtual]isToken - Is this a token operand?
needAddressOf [virtual]needAddressOf - Do we need to emit code to get the address of the variable/label? Only valid when parsing MS-style inline assembly.
print [virtual]Print a debug representation of the operand to the given stream.
setConstraint Set the MS-style inline assembly constraint for this operand.
setMCOperandNum Set the corresponding MCInst operand number.

Protected Member Functions

NameDescription
MCParsedAsmOperand [constructor]Constructors
operator= Copy-assign from another parsed assembly operand.