[PATCH] D144687: [GlobalISel][NFC] Add some Get{2,3,4,5}RegsFromMI macros to extract regs & types from MachineInstrs
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 24 01:56:57 PST 2023
foad 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 I think that looks much nicer than the macros.
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