[llvm] 6f0d05f - [TableGen] Remove space after comma EmitSignedVBRValue. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 31 15:10:20 PST 2025
Author: Craig Topper
Date: 2025-12-31T15:03:32-08:00
New Revision: 6f0d05f7c96a6c5eff716ee820c49aed18e091ad
URL: https://github.com/llvm/llvm-project/commit/6f0d05f7c96a6c5eff716ee820c49aed18e091ad
DIFF: https://github.com/llvm/llvm-project/commit/6f0d05f7c96a6c5eff716ee820c49aed18e091ad.diff
LOG: [TableGen] Remove space after comma EmitSignedVBRValue. NFC
This removes trailing whitespace from the final output.
Added:
Modified:
llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp b/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
index 76ea30f0986bb..7877a1f36424f 100644
--- a/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/DAGISelMatcherEmitter.cpp
@@ -269,7 +269,7 @@ static unsigned EmitSignedVBRValue(int64_t Val, raw_ostream &OS) {
OS << static_cast<unsigned>(Buffer[Len - 1]);
if ((Len > 1 || Val < 0) && !OmitComments)
OS << "/*" << Val << "*/";
- OS << ", ";
+ OS << ',';
return Len;
}
@@ -810,6 +810,7 @@ unsigned MatcherTableEmitter::EmitMatcher(const Matcher *N,
if (!OmitComments)
OS << "/*" << getEnumName(VT) << "*/";
TypeBytes = EmitVBRValue(VT.SimpleTy, OS);
+ OS << ' ';
break;
}
// If the value is 63 or smaller, use the string directly. Otherwise, use
More information about the llvm-commits
mailing list