llvm::GIMatchTableExecutor::isOperandImmEqual

Return true if MO equals immediate Value (or a splat of it).

Synopsis

Declared in <llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h>

bool
isOperandImmEqual(
    MachineOperand const& MO,
    int64_t Value,
    MachineRegisterInfo const& MRI,
    bool Splat = false) const;

Return Value

True if MO equals immediate Value (or a splat of it).

Parameters

NameDescription
MO- Operand to compare.
Value- Expected immediate value.
MRI- Register info used when MO is a register.
Splat- If true, also accept vector splats of Value.