MCParsedAsmOperand ‐ This abstract class represents a source‐level assembly instruction operand. 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.

Synopsis

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

class MCParsedAsmOperand;

Member Functions

Name

Description

~MCParsedAsmOperand [destructor] [virtual]

Destructor

dump [virtual]

dump ‐ Print to the debug stream.

getConstraint

getEndLoc [virtual]

getEndLoc ‐ Get the location of the last token of this operand.

getMCOperandNum

getOffsetOfLoc [virtual]

getOffsetOfLoc ‐ Get the location of the offset operator.

getOpDecl [virtual]

getReg [virtual]

getStartLoc [virtual]

getStartLoc ‐ Get the location of the first token of this operand.

getSymName [virtual]

isImm [virtual]

isImm ‐ Is this an immediate operand?

isMem [virtual]

isMem ‐ Is this a memory operand?

isMemUseUpRegs [virtual]

isMemUseUpRegs ‐ Is memory operand use up regs, for example, intel MS inline asm may use ARR[baseReg + IndexReg + ...]which may use up regs in [...]expr, so ARR[baseReg + IndexReg + ...]can not use extra reg for ARR. For example, calculating ARR address to a reg or use another base reg in PIC model.

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 ‐ Print a debug representation of the operand to the given stream.

setConstraint

setMCOperandNum

Protected Member Functions

Name

Description

MCParsedAsmOperand [constructor]

Constructors

operator=

Copy assignment operator

Created with MrDocs