llvm::MIPatternMatch::mi_match

Match machine instruction MI against pattern P.

Synopsis

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

template<typename Pattern>
[[nodiscard]]
bool
mi_match(
    MachineInstr& MI,
    MachineRegisterInfo const& MRI,
    Pattern&& P);

Return Value

True if the pattern matches.

NOTE

The return value should not be discarded.

Parameters

NameDescription
MIInstruction to match.
MRIRegister info used by the pattern.
PPattern object providing match().