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

Description

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. Denormal inputs may be flushed based on the denormal handling mode.

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

Parameters

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