[llvm] [NFC][DecoderEmitter] Predicate generation code cleanup (PR #158140)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 14 17:17:31 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- llvm/utils/TableGen/Common/SubtargetFeatureInfo.cpp llvm/utils/TableGen/DecoderEmitter.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/utils/TableGen/Common/SubtargetFeatureInfo.cpp b/llvm/utils/TableGen/Common/SubtargetFeatureInfo.cpp
index 523928785..a426bf4ef 100644
--- a/llvm/utils/TableGen/Common/SubtargetFeatureInfo.cpp
+++ b/llvm/utils/TableGen/Common/SubtargetFeatureInfo.cpp
@@ -191,7 +191,7 @@ void SubtargetFeatureInfo::emitMCPredicateCheck(
for (const Record *R : MCPredicates) {
OS << LS;
if (emitFeaturesAux(TargetName, *R->getValueAsDag("AssemblerCondDag"),
- ParenIfBinOp, OS))
+ ParenIfBinOp, OS))
PrintFatalError(R, "Invalid AssemblerCondDag!");
}
}
@@ -212,7 +212,7 @@ void SubtargetFeatureInfo::emitComputeAssemblerAvailableFeatures(
OS << " if (";
if (emitFeaturesAux(TargetName, *Def->getValueAsDag("AssemblerCondDag"),
- /*ParenIfBinOp=*/false, OS))
+ /*ParenIfBinOp=*/false, OS))
PrintFatalError(Def, "Invalid AssemblerCondDag!");
OS << ")\n";
diff --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp
index 55eb4cfab..3702e7d91 100644
--- a/llvm/utils/TableGen/DecoderEmitter.cpp
+++ b/llvm/utils/TableGen/DecoderEmitter.cpp
@@ -15,8 +15,8 @@
#include "Common/CodeGenInstruction.h"
#include "Common/CodeGenTarget.h"
#include "Common/InfoByHwMode.h"
-#include "Common/VarLenCodeEmitterGen.h"
#include "Common/SubtargetFeatureInfo.h"
+#include "Common/VarLenCodeEmitterGen.h"
#include "TableGenBackends.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
``````````
</details>
https://github.com/llvm/llvm-project/pull/158140
More information about the llvm-commits
mailing list