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

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 21 10:42:40 PDT 2025


Author: Craig Topper
Date: 2025-08-21T10:42:37-07:00
New Revision: c91f7dc7cdbefb76a0db0d0250ee0c2543b9c04f

URL: https://github.com/llvm/llvm-project/commit/c91f7dc7cdbefb76a0db0d0250ee0c2543b9c04f
DIFF: https://github.com/llvm/llvm-project/commit/c91f7dc7cdbefb76a0db0d0250ee0c2543b9c04f.diff

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

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.

Added: 
    

Modified: 
    llvm/utils/TableGen/CodeEmitterGen.cpp

Removed: 
    


################################################################################
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(


        


More information about the llvm-commits mailing list