Go to the documentation of this file.
9 #ifndef LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H
10 #define LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H
27 unsigned MCOperandNum;
31 std::string Constraint;
55 virtual bool isToken()
const = 0;
57 virtual bool isImm()
const = 0;
59 virtual bool isReg()
const = 0;
60 virtual unsigned getReg()
const = 0;
63 virtual bool isMem()
const = 0;
93 virtual void dump()
const;
106 #endif // LLVM_MC_MCPARSER_MCPARSEDASMOPERAND_H
This is an optimization pass for GlobalISel generic memory operations.
virtual bool isMemUseUpRegs() const
isMemUseUpRegs - Is memory operand use up regs, for example, intel MS inline asm may use ARR[baseReg ...
virtual ~MCParsedAsmOperand()=default
MCParsedAsmOperand & operator=(const MCParsedAsmOperand &)=default
MCParsedAsmOperand - This abstract class represents a source-level assembly instruction operand.
virtual void * getOpDecl()
void setConstraint(StringRef C)
virtual SMLoc getOffsetOfLoc() const
getOffsetOfLoc - Get the location of the offset operator.
virtual bool isReg() const =0
isReg - Is this a register operand?
virtual void dump() const
dump - Print to the debug stream.
MCParsedAsmOperand()=default
virtual SMLoc getStartLoc() const =0
getStartLoc - Get the location of the first token of this operand.
void setMCOperandNum(unsigned OpNum)
Represents a location in source code.
(vector float) vec_cmpeq(*A, *B) C
virtual StringRef getSymName()
This class implements an extremely fast bulk output stream that can only output to a stream.
raw_ostream & operator<<(raw_ostream &OS, const APFixedPoint &FX)
virtual bool isToken() const =0
isToken - Is this a token operand?
virtual bool isMem() const =0
isMem - Is this a memory operand?
virtual SMLoc getEndLoc() const =0
getEndLoc - Get the location of the last token of this operand.
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?
StringRef - Represent a constant reference to a string, i.e.
virtual unsigned getReg() const =0
StringRef getConstraint()
unsigned getMCOperandNum()
virtual bool isOffsetOfLocal() const
isOffsetOfLocal - Do we need to emit code to get the offset of the local variable,...
virtual bool needAddressOf() const
needAddressOf - Do we need to emit code to get the address of the variable/label? Only valid when par...