[PATCH] D117378: [RISCV] [NFC] Use macro to reduce repetive switch cases
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 14 18:19:31 PST 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:6288
}
- }
+#define CASE_EXTEND_TWO_OPERANDS(intrinsic, opcode) \
+ case Intrinsic::intrinsic: { \
----------------
Would a helper function be better?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117378/new/
https://reviews.llvm.org/D117378
More information about the llvm-commits
mailing list