[PATCH] D144687: [GlobalISel][NFC] Add MachineInstr::getFirst[N]{Regs,LLTs}() helpers to extract regs & types.
Amara Emerson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 3 01:43:01 PST 2023
aemerson updated this revision to Diff 502077.
aemerson added a comment.
Address comments.
Also introduce `getFirstNRegLLTs()` which allow us to do both regs and types in pairs:
auto [Dst, DstTy, Src, SrcTy] = MI.getFirst2RegLLTs();
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144687/new/
https://reviews.llvm.org/D144687
Files:
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/CodeGen/MachineInstr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144687.502077.patch
Type: text/x-patch
Size: 36965 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230303/c3185b40/attachment.bin>
More information about the llvm-commits
mailing list