[llvm] [TableGen] Remove dummy UINT64_C(0) from end of InstBits table. NFC (PR #154778)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 07:58:12 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-tablegen

Author: Craig Topper (topperc)

<details>
<summary>Changes</summary>

I suspect this originally existed to avoid a trailing comma from the previous entry. C++ allows trailing commas in arrays so this isn't necessary.

---
Full diff: https://github.com/llvm/llvm-project/pull/154778.diff


1 Files Affected:

- (modified) llvm/utils/TableGen/CodeEmitterGen.cpp (+1-1) 


``````````diff
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp
index d7b5e21c3f1fb..be468b012a8b7 100644
--- a/llvm/utils/TableGen/CodeEmitterGen.cpp
+++ b/llvm/utils/TableGen/CodeEmitterGen.cpp
@@ -440,7 +440,7 @@ void CodeEmitterGen::emitInstructionBaseValues(
     emitInstBits(O, Value);
     O << "," << '\t' << "// " << R->getName() << "\n";
   }
-  O << "    UINT64_C(0)\n  };\n";
+  O << "  };\n";
 }
 
 void CodeEmitterGen::emitCaseMap(

``````````

</details>


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


More information about the llvm-commits mailing list