LLVM: llvm::ListInit Class Reference (original) (raw)

[AL, AH, CL] - Represent a list of defs More...

#include "[llvm/TableGen/Record.h](TableGen%5F2Record%5F8h%5Fsource.html)"

Public Member Functions
ListInit (const ListInit &)=delete
ListInit & operator= (const ListInit &)=delete
void operator delete (void *Ptr)
void Profile (FoldingSetNodeID &ID) const
ArrayRef< const Init * > getElements () const
ArrayRef< const Init * > getValues () const
const Init * getElement (unsigned Idx) const
const RecTy * getElementType () const
const Record * getElementAsRecord (unsigned Idx) const
const Init * convertInitializerTo (const RecTy *Ty) const override
Convert to a value whose type is Ty, or return null if this is not possible.
const Init * resolveReferences (Resolver &R) const override
This method is used by classes that refer to other variables which may not be defined at the time they expression is formed.
bool isComplete () const override
Is this a complete value with no unset (uninitialized) subvalues?
bool isConcrete () const override
Is this a concrete and fully resolved value without any references or stuck operations?
std::string getAsString () const override
Convert this value to a literal form.
const_iterator begin () const
const_iterator end () const
size_t size () const
bool empty () const
const Init * getBit (unsigned Bit) const override
Get the Init value of the specified bit.
Public Member Functions inherited from llvm::TypedInit
TypedInit (const TypedInit &)=delete
TypedInit & operator= (const TypedInit &)=delete
const RecTy * getType () const
Get the type of the Init as a RecTy.
RecordKeeper & getRecordKeeper () const
Get the record keeper that initialized this Init.
const Init * getCastTo (const RecTy *Ty) const override
If this value is convertible to type Ty, return a value whose type is Ty, generating a !cast operation if required.
const Init * convertInitializerTo (const RecTy *Ty) const override
Convert to a value whose type is Ty, or return null if this is not possible.
const Init * convertInitializerBitRange (ArrayRef< unsigned > Bits) const override
This function is used to implement the bit range selection operator.
const RecTy * getFieldType (const StringInit *FieldName) const override
This method is used to implement the FieldInit class.
Public Member Functions inherited from llvm::Init
InitKind getKind () const
Get the kind (type) of the value.
RecordKeeper & getRecordKeeper () const
Get the record keeper that initialized this Init.
Init (const Init &)=delete
Init & operator= (const Init &)=delete
virtual ~Init ()=default
void print (raw_ostream &OS) const
Print this value.
virtual std::string getAsUnquotedString () const
Convert this value to a literal form, without adding quotes around a string.
void dump () const
Debugging method that may be called through a debugger; just invokes print on stderr.
Public Member Functions inherited from llvm::FoldingSetBase::Node
Node ()=default
void * getNextInBucket () const
void SetNextInBucket (void *N)
Additional Inherited Members
Protected Types inherited from llvm::Init
enum InitKind : uint8_t { IK_First, IK_FirstTypedInit, IK_BitInit, IK_BitsInit, IK_DagInit, IK_DefInit, IK_FieldInit, IK_IntInit, IK_ListInit, IK_FirstOpInit, IK_BinOpInit, IK_TernOpInit, IK_UnOpInit, IK_LastOpInit, IK_CondOpInit, IK_FoldOpInit, IK_IsAOpInit, IK_ExistsOpInit, IK_InstancesOpInit, IK_AnonymousNameInit, IK_StringInit, IK_VarInit, IK_VarBitInit, IK_VarDefInit, IK_LastTypedInit, IK_UnsetInit, IK_ArgumentInit }
Discriminator enum (for isa<>, dyn_cast<>, et al.) More...
Protected Member Functions inherited from llvm::TypedInit
TypedInit (InitKind K, const RecTy *T, uint8_t Opc=0)
Protected Member Functions inherited from llvm::Init
Init (InitKind K, uint8_t Opc=0)
Protected Attributes inherited from llvm::Init
uint8_t Opc

[AL, AH, CL] - Represent a list of defs

Definition at line 749 of file Record.h.

const_iterator

begin()

const_iterator llvm::ListInit::begin ( ) const inline

classof()

convertInitializerTo()

empty()

bool llvm::ListInit::empty ( ) const inline

end()

const_iterator llvm::ListInit::end ( ) const inline

get()

Definition at line 714 of file Record.cpp.

References detail::RecordKeeperImpl::Allocator, assert(), llvm::cast(), llvm::FoldingSetImpl< Derived, T >::FindNodeOrInsertPos(), llvm::RecordKeeper::getImpl(), llvm::RecTy::getRecordKeeper(), I, llvm::FoldingSetImpl< Derived, T >::InsertNode(), llvm::isa(), ProfileListInit(), detail::RecordKeeperImpl::TheListInitPool, and llvm::TrailingObjects< ListInit, const Init * >::totalSizeToAlloc().

Referenced by ConcatListInits(), convertInitializerTo(), FilterHelper(), llvm::BinOpInit::Fold(), llvm::InstancesOpInit::Fold(), llvm::TernOpInit::Fold(), llvm::UnOpInit::Fold(), ForeachHelper(), and resolveReferences().

getAsString()

std::string ListInit::getAsString ( ) const overridevirtual

getBit()

getElement()

getElementAsRecord()

getElements()

getElementType()

const RecTy * llvm::ListInit::getElementType ( ) const inline

getValues()

isComplete()

bool ListInit::isComplete ( ) const overridevirtual

isConcrete()

bool ListInit::isConcrete ( ) const overridevirtual

operator delete()

void llvm::ListInit::operator delete ( void * Ptr) inline

operator=()

Profile()

resolveReferences()

size()

size_t llvm::ListInit::size ( ) const inline

The documentation for this class was generated from the following files: