LLVM API Documentation
#include <Record.h>
Public Member Functions | |
const std::string & | getValue () const |
Init * | convertInitializerTo (RecTy *Ty) const override |
std::string | getAsString () const override |
getAsString - Convert this value to a string form. | |
std::string | getAsUnquotedString () const override |
Init * | resolveListElementReference (Record &R, const RecordVal *RV, unsigned Elt) const override |
Init * | getBit (unsigned Bit) const override |
Static Public Member Functions | |
static bool | classof (const Init *I) |
static StringInit * | get (StringRef) |
StringInit - "foo" - Represent an initialization by a string value.
static bool llvm::StringInit::classof | ( | const Init * | I | ) | [inline, static] |
Reimplemented from llvm::TypedInit.
Definition at line 761 of file Record.h.
References llvm::Init::getKind(), and llvm::Init::IK_StringInit.
Init* llvm::StringInit::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 768 of file Record.h.
References llvm::RecTy::convertValue().
StringInit * StringInit::get | ( | StringRef | V | ) | [static] |
Definition at line 615 of file Record.cpp.
References I.
Referenced by llvm::Record::addTemplateArg(), llvm::UnOpInit::Fold(), llvm::Record::getValue(), llvm::Record::isTemplateArg(), llvm::QualifyName(), llvm::Record::removeValue(), and llvm::Record::setName().
std::string llvm::StringInit::getAsString | ( | ) | const [inline, override, virtual] |
getAsString - Convert this value to a string form.
Implements llvm::Init.
std::string llvm::StringInit::getAsUnquotedString | ( | ) | const [inline, override, virtual] |
getAsUnquotedString - Convert this value to a string form, without adding quote markers. This primaruly affects StringInits where we will not surround the string value with quotes.
Reimplemented from llvm::Init.
Init* llvm::StringInit::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 783 of file Record.h.
References llvm_unreachable.
const std::string& llvm::StringInit::getValue | ( | ) | const [inline] |
Definition at line 766 of file Record.h.
Referenced by llvm::BinOpInit::Fold(), llvm::VarInit::getName(), llvm::RecordVal::getName(), and llvm::Record::getName().
Init* llvm::StringInit::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 778 of file Record.h.
References llvm_unreachable.