ΒΆllvm::Constant* FlushFPConstant(
    llvm::Constant* Operand,
    const llvm::Instruction* I,
    bool IsOutput)

Description

Attempt to flush float point constant according to denormal mode set in the instruction's parent function attributes. If so, return a zero with the correct sign, otherwise return the original constant. Inputs and outputs to floating point instructions can have their mode set separately, so the direction is also needed.

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

Parameters

llvm::Constant* Operand
const llvm::Instruction* I
bool IsOutput