ΒΆllvm::Constant* ConstantFoldUnaryOpOperand(
    unsigned int Opcode,
    llvm::Constant* Op,
    const llvm::DataLayout& DL)

Description

Attempt to constant fold a unary operation with the specified operand. If it fails, it returns a constant expression of the specified operands.

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

Parameters

unsigned int Opcode
llvm::Constant* Op
const llvm::DataLayout& DL