class MinMaxIntrinsic

Declaration

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

Description

This class represents min/max intrinsics.

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

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

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

Parameters

const llvm::IntrinsicInst* I

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

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

Parameters

const llvm::Value* V

llvm::Value* getLHS() const

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

static ICmpInst::Predicate getPredicate(
    Intrinsic::ID ID)

Description

Returns the comparison predicate underlying the intrinsic.

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

Parameters

Intrinsic::ID ID

ICmpInst::Predicate getPredicate() const

Description

Returns the comparison predicate underlying the intrinsic.

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

llvm::Value* getRHS() const

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

static llvm::APInt getSaturationPoint(
    Intrinsic::ID ID,
    unsigned int numBits)

Description

Min/max intrinsics are monotonic, they operate on a fixed-bitwidth values, so there is a certain threshold value, upon reaching which, their value can no longer change. Return said threshold.

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

Parameters

Intrinsic::ID ID
unsigned int numBits

llvm::APInt getSaturationPoint(
    unsigned int numBits) const

Description

Min/max intrinsics are monotonic, they operate on a fixed-bitwidth values, so there is a certain threshold value, upon reaching which, their value can no longer change. Return said threshold.

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

Parameters

unsigned int numBits

static llvm::Constant* getSaturationPoint(
    Intrinsic::ID ID,
    llvm::Type* Ty)

Description

Min/max intrinsics are monotonic, they operate on a fixed-bitwidth values, so there is a certain threshold value, upon reaching which, their value can no longer change. Return said threshold.

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

Parameters

Intrinsic::ID ID
llvm::Type* Ty

llvm::Constant* getSaturationPoint(
    llvm::Type* Ty) const

Description

Min/max intrinsics are monotonic, they operate on a fixed-bitwidth values, so there is a certain threshold value, upon reaching which, their value can no longer change. Return said threshold.

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

Parameters

llvm::Type* Ty

static bool isSigned(Intrinsic::ID ID)

Description

Whether the intrinsic is signed or unsigned.

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

Parameters

Intrinsic::ID ID

bool isSigned() const

Description

Whether the intrinsic is signed or unsigned.

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