class BinaryOpIntrinsic

Declaration

class BinaryOpIntrinsic : public IntrinsicInst { /* full declaration omitted */ };

Description

This class represents an intrinsic that is based on a binary operation. This includes op.with.overflow and saturating add/sub intrinsics.

Declared at: llvm/include/llvm/IR/IntrinsicInst.h:644

Inherits from: IntrinsicInst

Member Variables

Inherited from CallBase:

protected Attrs
protected FTy
protected static CalledOperandOpEndIdx = -1

Inherited from Value:

protected SubclassOptionalData
protected NumUserOperands
protected IsUsedByMD
protected HasName
protected HasMetadata
protected HasHungOffUses
protected HasDescriptor
public static MaxAlignmentExponent = 32
public static MaximumAlignment = 1ULL << MaxAlignmentExponent

Method Overview

  • public static bool classof(const llvm::IntrinsicInst * I)
  • public static bool classof(const llvm::Value * V)
  • public Instruction::BinaryOps getBinaryOp() const
  • public llvm::Value * getLHS() const
  • public unsigned int getNoWrapKind() const
  • public llvm::Value * getRHS() const
  • public bool isSigned() const

Inherited from IntrinsicInst:

Inherited from CallInst:

Inherited from CallBase:

Inherited from Instruction:

Inherited from User:

Inherited from Value:

Methods

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

Declared at: llvm/include/llvm/IR/IntrinsicInst.h:646

Parameters

const llvm::IntrinsicInst* I

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

Declared at: llvm/include/llvm/IR/IntrinsicInst.h:663

Parameters

const llvm::Value* V

Instruction::BinaryOps getBinaryOp() const

Description

Returns the binary operation underlying the intrinsic.

Declared at: llvm/include/llvm/IR/IntrinsicInst.h:671

llvm::Value* getLHS() const

Declared at: llvm/include/llvm/IR/IntrinsicInst.h:667

unsigned int getNoWrapKind() const

Description

Returns one of OBO::NoSignedWrap or OBO::NoUnsignedWrap.

Declared at: llvm/include/llvm/IR/IntrinsicInst.h:677

llvm::Value* getRHS() const

Declared at: llvm/include/llvm/IR/IntrinsicInst.h:668

bool isSigned() const

Description

Whether the intrinsic is signed or unsigned.

Declared at: llvm/include/llvm/IR/IntrinsicInst.h:674