Return true if MO equals immediate Value (or a splat of it).
Declared in <llvm/CodeGen/GlobalISel/GIMatchTableExecutor.h>
bool
isOperandImmEqual(
MachineOperand const& MO,
int64_t Value,
MachineRegisterInfo const& MRI,
bool Splat = false) const;
True if MO equals immediate Value (or a splat of it).
| Name | Description |
|---|---|
| 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. |