class DefInit

Declaration

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

Description

AL - Represent a reference to a 'def' in the description

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

Inherits from: TypedInit

Member Variables

Inherited from Init:

protected Opc

Method Overview

  • public DefInit(const llvm::DefInit &)
  • public static bool classof(const llvm::Init * I)
  • public llvm::Init * convertInitializerTo(llvm::RecTy * Ty) const
  • public static llvm::DefInit * get(llvm::Record *)
  • public std::string getAsString() const
  • public llvm::Init * getBit(unsigned int Bit) const
  • public llvm::Record * getDef() const
  • public llvm::RecTy * getFieldType(llvm::StringInit * FieldName) const
  • public bool isConcrete() const

Inherited from TypedInit:

Inherited from Init:

Methods

DefInit(const llvm::DefInit&)

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

Parameters

const llvm::DefInit&

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

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

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

Parameters

llvm::RecTy* Ty

static llvm::DefInit* get(llvm::Record*)

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

Parameters

llvm::Record*

std::string getAsString() const

Description

Convert this value to a string form.

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

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

Parameters

unsigned int Bit

llvm::Record* getDef() const

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

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

Parameters

llvm::StringInit* FieldName

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