class CodeInit

Declaration

class CodeInit : public TypedInit { /* full declaration omitted */ };

Description

This is the common super-class of types that have a specific, explicit, type.

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

Inherits from: TypedInit

Member Variables

Inherited from Init:

protected Opc

Method Overview

Inherited from TypedInit:

Inherited from Init:

Methods

CodeInit(const llvm::StringInit&)

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

Parameters

const llvm::StringInit&

static bool classof(const llvm::Init* I)

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

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:645

Parameters

llvm::RecTy* Ty

static llvm::CodeInit* get(llvm::StringRef,
                           const llvm::SMLoc& Loc)

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

Parameters

llvm::StringRef
const llvm::SMLoc& Loc

std::string getAsString() const

Description

Convert this value to a string form.

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

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:652

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:654

Parameters

unsigned int Bit

const llvm::SMLoc& getLoc() const

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

llvm::StringRef getValue() const

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

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:647