LLVM API Documentation
#include <Record.h>
Public Member Functions | |
Init * | convertInitializerTo (RecTy *Ty) const override |
Init * | getBit (unsigned Bit) const override |
Init * | resolveListElementReference (Record &R, const RecordVal *RV, unsigned Elt) const override |
Init * | resolveReferences (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 FieldInit * | get (Init *R, const std::string &FN) |
static FieldInit * | get (Init *R, const Init *FN) |
FieldInit - X.Y - Represent a reference to a subfield of a variable
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().