10 #ifndef LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H 11 #define LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H 28 unsigned MCOperandNum;
32 std::string Constraint;
56 virtual bool isToken()
const = 0;
58 virtual bool isImm()
const = 0;
60 virtual bool isReg()
const = 0;
61 virtual unsigned getReg()
const = 0;
64 virtual bool isMem()
const = 0;
87 virtual void dump()
const;
100 #endif // LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H
LLVM_NODISCARD std::string str() const
str - Get the contents as an std::string.
This class represents lattice values for constants.
virtual void dump() const
dump - Print to the debug stream.
virtual ~MCParsedAsmOperand()=default
virtual bool isToken() const =0
isToken - Is this a token operand?
void setConstraint(StringRef C)
virtual bool isMem() const =0
isMem - Is this a memory operand?
virtual StringRef getSymName()
MCParsedAsmOperand - This abstract class represents a source-level assembly instruction operand...
virtual void * getOpDecl()
StringRef getConstraint()
void setMCOperandNum(unsigned OpNum)
MCParsedAsmOperand()=default
virtual unsigned getReg() const =0
virtual bool isOffsetOf() const
isOffsetOf - Do we need to emit code to get the offset of the variable, rather then the value of the ...
virtual SMLoc getEndLoc() const =0
getEndLoc - Get the location of the last token of this operand.
virtual bool needAddressOf() const
needAddressOf - Do we need to emit code to get the address of the variable/label? Only valid when par...
virtual SMLoc getStartLoc() const =0
getStartLoc - Get the location of the first token of this operand.
virtual void print(raw_ostream &OS) const =0
print - Print a debug representation of the operand to the given stream.
MCParsedAsmOperand & operator=(const MCParsedAsmOperand &)=default
virtual bool isImm() const =0
isImm - Is this an immediate operand?
virtual SMLoc getOffsetOfLoc() const
getOffsetOfLoc - Get the location of the offset operator.
raw_ostream & operator<<(raw_ostream &OS, const APInt &I)
This class implements an extremely fast bulk output stream that can only output to a stream...
unsigned getMCOperandNum()
StringRef - Represent a constant reference to a string, i.e.
Represents a location in source code.
virtual bool isReg() const =0
isReg - Is this a register operand?