[llvm] [TableGen] Emit OpName as an enum class instead of a namespace (PR #125313)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 3 21:43:34 PST 2025


================
@@ -19,6 +19,11 @@
 #include <functional>
 #include <utility>
 
+// Pull in OpName enum definition.
+#define GET_INSTRINFO_OPERAND_ENUM
+#include "AMDGPUGenInstrInfo.inc"
+#undef GET_INSTRINFO_OPERAND_ENUM
----------------
topperc wrote:

Isn't it undefed by the .inc?

https://github.com/llvm/llvm-project/pull/125313


More information about the llvm-commits mailing list