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

Inherits from: OpInit, FoldingSetBase::Node

Member Variables

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
  • 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:793

Parameters

llvm::Record* CurRec
bool IsFinal = false

void Profile(llvm::FoldingSetNodeID& ID) const

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

Parameters

llvm::FoldingSetNodeID& ID

UnOpInit(const llvm::UnOpInit&)

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

Parameters

const llvm::UnOpInit&

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

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

Parameters

const llvm::Init* I

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

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

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

Parameters

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

std::string getAsString() const

Description

Convert this value to a string form.

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

unsigned int getNumOperands() const

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

llvm::UnOpInit::UnaryOp getOpcode() const

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

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

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

Parameters

unsigned int i

llvm::Init* getOperand() const

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

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

Description

This method 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:795

Parameters

llvm::Resolver& R