LLVM API Documentation
#include <Record.h>


Public Member Functions | |
| virtual Init * | convertInitializerTo (RecTy *Ty) const |
| Record * | getDef () const |
| virtual RecTy * | getFieldType (const std::string &FieldName) const |
| virtual Init * | getFieldInit (Record &R, const RecordVal *RV, const std::string &FieldName) const |
| virtual std::string | getAsString () const |
| getAsString - Convert this value to a string form. | |
| virtual Init * | getBit (unsigned Bit) const |
| virtual Init * | resolveListElementReference (Record &R, const RecordVal *RV, unsigned Elt) const |
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
Reimplemented from llvm::TypedInit.
Definition at line 1184 of file Record.h.
References llvm::Init::getKind(), and llvm::Init::IK_DefInit.
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 1189 of file Record.h.
References llvm::RecTy::convertValue().
Definition at line 1459 of file Record.cpp.
References llvm::Record::getDefInit().
Referenced by llvm::UnOpInit::Fold().
| std::string DefInit::getAsString | ( | ) | const [virtual] |
getAsString - Convert this value to a string form.
Implements llvm::Init.
Definition at line 1475 of file Record.cpp.
References llvm::Record::getName().
Referenced by llvm::TernOpInit::Fold().
getBit - This method is used to return the initializer for the specified bit.
Implements llvm::Init.
Definition at line 1203 of file Record.h.
References llvm_unreachable.
| Record* llvm::DefInit::getDef | ( | ) | const [inline] |
Definition at line 1193 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 [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 1469 of file Record.cpp.
References llvm::RecordVal::getValue(), and llvm::Record::getValue().
| RecTy * DefInit::getFieldType | ( | const std::string & | FieldName | ) | const [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 1463 of file Record.cpp.
References llvm::Record::getValue().
| virtual Init* llvm::DefInit::resolveListElementReference | ( | Record & | R, |
| const RecordVal * | RV, | ||
| unsigned | Elt | ||
| ) | const [inline, 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 1210 of file Record.h.
References llvm_unreachable.