class FoldOpInit

Declaration

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

Description

!foldl (a, b, expr, start, lst) - Fold over a list.

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

Inherits from: TypedInit, FoldingSetBase::Node

Member Variables

private llvm::Init* Start
private llvm::Init* List
private llvm::Init* A
private llvm::Init* B
private llvm::Init* Expr

Inherited from Init:

protected Opc

Method Overview

  • public llvm::Init * Fold(llvm::Record * CurRec) const
  • private FoldOpInit(llvm::Init * Start, llvm::Init * List, llvm::Init * A, llvm::Init * B, llvm::Init * Expr, llvm::RecTy * Type)
  • public FoldOpInit(const llvm::FoldOpInit &)
  • public void Profile(llvm::FoldingSetNodeID & ID) const
  • public static bool classof(const llvm::Init * I)
  • public static llvm::FoldOpInit * get(llvm::Init * Start, llvm::Init * List, llvm::Init * A, llvm::Init * B, llvm::Init * Expr, llvm::RecTy * Type)
  • 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

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

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

Parameters

llvm::Record* CurRec

FoldOpInit(llvm::Init* Start,
           llvm::Init* List,
           llvm::Init* A,
           llvm::Init* B,
           llvm::Init* Expr,
           llvm::RecTy* Type)

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

Parameters

llvm::Init* Start
llvm::Init* List
llvm::Init* A
llvm::Init* B
llvm::Init* Expr
llvm::RecTy* Type

FoldOpInit(const llvm::FoldOpInit&)

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

Parameters

const llvm::FoldOpInit&

void Profile(llvm::FoldingSetNodeID& ID) const

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

Parameters

llvm::FoldingSetNodeID& ID

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

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

Parameters

const llvm::Init* I

static llvm::FoldOpInit* get(llvm::Init* Start,
                             llvm::Init* List,
                             llvm::Init* A,
                             llvm::Init* B,
                             llvm::Init* Expr,
                             llvm::RecTy* Type)

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

Parameters

llvm::Init* Start
llvm::Init* List
llvm::Init* A
llvm::Init* B
llvm::Init* Expr
llvm::RecTy* Type

std::string getAsString() const

Description

Convert this value to a literal form.

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

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

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

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

Parameters

llvm::Resolver& R