LLVM API Documentation
#include <Record.h>
Public Member Functions | |
void | Profile (FoldingSetNodeID &ID) const |
unsigned | getNumBits () const |
virtual Init * | convertInitializerTo (RecTy *Ty) const |
virtual Init * | convertInitializerBitRange (const std::vector< unsigned > &Bits) const |
virtual bool | isComplete () const |
bool | allInComplete () const |
virtual std::string | getAsString () const |
getAsString - Convert this value to a string form. More... | |
virtual Init * | resolveReferences (Record &R, const RecordVal *RV) const |
virtual Init * | getBit (unsigned Bit) const |
![]() | |
InitKind | getKind () const |
virtual | ~Init () |
void | print (raw_ostream &OS) const |
print - Print out this value. More... | |
virtual std::string | getAsUnquotedString () const |
void | dump () const |
virtual Init * | convertInitListSlice (const std::vector< unsigned > &Elements) const |
virtual RecTy * | getFieldType (const std::string &FieldName) const |
virtual Init * | getFieldInit (Record &R, const RecordVal *RV, const std::string &FieldName) const |
virtual Init * | getBitVar () const |
virtual unsigned | getBitNum () const |
![]() | |
Node () | |
void * | getNextInBucket () const |
void | SetNextInBucket (void *N) |
Static Public Member Functions | |
static bool | classof (const Init *I) |
static BitsInit * | get (ArrayRef< Init * > Range) |
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... | |
![]() | |
Init (InitKind K) | |
BitsInit - { a, b, c } - Represents an initializer for a BitsRecTy value. It contains a vector of bits, whose size is determined by the type.
|
inline |
Definition at line 681 of file Record.h.
References getBit(), getNumBits(), and llvm::Init::isComplete().
Definition at line 661 of file Record.h.
References llvm::Init::getKind(), and llvm::Init::IK_BitsInit.
convertInitializerBitRange - This method is used to implement the bitrange selection operator. Given an initializer, it selects the specified bits out, returning them as a new init of bits type. If it is not legal to use the bit subscript operator on this initializer, return null.
Reimplemented from llvm::Init.
Definition at line 480 of file Record.cpp.
References get(), getBit(), and getNumBits().
convertInitializerTo - This virtual function is a simple call-back function that should be overridden to call the appropriate RecTy::convertValue method.
Implements llvm::Init.
Definition at line 670 of file Record.h.
References llvm::RecTy::convertValue().
Definition at line 458 of file Record.cpp.
References I, and ProfileBitsInit().
Referenced by llvm::TypedInit::convertInitializerBitRange(), convertInitializerBitRange(), llvm::IntInit::convertInitializerBitRange(), llvm::BitsRecTy::convertValue(), and resolveReferences().
|
virtual |
getAsString - Convert this value to a string form.
Implements llvm::Init.
Definition at line 491 of file Record.cpp.
References llvm::tgtok::Bit, getBit(), and getNumBits().
getBit - This method is used to return the initializer for the specified bit.
Implements llvm::Init.
Definition at line 690 of file Record.h.
References llvm::tgtok::Bit.
Referenced by allInComplete(), convertInitializerBitRange(), llvm::BitRecTy::convertValue(), llvm::IntRecTy::convertValue(), getAsString(), and isComplete().
|
inline |
Definition at line 668 of file Record.h.
Referenced by allInComplete(), convertInitializerBitRange(), llvm::BitRecTy::convertValue(), llvm::BitsRecTy::convertValue(), llvm::IntRecTy::convertValue(), getAsString(), isComplete(), and resolveReferences().
|
inlinevirtual |
isComplete - This virtual method should be overridden by values that may not be completely specified yet.
Reimplemented from llvm::Init.
Definition at line 676 of file Record.h.
References getBit(), getNumBits(), and llvm::Init::isComplete().
void BitsInit::Profile | ( | FoldingSetNodeID & | ID | ) | const |
Definition at line 475 of file Record.cpp.
References ProfileBitsInit().
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 515 of file Record.cpp.
References llvm::tgtok::Bit, fixBitInit(), get(), llvm::Init::getBit(), llvm::Init::getBitNum(), llvm::Init::getBitVar(), getNumBits(), and llvm::Init::resolveReferences().