[PATCH] D41373: [GISel][RFC]: GlobalISel Combiner prototype

Hal Finkel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 19 20:28:17 PST 2017


hfinkel added inline comments.


================
Comment at: include/llvm/CodeGen/GlobalISel/GMIPatternMatch.h:163
+    MachineInstr *TmpMI;
+    if (gi_match(Op, MRI, m_MInstr(TmpMI))) {
+      if (TmpMI->getOpcode() == Opcode && TmpMI->getNumOperands() == 3) {
----------------
Why is this named gi_match? Doesn't it apply to any MI as well?


https://reviews.llvm.org/D41373





More information about the llvm-commits mailing list