LLVM API Documentation
#include <Record.h>
Public Types | |
enum | BinaryOp { ADD, SHL, SRA, SRL, STRCONCAT, CONCAT, EQ } |
Public Member Functions | |
virtual OpInit * | clone (std::vector< Init * > &Operands) const |
virtual int | getNumOperands () const |
virtual Init * | getOperand (int i) const |
BinaryOp | getOpcode () const |
Init * | getLHS () const |
Init * | getRHS () const |
virtual Init * | Fold (Record *CurRec, MultiClass *CurMultiClass) const |
virtual Init * | resolveReferences (Record &R, const RecordVal *RV) const |
virtual std::string | getAsString () const |
getAsString - Convert this value to a string form. More... | |
![]() | |
virtual Init * | convertInitializerTo (RecTy *Ty) const |
virtual Init * | resolveListElementReference (Record &R, const RecordVal *RV, unsigned Elt) const |
virtual Init * | getBit (unsigned Bit) const |
![]() | |
RecTy * | getType () const |
virtual Init * | convertInitializerBitRange (const std::vector< unsigned > &Bits) const |
virtual Init * | convertInitListSlice (const std::vector< unsigned > &Elements) const |
virtual RecTy * | getFieldType (const std::string &FieldName) const |
![]() | |
InitKind | getKind () const |
virtual | ~Init () |
virtual bool | isComplete () const |
void | print (raw_ostream &OS) const |
print - Print out this value. More... | |
virtual std::string | getAsUnquotedString () const |
void | dump () const |
virtual Init * | getFieldInit (Record &R, const RecordVal *RV, const std::string &FieldName) const |
virtual Init * | getBitVar () const |
virtual unsigned | getBitNum () const |
Static Public Member Functions | |
static bool | classof (const Init *I) |
static BinOpInit * | get (BinaryOp opc, Init *lhs, Init *rhs, RecTy *Type) |
![]() | |
static bool | classof (const Init *I) |
![]() | |
static bool | classof (const Init *I) |
Additional Inherited Members | |
![]() | |
enum | InitKind { IK_BitInit, IK_BitsInit, IK_FirstTypedInit, IK_DagInit, IK_DefInit, IK_FieldInit, IK_IntInit, IK_ListInit, IK_FirstOpInit, IK_BinOpInit, IK_TernOpInit, IK_UnOpInit, IK_LastOpInit, IK_StringInit, IK_VarInit, IK_VarListElementInit, IK_LastTypedInit, IK_UnsetInit, IK_VarBitInit } |
Discriminator enum (for isa<>, dyn_cast<>, et al.) More... | |
![]() | |
OpInit (InitKind K, RecTy *Type) | |
![]() | |
TypedInit (InitKind K, RecTy *T) | |
![]() | |
Init (InitKind K) | |
Definition at line 942 of file Record.h.
References llvm::Init::getKind(), and llvm::Init::IK_BinOpInit.
Implements llvm::OpInit.
Definition at line 949 of file Record.h.
References get(), getOpcode(), and llvm::TypedInit::getType().
|
virtual |
Implements llvm::OpInit.
Definition at line 897 of file Record.cpp.
References ADD, CONCAT, llvm::Init::convertInitializerTo(), llvm::dyn_cast(), EQ, llvm::IntRecTy::get(), llvm::IntInit::get(), llvm::StringInit::get(), llvm::DagInit::get(), llvm::DagInit::getArg(), llvm::DagInit::getArgName(), llvm::DefInit::getDef(), llvm::DagInit::getNumArgs(), getOpcode(), llvm::DagInit::getOperator(), llvm::IntInit::getValue(), llvm::StringInit::getValue(), llvm_unreachable, llvm::PrintFatalError(), SHL, SRA, SRL, and STRCONCAT.
Referenced by llvm::QualifyName(), and resolveReferences().
Definition at line 880 of file Record.cpp.
References I.
Referenced by clone(), llvm::StringRecTy::convertValue(), llvm::DagRecTy::convertValue(), llvm::QualifyName(), and resolveReferences().
|
virtual |
getAsString - Convert this value to a string form.
Implements llvm::Init.
Definition at line 981 of file Record.cpp.
References ADD, CONCAT, EQ, llvm::Init::getAsString(), SHL, SRA, SRL, and STRCONCAT.
|
inline |
Definition at line 966 of file Record.h.
Referenced by llvm::StringRecTy::convertValue(), llvm::DagRecTy::convertValue(), and getOperand().
|
inlinevirtual |
Implements llvm::OpInit.
|
inline |
Definition at line 965 of file Record.h.
Referenced by clone(), llvm::StringRecTy::convertValue(), llvm::DagRecTy::convertValue(), Fold(), and resolveReferences().
|
inlinevirtual |
Implements llvm::OpInit.
|
inline |
Definition at line 967 of file Record.h.
Referenced by llvm::StringRecTy::convertValue(), llvm::DagRecTy::convertValue(), and getOperand().
resolveReferences - 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.
Reimplemented from llvm::Init.
Definition at line 972 of file Record.cpp.
References Fold(), get(), getOpcode(), llvm::TypedInit::getType(), and llvm::Init::resolveReferences().