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

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 24 03:26:03 PST 2023


aemerson added a comment.

In D144687#4149543 <https://reviews.llvm.org/D144687#4149543>, @tschuett wrote:

> Could you achieve the same with structured bindings?
>
>   auto [Dst, Src1, Src2, Src3] = MI.getOperandsRegs(0, 1, 2, 3); 

Yes that does seem much cleaner :)


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