LLVM API Documentation
#include <Record.h>
Public Member Functions | |
Init * | convertInitializerTo (RecTy *Ty) const override |
Record * | getDef () const |
RecTy * | getFieldType (const std::string &FieldName) const override |
Init * | getFieldInit (Record &R, const RecordVal *RV, const std::string &FieldName) const override |
std::string | getAsString () const override |
getAsString - Convert this value to a string form. | |
Init * | getBit (unsigned Bit) const override |
Init * | resolveListElementReference (Record &R, const RecordVal *RV, unsigned Elt) const override |
Static Public Member Functions | |
static bool | classof (const Init *I) |
static DefInit * | get (Record *) |
Friends | |
class | Record |
DefInit - AL - Represent a reference to a 'def' in the description
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.