[PATCH] D144687: [GlobalISel][NFC] Add MachineInstr::getFirst[N]{Regs,LLTs}() helpers to extract regs & types.

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 28 02:10:02 PST 2023


foad added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/MachineInstr.h:1900
+  std::tuple<Register, Register> getFirst2Regs() const {
+    return std::make_tuple(getOperand(0).getReg(), getOperand(1).getReg());
+  }
----------------
With CTAD you should be able to use std::tuple() constructor instead of std::make_tuple().


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144687/new/

https://reviews.llvm.org/D144687



More information about the llvm-commits mailing list