class UnOpInit
Declaration
class UnOpInit : public OpInit, public Node { /* full declaration omitted */ };
Description
!op (X) - Transform an init.
Declared at: llvm/include/llvm/TableGen/Record.h:752
Inherits from: OpInit, FoldingSetBase::Node
Member Variables
Inherited from Init:
Method Overview
- public llvm::Init * Fold(llvm::Record * CurRec, bool IsFinal = false) const
- public void Profile(llvm::FoldingSetNodeID & ID) const
- public UnOpInit(const llvm::UnOpInit &)
- public static bool classof(const llvm::Init * I)
- public llvm::OpInit * clone(ArrayRef<llvm::Init *> Operands) const
- public static llvm::UnOpInit * get(llvm::UnOpInit::UnaryOp opc, llvm::Init * lhs, llvm::RecTy * Type)
- public std::string getAsString() const
- public unsigned int getNumOperands() const
- public llvm::UnOpInit::UnaryOp getOpcode() const
- public llvm::Init * getOperand(unsigned int i) const
- public llvm::Init * getOperand() const
- public llvm::Init * resolveReferences(llvm::Resolver & R) const
Inherited from FoldingSetBase::Node:
Inherited from OpInit:
Inherited from TypedInit:
- public classof
- public convertInitListSlice
- public convertInitializerBitRange
- public convertInitializerTo
- public getCastTo
- public getFieldType
- public getType
Inherited from Init:
- public convertInitListSlice
- public convertInitializerBitRange
- public convertInitializerTo
- public dump
- public getAsString
- public getAsUnquotedString
- public getBit
- public getCastTo
- public getFieldType
- public getKind
- public isComplete
- public isConcrete
- public print
- public resolveReferences
Methods
¶llvm::Init* Fold(llvm::Record* CurRec,
bool IsFinal = false) const
llvm::Init* Fold(llvm::Record* CurRec,
bool IsFinal = false) const
Declared at: llvm/include/llvm/TableGen/Record.h:793
Parameters
- llvm::Record* CurRec
- bool IsFinal = false
¶void Profile(llvm::FoldingSetNodeID& ID) const
void Profile(llvm::FoldingSetNodeID& ID) const
Declared at: llvm/include/llvm/TableGen/Record.h:772
Parameters
¶UnOpInit(const llvm::UnOpInit&)
UnOpInit(const llvm::UnOpInit&)
Declared at: llvm/include/llvm/TableGen/Record.h:763
Parameters
- const llvm::UnOpInit&
¶static bool classof(const llvm::Init* I)
static bool classof(const llvm::Init* I)
Declared at: llvm/include/llvm/TableGen/Record.h:766
Parameters
- const llvm::Init* I
¶llvm::OpInit* clone(
ArrayRef<llvm::Init*> Operands) const
llvm::OpInit* clone(
ArrayRef<llvm::Init*> Operands) const
Declared at: llvm/include/llvm/TableGen/Record.h:775
Parameters
- ArrayRef<llvm::Init*> Operands
¶static llvm::UnOpInit* get(
llvm::UnOpInit::UnaryOp opc,
llvm::Init* lhs,
llvm::RecTy* Type)
static llvm::UnOpInit* get(
llvm::UnOpInit::UnaryOp opc,
llvm::Init* lhs,
llvm::RecTy* Type)
Declared at: llvm/include/llvm/TableGen/Record.h:770
Parameters
- llvm::UnOpInit::UnaryOp opc
- llvm::Init* lhs
- llvm::RecTy* Type
¶std::string getAsString() const
std::string getAsString() const
Description
Convert this value to a string form.
Declared at: llvm/include/llvm/TableGen/Record.h:797
¶unsigned int getNumOperands() const
unsigned int getNumOperands() const
Declared at: llvm/include/llvm/TableGen/Record.h:781
¶llvm::UnOpInit::UnaryOp getOpcode() const
llvm::UnOpInit::UnaryOp getOpcode() const
Declared at: llvm/include/llvm/TableGen/Record.h:788
¶llvm::Init* getOperand(unsigned int i) const
llvm::Init* getOperand(unsigned int i) const
Declared at: llvm/include/llvm/TableGen/Record.h:783
Parameters
- unsigned int i
¶llvm::Init* getOperand() const
llvm::Init* getOperand() const
Declared at: llvm/include/llvm/TableGen/Record.h:789
¶llvm::Init* resolveReferences(
llvm::Resolver& R) const
llvm::Init* resolveReferences(
llvm::Resolver& R) const
Description
This method is used by classes that refer to other variables which may not be defined at the time the expression is formed. If a value is set for the variable later, this method will be called on users of the value to allow the value to propagate out.
Declared at: llvm/include/llvm/TableGen/Record.h:795