[llvm] [NVPTX][NFC] cleanup dead vars, use MAKE_CASE (PR #81161)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 8 11:08:43 PST 2024
================
@@ -858,623 +858,433 @@ NVPTXTargetLowering::NVPTXTargetLowering(const NVPTXTargetMachine &TM,
}
const char *NVPTXTargetLowering::getTargetNodeName(unsigned Opcode) const {
+
+#define MAKE_CASE(V) \
----------------
Artem-B wrote:
I wonder if we could do it the way WebAssembly does: https://github.com/llvm/llvm-project/blob/ab4a793e8bc78f50f9f104c9c732e2dd91bf70a2/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp#L719
This approach is fine, but it's still too much of a boilerplate.
https://github.com/llvm/llvm-project/pull/81161
More information about the llvm-commits
mailing list