class StringInit
Declaration
class StringInit : public TypedInit { /* full declaration omitted */ };
Description
"foo" - Represent an initialization by a string value.
Declared at: llvm/include/llvm/TableGen/Record.h:594
Inherits from: TypedInit
Member Variables
Inherited from Init:
Method Overview
- public StringInit(const llvm::StringInit &)
- public static bool classof(const llvm::Init * I)
- public llvm::Init * convertInitializerTo(llvm::RecTy * Ty) const
- public static llvm::StringInit * get(llvm::StringRef)
- public std::string getAsString() const
- public std::string getAsUnquotedString() const
- public llvm::Init * getBit(unsigned int Bit) const
- public llvm::StringRef getValue() const
- public bool isConcrete() const
Inherited from TypedInit:
- public classof
- public convertInitListSlice
- public convertInitializerBitRange
- public convertInitializerTo
- public getCastTo
- public getFieldType
- public getType
Inherited from Init:
- public convertInitListSlice
- public convertInitializerBitRange
- public convertInitializerTo
- public dump
- public getAsString
- public getAsUnquotedString
- public getBit
- public getCastTo
- public getFieldType
- public getKind
- public isComplete
- public isConcrete
- public print
- public resolveReferences
Methods
¶StringInit(const llvm::StringInit&)
StringInit(const llvm::StringInit&)
Declared at: llvm/include/llvm/TableGen/Record.h:601
Parameters
- const llvm::StringInit&
¶static bool classof(const llvm::Init* I)
static bool classof(const llvm::Init* I)
Declared at: llvm/include/llvm/TableGen/Record.h:604
Parameters
- const llvm::Init* I
¶llvm::Init* convertInitializerTo(
llvm::RecTy* Ty) const
llvm::Init* convertInitializerTo(
llvm::RecTy* Ty) const
Description
Convert to an initializer whose type is-a Ty, or return nullptr if this is not possible (this can happen if the initializer's type is convertible to Ty, but there are unresolved references).
Declared at: llvm/include/llvm/TableGen/Record.h:612
Parameters
- llvm::RecTy* Ty
¶static llvm::StringInit* get(llvm::StringRef)
static llvm::StringInit* get(llvm::StringRef)
Declared at: llvm/include/llvm/TableGen/Record.h:608
Parameters
¶std::string getAsString() const
std::string getAsString() const
Description
Convert this value to a string form.
Declared at: llvm/include/llvm/TableGen/Record.h:615
¶std::string getAsUnquotedString() const
std::string getAsUnquotedString() const
Description
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.
Declared at: llvm/include/llvm/TableGen/Record.h:617
¶llvm::Init* getBit(unsigned int Bit) const
llvm::Init* getBit(unsigned int Bit) const
Description
This method is used to return the initializer for the specified bit.
Declared at: llvm/include/llvm/TableGen/Record.h:619
Parameters
- unsigned int Bit
¶llvm::StringRef getValue() const
llvm::StringRef getValue() const
Declared at: llvm/include/llvm/TableGen/Record.h:610
¶bool isConcrete() const
bool isConcrete() const
Description
Is this a concrete and fully resolved value without any references or stuck operations? Unset values are concrete.
Declared at: llvm/include/llvm/TableGen/Record.h:614