LLVM API Documentation
#include <Record.h>
Public Types | |
enum | UnaryOp { CAST, HEAD, TAIL, EMPTY } |
Public Member Functions | |
virtual OpInit * | clone (std::vector< Init * > &Operands) const |
virtual int | getNumOperands () const |
virtual Init * | getOperand (int i) const |
UnaryOp | getOpcode () const |
Init * | getOperand () 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 UnOpInit * | get (UnaryOp opc, Init *lhs, 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 896 of file Record.h.
References llvm::Init::getKind(), and llvm::Init::IK_UnOpInit.
Implements llvm::OpInit.
Definition at line 902 of file Record.h.
References get(), getOpcode(), and llvm::TypedInit::getType().
|
virtual |
Implements llvm::OpInit.
Definition at line 751 of file Record.cpp.
References llvm::sys::path::begin(), llvm::StringRef::begin(), CAST, EMPTY, llvm::sys::path::end(), llvm::StringRef::end(), llvm::IntInit::get(), llvm::StringInit::get(), llvm::ListInit::get(), llvm::VarInit::get(), llvm::DefInit::get(), getAsString(), getDef(), llvm::Record::getLoc(), getOpcode(), llvm::Record::getRecords(), llvm::TypedInit::getType(), llvm::RecordVal::getType(), llvm::Record::getValue(), HEAD, llvm::Record::isTemplateArg(), llvm::PrintFatalError(), llvm::QualifyName(), llvm::MultiClass::Rec, and TAIL.
Referenced by resolveReferences().
Definition at line 740 of file Record.cpp.
References I.
Referenced by clone(), llvm::StringRecTy::convertValue(), llvm::DagRecTy::convertValue(), and resolveReferences().
|
virtual |
getAsString - Convert this value to a string form.
Implements llvm::Init.
Definition at line 869 of file Record.cpp.
References CAST, EMPTY, llvm::RecTy::getAsString(), llvm::Init::getAsString(), llvm::TypedInit::getType(), HEAD, and TAIL.
Referenced by Fold().
|
inlinevirtual |
Implements llvm::OpInit.
|
inline |
Definition at line 914 of file Record.h.
Referenced by clone(), llvm::StringRecTy::convertValue(), llvm::DagRecTy::convertValue(), Fold(), and resolveReferences().
|
inlinevirtual |
Implements llvm::OpInit.
Definition at line 909 of file Record.h.
References getOperand().
Referenced by llvm::StringRecTy::convertValue(), and llvm::DagRecTy::convertValue().
|
inline |
Definition at line 915 of file Record.h.
Referenced by 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 861 of file Record.cpp.
References Fold(), get(), getOpcode(), llvm::TypedInit::getType(), and llvm::Init::resolveReferences().