[llvm] [utils][TableGen] Handle versions on clause/directive spellings (PR #143021)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 6 04:25:53 PDT 2025


================
@@ -113,29 +114,19 @@ class Versioned {
   constexpr static int IntWidth = 8 * sizeof(int);
 };
 
-// Range of specification versions: [Min, Max]
-// Default value: all possible versions.
-// This is the same structure as the one emitted into the generated sources.
-#define STRUCT_VERSION_RANGE                                                   \
-  struct VersionRange {                                                        \
-    int Min = 1;                                                               \
-    int Max = 0x7fffffff;                                                      \
-  }
-
-STRUCT_VERSION_RANGE;
-
 class Spelling : public Versioned {
 public:
-  using Value = std::pair<StringRef, VersionRange>;
+  using Value = llvm::directive::Spelling;
----------------
jurahul wrote:

can llvm::: be dropped since this code is within llvm namespace?

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


More information about the llvm-commits mailing list