[PATCH] D144687: [GlobalISel][NFC] Add some Get{2,3,4,5}RegsFromMI macros to extract regs & types from MachineInstrs

Thorsten via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 23 23:55:47 PST 2023


tschuett added a comment.

Could you achieve the same with structured bindings?

  auto [Dst, Src1, Src2, Src3] = MI.getOperandsRegs(0, 1, 2, 3); 


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