class TypedInit

Declaration

class TypedInit : public Init { /* 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:425

Inherits from: Init

Member Variables

Inherited from Init:

protected Opc

Method Overview

Inherited from Init:

Methods

TypedInit(llvm::Init::InitKind K,
          llvm::RecTy* T,
          uint8_t Opc = 0)

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

Parameters

llvm::Init::InitKind K
llvm::RecTy* T
uint8_t Opc = 0

TypedInit(const llvm::TypedInit&)

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

Parameters

const llvm::TypedInit&

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

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

Parameters

const llvm::Init* I

llvm::Init* convertInitListSlice(
    ArrayRef<unsigned int> Elements) const

Description

This method is used to implement the list slice selection operator. Given an initializer, it selects the specified list elements, returning them as a new init of list type. If it is not legal to take a slice of this, return null.

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

Parameters

ArrayRef<unsigned int> Elements

llvm::Init* convertInitializerBitRange(
    ArrayRef<unsigned int> Bits) const

Description

This method is used to implement the bitrange selection operator. Given an initializer, it selects the specified bits out, returning them as a new init of bits type. If it is not legal to use the bit subscript operator on this initializer, return null.

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

Parameters

ArrayRef<unsigned int> Bits

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

Parameters

llvm::RecTy* Ty

llvm::Init* getCastTo(llvm::RecTy* Ty) const

Description

If this initializer is convertible to Ty, return an initializer whose type is-a Ty, generating a !cast operation if required. Otherwise, return nullptr.

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

Parameters

llvm::RecTy* Ty

llvm::RecTy* getFieldType(
    llvm::StringInit* FieldName) const

Description

This method is used to implement the FieldInit class. Implementors of this method should return the type of the named field if they are of record type.

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

Parameters

llvm::StringInit* FieldName

llvm::RecTy* getType() const

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