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:

protected Opc

Method Overview

Inherited from TypedInit:

Inherited from Init:

Methods

StringInit(const llvm::StringInit&)

Declared at: llvm/include/llvm/TableGen/Record.h:601

Parameters

const llvm::StringInit&

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

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)

Declared at: llvm/include/llvm/TableGen/Record.h:608

Parameters

llvm::StringRef

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

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

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

Declared at: llvm/include/llvm/TableGen/Record.h:610

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