class Operator

Declaration

class Operator : public User { /* full declaration omitted */ };

Description

This is a utility class that provides an abstraction for the common functionality between Instructions and ConstantExprs.

Declared at: llvm/include/llvm/IR/Operator.h:30

Inherits from: User

Member Variables

Inherited from Value:

protected SubclassOptionalData
protected NumUserOperands
protected IsUsedByMD
protected HasName
protected HasHungOffUses
protected HasDescriptor
public static MaxAlignmentExponent = 29
public static MaximumAlignment = 1U << MaxAlignmentExponent

Method Overview

  • public Operator()
  • public static bool classof(const llvm::Instruction *)
  • public static bool classof(const llvm::ConstantExpr *)
  • public static bool classof(const llvm::Value * V)
  • public unsigned int getOpcode() const
  • public static unsigned int getOpcode(const llvm::Value * V)
  • public ~Operator()

Inherited from User:

Inherited from Value:

Methods

Operator()

Declared at: llvm/include/llvm/IR/Operator.h:34

static bool classof(const llvm::Instruction*)

Declared at: llvm/include/llvm/IR/Operator.h:56

Parameters

const llvm::Instruction*

static bool classof(const llvm::ConstantExpr*)

Declared at: llvm/include/llvm/IR/Operator.h:57

Parameters

const llvm::ConstantExpr*

static bool classof(const llvm::Value* V)

Declared at: llvm/include/llvm/IR/Operator.h:58

Parameters

const llvm::Value* V

unsigned int getOpcode() const

Description

Return the opcode for this Instruction or ConstantExpr.

Declared at: llvm/include/llvm/IR/Operator.h:40

static unsigned int getOpcode(
    const llvm::Value* V)

Description

If V is an Instruction or ConstantExpr, return its opcode. Otherwise return UserOp1.

Declared at: llvm/include/llvm/IR/Operator.h:48

Parameters

const llvm::Value* V

~Operator()

Declared at: llvm/include/llvm/IR/Operator.h:35