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

Inherits from: TypedInit

Member Variables

private llvm::Record* Def

Inherited from Init:

protected Opc

Method Overview

  • private DefInit(llvm::Record * D)
  • 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(llvm::Record* D)

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

Parameters

llvm::Record* D

DefInit(const llvm::DefInit&)

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

Parameters

const llvm::DefInit&

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

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

Parameters

const llvm::Init* I

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

Parameters

llvm::RecTy* Ty

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

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

Parameters

llvm::Record*

std::string getAsString() const

Description

Convert this value to a literal form.

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

llvm::Init* getBit(unsigned int Bit) const

Description

Get the \p Init value of the specified bit.

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

Parameters

unsigned int Bit

llvm::Record* getDef() const

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

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

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