ΒΆllvm::Constant* ConstantFoldBinaryOpOperands(
    unsigned int Opcode,
    llvm::Constant* LHS,
    llvm::Constant* RHS,
    const llvm::DataLayout& DL)

Description

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

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

Parameters

unsigned int Opcode
llvm::Constant* LHS
llvm::Constant* RHS
const llvm::DataLayout& DL