LLVM
8.0.1
|
MCParsedAsmOperand - This abstract class represents a source-level assembly instruction operand. More...
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
Public Member Functions | |
virtual | ~MCParsedAsmOperand ()=default |
void | setConstraint (StringRef C) |
StringRef | getConstraint () |
void | setMCOperandNum (unsigned OpNum) |
unsigned | getMCOperandNum () |
virtual StringRef | getSymName () |
virtual void * | getOpDecl () |
virtual bool | isToken () const =0 |
isToken - Is this a token operand? More... | |
virtual bool | isImm () const =0 |
isImm - Is this an immediate operand? More... | |
virtual bool | isReg () const =0 |
isReg - Is this a register operand? More... | |
virtual unsigned | getReg () const =0 |
virtual bool | isMem () const =0 |
isMem - Is this a memory operand? More... | |
virtual SMLoc | getStartLoc () const =0 |
getStartLoc - Get the location of the first token of this operand. More... | |
virtual SMLoc | getEndLoc () const =0 |
getEndLoc - Get the location of the last token of this operand. More... | |
virtual bool | needAddressOf () const |
needAddressOf - Do we need to emit code to get the address of the variable/label? Only valid when parsing MS-style inline assembly. More... | |
virtual bool | isOffsetOf () const |
isOffsetOf - Do we need to emit code to get the offset of the variable, rather then the value of the variable? Only valid when parsing MS-style inline assembly. More... | |
virtual SMLoc | getOffsetOfLoc () const |
getOffsetOfLoc - Get the location of the offset operator. More... | |
virtual void | print (raw_ostream &OS) const =0 |
print - Print a debug representation of the operand to the given stream. More... | |
virtual void | dump () const |
dump - Print to the debug stream. More... | |
Protected Member Functions | |
MCParsedAsmOperand ()=default | |
MCParsedAsmOperand (const MCParsedAsmOperand &RHS)=default | |
MCParsedAsmOperand & | operator= (const MCParsedAsmOperand &)=default |
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.
Definition at line 25 of file MCParsedAsmOperand.h.
|
protecteddefault |
|
protecteddefault |
|
virtualdefault |
|
virtual |
dump - Print to the debug stream.
Definition at line 132 of file MCAsmParser.cpp.
References llvm::dbgs().
Referenced by getOffsetOfLoc().
|
inline |
Definition at line 47 of file MCParsedAsmOperand.h.
|
pure virtual |
getEndLoc - Get the location of the last token of this operand.
Implemented in llvm::X86Operand.
Referenced by getOpDecl().
|
inline |
Definition at line 50 of file MCParsedAsmOperand.h.
Referenced by rewritesSort().
|
inlinevirtual |
getOffsetOfLoc - Get the location of the offset operator.
Reimplemented in llvm::X86Operand.
Definition at line 81 of file MCParsedAsmOperand.h.
|
inlinevirtual |
Reimplemented in llvm::X86Operand.
Definition at line 53 of file MCParsedAsmOperand.h.
References getEndLoc(), getReg(), getStartLoc(), isImm(), isMem(), isReg(), and isToken().
Referenced by rewritesSort().
|
pure virtual |
Implemented in llvm::X86Operand.
Referenced by getOpDecl(), llvm::MCTargetAsmParser::regsEqual(), and rewritesSort().
|
pure virtual |
getStartLoc - Get the location of the first token of this operand.
Implemented in llvm::X86Operand.
Referenced by getOpDecl(), and printMCExpr().
|
inlinevirtual |
Reimplemented in llvm::X86Operand.
Definition at line 52 of file MCParsedAsmOperand.h.
Referenced by rewritesSort().
|
pure virtual |
isImm - Is this an immediate operand?
Implemented in llvm::X86Operand.
Referenced by getOpDecl(), and rewritesSort().
|
pure virtual |
isMem - Is this a memory operand?
Implemented in llvm::X86Operand.
Referenced by getOpDecl(), and IsSmallMemAccess().
|
inlinevirtual |
isOffsetOf - Do we need to emit code to get the offset of the variable, rather then the value of the variable? Only valid when parsing MS-style inline assembly.
Reimplemented in llvm::X86Operand.
Definition at line 78 of file MCParsedAsmOperand.h.
|
pure virtual |
isReg - Is this a register operand?
Implemented in llvm::X86Operand.
Referenced by getOpDecl(), llvm::MCTargetAsmParser::regsEqual(), and rewritesSort().
|
pure virtual |
isToken - Is this a token operand?
Implemented in llvm::X86Operand.
Referenced by getOpDecl(), and previousEqual().
|
inlinevirtual |
needAddressOf - Do we need to emit code to get the address of the variable/label? Only valid when parsing MS-style inline assembly.
Reimplemented in llvm::X86Operand.
Definition at line 73 of file MCParsedAsmOperand.h.
Referenced by rewritesSort().
|
protecteddefault |
|
pure virtual |
print - Print a debug representation of the operand to the given stream.
Implemented in llvm::X86Operand.
Referenced by getOffsetOfLoc(), and llvm::operator<<().
|
inline |
Definition at line 46 of file MCParsedAsmOperand.h.
References llvm::StringRef::str().
|
inline |
Definition at line 49 of file MCParsedAsmOperand.h.