LLVM API Documentation

Public Member Functions | Static Public Member Functions
llvm::FieldInit Class Reference

#include <Record.h>

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

List of all members.

Public Member Functions

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

Static Public Member Functions

static bool classof (const Init *I)
static FieldInitget (Init *R, const std::string &FN)
static FieldInitget (Init *R, const Init *FN)

Detailed Description

FieldInit - X.Y - Represent a reference to a subfield of a variable

Definition at line 1227 of file Record.h.


Member Function Documentation

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

Reimplemented from llvm::TypedInit.

Definition at line 1240 of file Record.h.

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

Init* llvm::FieldInit::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 1246 of file Record.h.

References llvm::RecTy::convertValue().

FieldInit * FieldInit::get ( Init R,
const std::string &  FN 
) [static]

Definition at line 1506 of file Record.cpp.

References I.

Referenced by getBit(), and resolveReferences().

static FieldInit* llvm::FieldInit::get ( Init R,
const Init FN 
) [static]
std::string llvm::FieldInit::getAsString ( ) const [inline, override, virtual]

getAsString - Convert this value to a string form.

Implements llvm::Init.

Definition at line 1257 of file Record.h.

References llvm::Init::getAsString().

Init * FieldInit::getBit ( unsigned  Bit) const [override, virtual]

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

Implements llvm::Init.

Definition at line 1518 of file Record.cpp.

References llvm::BitRecTy::get(), get(), and llvm::TypedInit::getType().

Init * FieldInit::resolveListElementReference ( Record R,
const RecordVal RV,
unsigned  Elt 
) const [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 1524 of file Record.cpp.

References llvm::Init::getFieldInit(), and LI.

Init * FieldInit::resolveReferences ( Record R,
const RecordVal RV 
) const [override, virtual]

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 1540 of file Record.cpp.

References get(), llvm::Init::getFieldInit(), llvm::Init::isComplete(), and llvm::Init::resolveReferences().


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