class ExistsOpInit

Declaration

class ExistsOpInit : public TypedInit, public Node { /* full declaration omitted */ };

Description

!exists <type >(expr) - Dynamically determine if a record of `type` named `expr` exists.

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

Inherits from: TypedInit, FoldingSetBase::Node

Member Variables

private llvm::RecTy* CheckType
private llvm::Init* Expr

Inherited from Init:

protected Opc

Method Overview

  • private ExistsOpInit(llvm::RecTy * CheckType, llvm::Init * Expr)
  • public ExistsOpInit(const llvm::ExistsOpInit &)
  • public llvm::Init * Fold(llvm::Record * CurRec, bool IsFinal = false) const
  • public void Profile(llvm::FoldingSetNodeID & ID) const
  • public static bool classof(const llvm::Init * I)
  • public static llvm::ExistsOpInit * get(llvm::RecTy * CheckType, llvm::Init * Expr)
  • public std::string getAsString() const
  • public llvm::Init * getBit(unsigned int Bit) const
  • public bool isComplete() const
  • public llvm::Init * resolveReferences(llvm::Resolver & R) const

Inherited from FoldingSetBase::Node:

Inherited from TypedInit:

Inherited from Init:

Methods

ExistsOpInit(llvm::RecTy* CheckType,
             llvm::Init* Expr)

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

Parameters

llvm::RecTy* CheckType
llvm::Init* Expr

ExistsOpInit(const llvm::ExistsOpInit&)

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

Parameters

const llvm::ExistsOpInit&

llvm::Init* Fold(llvm::Record* CurRec,
                 bool IsFinal = false) const

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

Parameters

llvm::Record* CurRec
bool IsFinal = false

void Profile(llvm::FoldingSetNodeID& ID) const

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

Parameters

llvm::FoldingSetNodeID& ID

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

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

Parameters

const llvm::Init* I

static llvm::ExistsOpInit* get(
    llvm::RecTy* CheckType,
    llvm::Init* Expr)

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

Parameters

llvm::RecTy* CheckType
llvm::Init* Expr

std::string getAsString() const

Description

Convert this value to a literal form.

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

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

Parameters

unsigned int Bit

bool isComplete() const

Description

Is this a complete value with no unset (uninitialized) subvalues?

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

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

Parameters

llvm::Resolver& R