class FieldInit

Declaration

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

Description

X.Y - Represent a reference to a subfield of a variable

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

Inherits from: TypedInit

Member Variables

private llvm::Init* Rec
private llvm::StringInit* FieldName

Inherited from Init:

protected Opc

Method Overview

  • private FieldInit(llvm::Init * R, llvm::StringInit * FN)
  • public FieldInit(const llvm::FieldInit &)
  • public llvm::Init * Fold(llvm::Record * CurRec) const
  • public static bool classof(const llvm::Init * I)
  • public static llvm::FieldInit * get(llvm::Init * R, llvm::StringInit * FN)
  • public std::string getAsString() const
  • public llvm::Init * getBit(unsigned int Bit) const
  • public llvm::StringInit * getFieldName() const
  • public llvm::Init * getRecord() const
  • public bool isConcrete() const
  • public llvm::Init * resolveReferences(llvm::Resolver & R) const

Inherited from TypedInit:

Inherited from Init:

Methods

FieldInit(llvm::Init* R, llvm::StringInit* FN)

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

Parameters

llvm::Init* R
llvm::StringInit* FN

FieldInit(const llvm::FieldInit&)

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

Parameters

const llvm::FieldInit&

llvm::Init* Fold(llvm::Record* CurRec) const

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

Parameters

llvm::Record* CurRec

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

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

Parameters

const llvm::Init* I

static llvm::FieldInit* get(llvm::Init* R,
                            llvm::StringInit* FN)

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

Parameters

llvm::Init* R
llvm::StringInit* FN

std::string getAsString() const

Description

Convert this value to a literal form.

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

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

Parameters

unsigned int Bit

llvm::StringInit* getFieldName() const

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

llvm::Init* getRecord() const

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

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

llvm::Init* resolveReferences(
    llvm::Resolver& R) const

Description

This function is used by classes that refer to other variables which may not be defined at the time the expression is formed. If a value is set for the variable later, this method will be called on users of the value to allow the value to propagate out.

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

Parameters

llvm::Resolver& R