|
LLVM
4.0.0
|
#include <Record.h>
Public Member Functions | |
| Record (Init *N, ArrayRef< SMLoc > locs, RecordKeeper &records, bool Anonymous=false) | |
| Record (StringRef N, ArrayRef< SMLoc > locs, RecordKeeper &records, bool Anonymous=false) | |
| Record (const Record &O) | |
| unsigned | getID () const |
| StringRef | getName () const |
| Init * | getNameInit () const |
| const std::string | getNameInitAsString () const |
| void | setName (Init *Name) |
| void | setName (StringRef Name) |
| ArrayRef< SMLoc > | getLoc () const |
| DefInit * | getDefInit () |
| get the corresponding DefInit. More... | |
| ArrayRef< Init * > | getTemplateArgs () const |
| ArrayRef< RecordVal > | getValues () const |
| ArrayRef< std::pair< Record *, SMRange > > | getSuperClasses () const |
| bool | isTemplateArg (Init *Name) const |
| bool | isTemplateArg (StringRef Name) const |
| const RecordVal * | getValue (const Init *Name) const |
| const RecordVal * | getValue (StringRef Name) const |
| RecordVal * | getValue (const Init *Name) |
| RecordVal * | getValue (StringRef Name) |
| void | addTemplateArg (Init *Name) |
| void | addTemplateArg (StringRef Name) |
| void | addValue (const RecordVal &RV) |
| void | removeValue (Init *Name) |
| void | removeValue (StringRef Name) |
| bool | isSubClassOf (const Record *R) const |
| bool | isSubClassOf (StringRef Name) const |
| void | addSuperClass (Record *R, SMRange Range) |
| void | resolveReferences () |
| If there are any field references that refer to fields that have been filled in, we can propagate the values now. More... | |
| void | resolveReferencesTo (const RecordVal *RV) |
| If anything in this record refers to RV, replace the reference to RV with the RHS of RV. More... | |
| RecordKeeper & | getRecords () const |
| bool | isAnonymous () const |
| bool | isResolveFirst () const |
| void | setResolveFirst (bool b) |
| void | dump () const |
| Init * | getValueInit (StringRef FieldName) const |
| Return the initializer for a value with the specified name, or throw an exception if the field does not exist. More... | |
| bool | isValueUnset (StringRef FieldName) const |
| Return true if the named field is unset. More... | |
| std::string | getValueAsString (StringRef FieldName) const |
| This method looks up the specified field and returns its value as a string, throwing an exception if the field does not exist or if the value is not a string. More... | |
| BitsInit * | getValueAsBitsInit (StringRef FieldName) const |
| This method looks up the specified field and returns its value as a BitsInit, throwing an exception if the field does not exist or if the value is not the right type. More... | |
| ListInit * | getValueAsListInit (StringRef FieldName) const |
| This method looks up the specified field and returns its value as a ListInit, throwing an exception if the field does not exist or if the value is not the right type. More... | |
| std::vector< Record * > | getValueAsListOfDefs (StringRef FieldName) const |
| This method looks up the specified field and returns its value as a vector of records, throwing an exception if the field does not exist or if the value is not the right type. More... | |
| std::vector< int64_t > | getValueAsListOfInts (StringRef FieldName) const |
| This method looks up the specified field and returns its value as a vector of integers, throwing an exception if the field does not exist or if the value is not the right type. More... | |
| std::vector< std::string > | getValueAsListOfStrings (StringRef FieldName) const |
| This method looks up the specified field and returns its value as a vector of strings, throwing an exception if the field does not exist or if the value is not the right type. More... | |
| Record * | getValueAsDef (StringRef FieldName) const |
| This method looks up the specified field and returns its value as a Record, throwing an exception if the field does not exist or if the value is not the right type. More... | |
| bool | getValueAsBit (StringRef FieldName) const |
| This method looks up the specified field and returns its value as a bit, throwing an exception if the field does not exist or if the value is not the right type. More... | |
| bool | getValueAsBitOrUnset (StringRef FieldName, bool &Unset) const |
| This method looks up the specified field and returns its value as a bit. More... | |
| int64_t | getValueAsInt (StringRef FieldName) const |
| This method looks up the specified field and returns its value as an int64_t, throwing an exception if the field does not exist or if the value is not the right type. More... | |
| DagInit * | getValueAsDag (StringRef FieldName) const |
| This method looks up the specified field and returns its value as an Dag, throwing an exception if the field does not exist or if the value is not the right type. More... | |
Static Public Member Functions | |
| static unsigned | getNewUID () |
Definition at line 1434 of file Record.h.
References assert(), and isSubClassOf().
|
inline |
Definition at line 1381 of file Record.h.
References assert(), and isTemplateArg().
Referenced by addTemplateArg().
|
inline |
Definition at line 1386 of file Record.h.
References addTemplateArg(), and llvm::StringInit::get().
Definition at line 1390 of file Record.h.
References assert(), llvm::RecordVal::getNameInit(), getValue(), and std::swap().
| LLVM_DUMP_METHOD void Record::dump | ( | void | ) | const |
Definition at line 1676 of file Record.cpp.
References llvm::errs().
Referenced by llvm::MultiClass::dump().
| DefInit * Record::getDefInit | ( | ) |
get the corresponding DefInit.
Definition at line 1624 of file Record.cpp.
References Allocator.
Referenced by llvm::RecordRecTy::get(), and llvm::DefInit::get().
|
inline |
Definition at line 1322 of file Record.h.
Referenced by llvm::LessRecordByID::operator()().
Definition at line 1336 of file Record.h.
Referenced by llvm::UnOpInit::Fold(), ForeachHelper(), getValueAsBit(), getValueAsBitOrUnset(), getValueAsBitsInit(), getValueAsDag(), getValueAsDef(), getValueAsInt(), getValueAsListInit(), getValueAsListOfDefs(), getValueAsListOfInts(), getValueAsListOfStrings(), getValueAsString(), getValueInit(), and resolveReferencesTo().
| StringRef Record::getName | ( | ) | const |
Definition at line 1630 of file Record.cpp.
References getValue().
Referenced by llvm::RecordRecTy::getAsString(), llvm::DefInit::getAsString(), getValueAsBit(), getValueAsBitOrUnset(), getValueAsBitsInit(), getValueAsDag(), getValueAsDef(), getValueAsInt(), getValueAsListInit(), getValueAsListOfDefs(), getValueAsListOfInts(), getValueAsListOfStrings(), getValueAsString(), getValueInit(), llvm::LessRecord::operator()(), and llvm::LessRecordRegister::operator()().
|
inline |
Definition at line 1325 of file Record.h.
Referenced by getNameInitAsString(), llvm::QualifyName(), removeValue(), and resolveReferencesTo().
|
inline |
Definition at line 1329 of file Record.h.
References llvm::Init::getAsUnquotedString(), and getNameInit().
Referenced by llvm::operator<<().
|
inline |
Definition at line 1449 of file Record.h.
Referenced by llvm::UnOpInit::Fold().
Definition at line 1347 of file Record.h.
Referenced by llvm::SetTheory::expand(), llvm::operator<<(), and llvm::RecordRecTy::typeIsConvertibleTo().
Definition at line 1341 of file Record.h.
Referenced by llvm::operator<<().
Definition at line 1361 of file Record.h.
Referenced by addValue(), llvm::UnOpInit::Fold(), llvm::VarInit::getFieldInit(), llvm::DefInit::getFieldInit(), llvm::DefInit::getFieldType(), getName(), getValue(), getValueAsBit(), getValueAsBitOrUnset(), getValueAsBitsInit(), getValueAsDag(), getValueAsDef(), getValueAsInt(), getValueAsListInit(), getValueAsString(), getValueInit(), llvm::operator<<(), llvm::VarInit::resolveListElementReference(), and llvm::VarInit::resolveReferences().
Definition at line 1367 of file Record.h.
References llvm::StringInit::get(), and getValue().
Definition at line 1377 of file Record.h.
References llvm::StringInit::get(), and getValue().
This method looks up the specified field and returns its value as a bit, throwing an exception if the field does not exist or if the value is not the right type.
Definition at line 1827 of file Record.cpp.
References getLoc(), getName(), llvm::RecordVal::getValue(), getValue(), and llvm::PrintFatalError().
This method looks up the specified field and returns its value as a bit.
If the field is unset, sets Unset to true and returns false.
Definition at line 1839 of file Record.cpp.
References getLoc(), getName(), llvm::RecordVal::getValue(), getValue(), llvm::PrintFatalError(), and llvm::StringRef::str().
This method looks up the specified field and returns its value as a BitsInit, throwing an exception if the field does not exist or if the value is not the right type.
Definition at line 1737 of file Record.cpp.
References getLoc(), getName(), llvm::RecordVal::getValue(), getValue(), and llvm::PrintFatalError().
This method looks up the specified field and returns its value as an Dag, throwing an exception if the field does not exist or if the value is not the right type.
Definition at line 1856 of file Record.cpp.
References getLoc(), getName(), llvm::RecordVal::getValue(), getValue(), and llvm::PrintFatalError().
This method looks up the specified field and returns its value as a Record, throwing an exception if the field does not exist or if the value is not the right type.
Definition at line 1815 of file Record.cpp.
References getLoc(), getName(), llvm::RecordVal::getValue(), getValue(), and llvm::PrintFatalError().
| int64_t Record::getValueAsInt | ( | StringRef | FieldName | ) | const |
This method looks up the specified field and returns its value as an int64_t, throwing an exception if the field does not exist or if the value is not the right type.
Definition at line 1775 of file Record.cpp.
References getLoc(), getName(), llvm::RecordVal::getValue(), getValue(), and llvm::PrintFatalError().
This method looks up the specified field and returns its value as a ListInit, throwing an exception if the field does not exist or if the value is not the right type.
Definition at line 1749 of file Record.cpp.
References getLoc(), getName(), llvm::RecordVal::getValue(), getValue(), and llvm::PrintFatalError().
Referenced by getValueAsListOfDefs(), getValueAsListOfInts(), and getValueAsListOfStrings().
This method looks up the specified field and returns its value as a vector of records, throwing an exception if the field does not exist or if the value is not the right type.
Definition at line 1762 of file Record.cpp.
References getLoc(), getName(), getValueAsListInit(), llvm::ListInit::getValues(), I, List, and llvm::PrintFatalError().
| std::vector< int64_t > Record::getValueAsListOfInts | ( | StringRef | FieldName | ) | const |
This method looks up the specified field and returns its value as a vector of integers, throwing an exception if the field does not exist or if the value is not the right type.
Definition at line 1788 of file Record.cpp.
References getLoc(), getName(), getValueAsListInit(), llvm::ListInit::getValues(), I, List, and llvm::PrintFatalError().
| std::vector< std::string > Record::getValueAsListOfStrings | ( | StringRef | FieldName | ) | const |
This method looks up the specified field and returns its value as a vector of strings, throwing an exception if the field does not exist or if the value is not the right type.
Definition at line 1802 of file Record.cpp.
References getLoc(), getName(), getValueAsListInit(), llvm::ListInit::getValues(), I, List, llvm::PrintFatalError(), and SI.
| std::string Record::getValueAsString | ( | StringRef | FieldName | ) | const |
This method looks up the specified field and returns its value as a string, throwing an exception if the field does not exist or if the value is not a string.
Definition at line 1722 of file Record.cpp.
References getLoc(), getName(), llvm::RecordVal::getValue(), getValue(), llvm::PrintFatalError(), and SI.
Referenced by llvm::LessRecordFieldName::operator()().
Return the initializer for a value with the specified name, or throw an exception if the field does not exist.
Definition at line 1714 of file Record.cpp.
References getLoc(), getName(), llvm::RecordVal::getValue(), getValue(), and llvm::PrintFatalError().
Referenced by isValueUnset().
Definition at line 1345 of file Record.h.
Referenced by llvm::operator<<().
Definition at line 1415 of file Record.h.
Referenced by addSuperClass(), and llvm::RecordRecTy::typeIsConvertibleTo().
Definition at line 1351 of file Record.h.
References llvm::X86II::TA.
Referenced by addTemplateArg(), llvm::UnOpInit::Fold(), isTemplateArg(), llvm::operator<<(), and llvm::VarInit::resolveListElementReference().
Definition at line 1357 of file Record.h.
References llvm::StringInit::get(), and isTemplateArg().
Return true if the named field is unset.
Definition at line 1477 of file Record.h.
References getValueInit().
|
inline |
Definition at line 1402 of file Record.h.
References getNameInit(), i, and llvm_unreachable.
Referenced by removeValue().
|
inline |
Definition at line 1411 of file Record.h.
References llvm::StringInit::get(), and removeValue().
|
inline |
If there are any field references that refer to fields that have been filled in, we can propagate the values now.
Definition at line 1442 of file Record.h.
References resolveReferencesTo().
If anything in this record refers to RV, replace the reference to RV with the RHS of RV.
If RV is null, we resolve all possible references.
Definition at line 1654 of file Record.cpp.
References llvm::Init::getAsUnquotedString(), getLoc(), getNameInit(), llvm::RecordVal::getNameInitAsString(), llvm::RecordVal::getValue(), llvm::PrintFatalError(), llvm::Init::resolveReferences(), and setName().
Referenced by resolveReferences().
| void Record::setName | ( | Init * | Name | ) |
Definition at line 1634 of file Record.cpp.
Referenced by resolveReferencesTo(), and setName().
| void Record::setName | ( | StringRef | Name | ) |
Definition at line 1650 of file Record.cpp.
References llvm::StringInit::get(), and setName().
1.8.6