ΒΆSmallVector<llvm::APInt> ConstantFoldVectorBinop(
    unsigned int Opcode,
    const llvm::Register Op1,
    const llvm::Register Op2,
    const llvm::MachineRegisterInfo& MRI)

Description

Tries to constant fold a vector binop with sources \p Op1 and \p Op2. Returns an empty vector on failure.

Declared at: llvm/include/llvm/CodeGen/GlobalISel/Utils.h:272

Parameters

unsigned int Opcode
const llvm::Register Op1
const llvm::Register Op2
const llvm::MachineRegisterInfo& MRI