ΒΆllvm::Constant* ConstantFoldCompareInstOperands(
    unsigned int Predicate,
    llvm::Constant* LHS,
    llvm::Constant* RHS,
    const llvm::DataLayout& DL,
    const llvm::TargetLibraryInfo* TLI = nullptr)

Description

ConstantFoldCompareInstOperands - Attempt to constant fold a compare instruction (icmp/fcmp) with the specified operands. If it fails, it returns a constant expression of the specified operands.

Declared at: llvm/include/llvm/Analysis/ConstantFolding.h:70

Parameters

unsigned int Predicate
llvm::Constant* LHS
llvm::Constant* RHS
const llvm::DataLayout& DL
const llvm::TargetLibraryInfo* TLI = nullptr