class UnaryOperator

Declaration

class UnaryOperator : public UnaryInstruction { /* full declaration omitted */ };

Declared at: llvm/include/llvm/IR/InstrTypes.h:103

Inherits from: UnaryInstruction

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 static llvm::UnaryOperator * Create(llvm::Instruction::UnaryOps Op, llvm::Value * S, const llvm::Twine & Name = llvm::Twine(), llvm::Instruction * InsertBefore = nullptr)
  • public static llvm::UnaryOperator * Create(llvm::Instruction::UnaryOps Op, llvm::Value * S, const llvm::Twine & Name, llvm::BasicBlock * InsertAtEnd)
  • public static llvm::UnaryOperator * CreateFNegFMF(llvm::Value * Op, llvm::Instruction * FMFSource, const llvm::Twine & Name = "")
  • public static llvm::UnaryOperator * CreateWithCopiedFlags(llvm::Instruction::UnaryOps Opc, llvm::Value * V, llvm::Instruction * CopyO, const llvm::Twine & Name = "")
  • protected UnaryOperator(llvm::Instruction::UnaryOps iType, llvm::Value * S, llvm::Type * Ty, const llvm::Twine & Name, llvm::Instruction * InsertBefore)
  • protected UnaryOperator(llvm::Instruction::UnaryOps iType, llvm::Value * S, llvm::Type * Ty, const llvm::Twine & Name, llvm::BasicBlock * InsertAtEnd)
  • public static bool classof(const llvm::Instruction * I)
  • public static bool classof(const llvm::Value * V)
  • protected llvm::UnaryOperator * cloneImpl() const
  • public llvm::Instruction::UnaryOps getOpcode() const

Inherited from UnaryInstruction:

Inherited from Instruction:

Inherited from User:

Inherited from Value:

Methods

static llvm::UnaryOperator* Create(
    llvm::Instruction::UnaryOps Op,
    llvm::Value* S,
    const llvm::Twine& Name = llvm::Twine(),
    llvm::Instruction* InsertBefore = nullptr)

Description

Construct a unary instruction, given the opcode and an operand. Optionally (if InstBefore is specified) insert the instruction into a BasicBlock right before the specified instruction. The specified Instruction is allowed to be a dereferenced end iterator.

Declared at: llvm/include/llvm/IR/InstrTypes.h:124

Parameters

llvm::Instruction::UnaryOps Op
llvm::Value* S
const llvm::Twine& Name = llvm::Twine()
llvm::Instruction* InsertBefore = nullptr

static llvm::UnaryOperator* Create(
    llvm::Instruction::UnaryOps Op,
    llvm::Value* S,
    const llvm::Twine& Name,
    llvm::BasicBlock* InsertAtEnd)

Description

Construct a unary instruction, given the opcode and an operand. Also automatically insert this instruction to the end of the BasicBlock specified.

Declared at: llvm/include/llvm/IR/InstrTypes.h:132

Parameters

llvm::Instruction::UnaryOps Op
llvm::Value* S
const llvm::Twine& Name
llvm::BasicBlock* InsertAtEnd

static llvm::UnaryOperator* CreateFNegFMF(
    llvm::Value* Op,
    llvm::Instruction* FMFSource,
    const llvm::Twine& Name = "")

Declared at: llvm/include/llvm/IR/InstrTypes.h:166

Parameters

llvm::Value* Op
llvm::Instruction* FMFSource
const llvm::Twine& Name = ""

static llvm::UnaryOperator* CreateWithCopiedFlags(
    llvm::Instruction::UnaryOps Opc,
    llvm::Value* V,
    llvm::Instruction* CopyO,
    const llvm::Twine& Name = "")

Declared at: llvm/include/llvm/IR/InstrTypes.h:157

Parameters

llvm::Instruction::UnaryOps Opc
llvm::Value* V
llvm::Instruction* CopyO
const llvm::Twine& Name = ""

UnaryOperator(llvm::Instruction::UnaryOps iType,
              llvm::Value* S,
              llvm::Type* Ty,
              const llvm::Twine& Name,
              llvm::Instruction* InsertBefore)

Declared at: llvm/include/llvm/IR/InstrTypes.h:107

Parameters

llvm::Instruction::UnaryOps iType
llvm::Value* S
llvm::Type* Ty
const llvm::Twine& Name
llvm::Instruction* InsertBefore

UnaryOperator(llvm::Instruction::UnaryOps iType,
              llvm::Value* S,
              llvm::Type* Ty,
              const llvm::Twine& Name,
              llvm::BasicBlock* InsertAtEnd)

Declared at: llvm/include/llvm/IR/InstrTypes.h:109

Parameters

llvm::Instruction::UnaryOps iType
llvm::Value* S
llvm::Type* Ty
const llvm::Twine& Name
llvm::BasicBlock* InsertAtEnd

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

Declared at: llvm/include/llvm/IR/InstrTypes.h:176

Parameters

const llvm::Instruction* I

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

Declared at: llvm/include/llvm/IR/InstrTypes.h:179

Parameters

const llvm::Value* V

llvm::UnaryOperator* cloneImpl() const

Declared at: llvm/include/llvm/IR/InstrTypes.h:115

llvm::Instruction::UnaryOps getOpcode() const

Declared at: llvm/include/llvm/IR/InstrTypes.h:171