LLVM API Documentation

Public Member Functions | Static Public Member Functions | Friends
llvm::DefInit Class Reference

#include <Record.h>

Inheritance diagram for llvm::DefInit:
Inheritance graph
[legend]
Collaboration diagram for llvm::DefInit:
Collaboration graph
[legend]

List of all members.

Public Member Functions

InitconvertInitializerTo (RecTy *Ty) const override
RecordgetDef () const
RecTygetFieldType (const std::string &FieldName) const override
InitgetFieldInit (Record &R, const RecordVal *RV, const std::string &FieldName) const override
std::string getAsString () const override
 getAsString - Convert this value to a string form.
InitgetBit (unsigned Bit) const override
InitresolveListElementReference (Record &R, const RecordVal *RV, unsigned Elt) const override

Static Public Member Functions

static bool classof (const Init *I)
static DefInitget (Record *)

Friends

class Record

Detailed Description

DefInit - AL - Represent a reference to a 'def' in the description

Definition at line 1183 of file Record.h.


Member Function Documentation

static bool llvm::DefInit::classof ( const Init I) [inline, static]

Reimplemented from llvm::TypedInit.

Definition at line 1193 of file Record.h.

References llvm::Init::getKind(), and llvm::Init::IK_DefInit.

Init* llvm::DefInit::convertInitializerTo ( RecTy Ty) const [inline, override, virtual]

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 1198 of file Record.h.

References llvm::RecTy::convertValue().

DefInit * DefInit::get ( Record R) [static]

Definition at line 1486 of file Record.cpp.

References llvm::Record::getDefInit().

Referenced by llvm::UnOpInit::Fold().

std::string DefInit::getAsString ( ) const [override, virtual]

getAsString - Convert this value to a string form.

Implements llvm::Init.

Definition at line 1502 of file Record.cpp.

References llvm::Record::getName().

Referenced by llvm::TernOpInit::Fold().

Init* llvm::DefInit::getBit ( unsigned  Bit) const [inline, override, virtual]

getBit - This method is used to return the initializer for the specified bit.

Implements llvm::Init.

Definition at line 1212 of file Record.h.

References llvm_unreachable.

Record* llvm::DefInit::getDef ( ) const [inline]

Definition at line 1202 of file Record.h.

References llvm::tgtok::Def.

Referenced by llvm::RecordRecTy::convertValue(), and llvm::BinOpInit::Fold().

Init * DefInit::getFieldInit ( Record R,
const RecordVal RV,
const std::string &  FieldName 
) const [override, virtual]

getFieldInit - This method complements getFieldType to return the initializer for the specified field. If getFieldType returns non-null this method should return non-null, otherwise it returns null.

Reimplemented from llvm::Init.

Definition at line 1496 of file Record.cpp.

References llvm::RecordVal::getValue(), and llvm::Record::getValue().

RecTy * DefInit::getFieldType ( const std::string &  FieldName) const [override, virtual]

getFieldType - This method is used to implement the FieldInit class. Implementors of this method should return the type of the named field if they are of record type.

Reimplemented from llvm::TypedInit.

Definition at line 1490 of file Record.cpp.

References llvm::Record::getValue().

Init* llvm::DefInit::resolveListElementReference ( Record R,
const RecordVal RV,
unsigned  Elt 
) const [inline, override, virtual]

resolveListElementReference - This method is used to implement VarListElementInit::resolveReferences. If the list element is resolvable now, we return the resolved value, otherwise we return null.

Implements llvm::TypedInit.

Definition at line 1219 of file Record.h.

References llvm_unreachable.


Friends And Related Function Documentation

friend class Record [friend]

Definition at line 1187 of file Record.h.


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