[llvm] [TableGen][Intrinsics] Add KnownOverloadConflict allowlist for CheckO… (PR #195698)
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 4 10:54:57 PDT 2026
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/Basic/CodeGenIntrinsics.cpp --diff_from_common_commit
``````````
: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/Basic/CodeGenIntrinsics.cpp b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp
index f0bf0832f..b76cd9c96 100644
--- a/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp
+++ b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp
@@ -185,8 +185,7 @@ static bool doesSuffixLookLikeMangledType(StringRef Suffix) {
// The annotation stores the TableGen *record name* of the dominator
// (e.g. `"int_foo"`), not the mangled intrinsic name (`"llvm.foo"`),
// so the lookup goes through `RecordKeeper::getDef`.
-static void
-CheckKnownOverloadConflictExistence(const RecordKeeper &RC) {
+static void CheckKnownOverloadConflictExistence(const RecordKeeper &RC) {
for (const Record *Def : RC.getAllDerivedDefinitions("Intrinsic")) {
const StringRef Allow = Def->getValueAsString("KnownOverloadConflict");
if (Allow.empty())
@@ -197,7 +196,8 @@ CheckKnownOverloadConflictExistence(const RecordKeeper &RC) {
PrintError(Def->getLoc(),
"intrinsic `" + Def->getName() +
"` has KnownOverloadConflict referencing unknown "
- "intrinsic `" + Allow + "`");
+ "intrinsic `" +
+ Allow + "`");
continue;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/195698
More information about the llvm-commits
mailing list