class UnOpInit

Declaration

class UnOpInit : public OpInit, public Node { /* full declaration omitted */ };

Description

!op (X) - Transform an init.

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

Inherits from: OpInit, FoldingSetBase::Node

Member Variables

private llvm::Init* LHS

Inherited from Init:

protected Opc

Method Overview

  • public llvm::Init * Fold(llvm::Record * CurRec, bool IsFinal = false) const
  • public void Profile(llvm::FoldingSetNodeID & ID) const
  • private UnOpInit(llvm::UnOpInit::UnaryOp opc, llvm::Init * lhs, llvm::RecTy * Type)
  • public UnOpInit(const llvm::UnOpInit &)
  • public static bool classof(const llvm::Init * I)
  • public llvm::OpInit * clone(ArrayRef<llvm::Init *> Operands) const
  • public static llvm::UnOpInit * get(llvm::UnOpInit::UnaryOp opc, llvm::Init * lhs, llvm::RecTy * Type)
  • public std::string getAsString() const
  • public unsigned int getNumOperands() const
  • public llvm::UnOpInit::UnaryOp getOpcode() const
  • public llvm::Init * getOperand(unsigned int i) const
  • public llvm::Init * getOperand() const
  • public llvm::Init * resolveReferences(llvm::Resolver & R) const

Inherited from FoldingSetBase::Node:

Inherited from OpInit:

Inherited from TypedInit:

Inherited from Init:

Methods

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

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

Parameters

llvm::Record* CurRec
bool IsFinal = false

void Profile(llvm::FoldingSetNodeID& ID) const

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

Parameters

llvm::FoldingSetNodeID& ID

UnOpInit(llvm::UnOpInit::UnaryOp opc,
         llvm::Init* lhs,
         llvm::RecTy* Type)

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

Parameters

llvm::UnOpInit::UnaryOp opc
llvm::Init* lhs
llvm::RecTy* Type

UnOpInit(const llvm::UnOpInit&)

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

Parameters

const llvm::UnOpInit&

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

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

Parameters

const llvm::Init* I

llvm::OpInit* clone(
    ArrayRef<llvm::Init*> Operands) const

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

Parameters

ArrayRef<llvm::Init*> Operands

static llvm::UnOpInit* get(
    llvm::UnOpInit::UnaryOp opc,
    llvm::Init* lhs,
    llvm::RecTy* Type)

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

Parameters

llvm::UnOpInit::UnaryOp opc
llvm::Init* lhs
llvm::RecTy* Type

std::string getAsString() const

Description

Convert this value to a literal form.

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

unsigned int getNumOperands() const

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

llvm::UnOpInit::UnaryOp getOpcode() const

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

llvm::Init* getOperand(unsigned int i) const

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

Parameters

unsigned int i

llvm::Init* getOperand() const

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

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

Parameters

llvm::Resolver& R