10 #ifndef LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H
11 #define LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H
24 unsigned MCOperandNum;
28 std::string Constraint;
44 virtual bool isToken()
const = 0;
46 virtual bool isImm()
const = 0;
48 virtual bool isReg()
const = 0;
49 virtual unsigned getReg()
const = 0;
52 virtual bool isMem()
const = 0;
74 virtual void dump()
const;
virtual bool isToken() const =0
isToken - Is this a token operand?
void setConstraint(StringRef C)
std::string str() const
str - Get the contents as an std::string.
virtual bool isMem() const =0
isMem - Is this a memory operand?
virtual SMLoc getOffsetOfLoc() const
getOffsetOfLoc - Get the location of the offset operator.
virtual StringRef getSymName()
virtual void * getOpDecl()
StringRef getConstraint()
void setMCOperandNum(unsigned OpNum)
virtual bool isOffsetOf() const
virtual ~MCParsedAsmOperand()
virtual unsigned getReg() const =0
virtual SMLoc getEndLoc() const =0
getEndLoc - Get the location of the last token of this operand.
virtual SMLoc getStartLoc() const =0
getStartLoc - Get the location of the first token of this operand.
virtual void dump() const
dump - Print to the debug stream.
virtual void print(raw_ostream &OS) const =0
print - Print a debug representation of the operand to the given stream.
virtual bool isImm() const =0
isImm - Is this an immediate operand?
raw_ostream & operator<<(raw_ostream &OS, const APInt &I)
unsigned getMCOperandNum()
virtual bool needAddressOf() const
Represents a location in source code.
virtual bool isReg() const =0
isReg - Is this a register operand?