class TypedInit

Declaration

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

Description

This is the common superclass of types that have a specific, explicit type, stored in ValueTy.

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

Inherits from: Init

Member Variables

private llvm::RecTy* ValueTy

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

Parameters

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

TypedInit(const llvm::TypedInit&)

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

Parameters

const llvm::TypedInit&

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

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

Parameters

const llvm::Init* I

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

Description

This function is used to implement the list slice selection operator. Given a value, it selects the specified list elements, returning them as a new \p Init of type \p list. If it is not legal to use the slice operator, null is returned.

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

Parameters

ArrayRef<unsigned int> Elements

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

Description

This function is used to implement the bit range selection operator. Given a value, it selects the specified bits, returning them as a new \p Init of type \p bits. If it is not legal to use the bit selection operator on this value, null is returned.

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

Parameters

ArrayRef<unsigned int> Bits

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

Description

Convert to a value whose type is \p Ty, or return null if this is not possible. This can happen if the value's type is convertible to \p 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 value is convertible to type \p Ty, return a value whose type is \p Ty, generating a !cast operation if required. Otherwise, return null.

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 type record.

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

Parameters

llvm::StringInit* FieldName

llvm::RecordKeeper& getRecordKeeper() const

Description

Get the record keeper that initialized this Init.

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

llvm::RecTy* getType() const

Description

Get the type of the Init as a RecTy.

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