[llvm] [TableGen] Add GenericEnumClass that generates scoped enums (PR #170903)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 8 16:52:17 PST 2025


================
@@ -764,8 +817,21 @@ void SearchableTableEmitter::run(raw_ostream &OS) {
                       Twine("Enum FilterClass '") + FilterClass +
                           "' does not exist");
 
+    if (!EnumRec->isValueUnset("Size")) {
+      int Size = EnumRec->getValueAsInt("Size");
+      if (Size <= 0)
----------------
jurahul wrote:

Can be replaced with an assert in the .td file? 

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


More information about the llvm-commits mailing list