[llvm] [LLVM][TableGen] Speed up sorting of intrinsics (PR #109230)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 18 21:43:13 PDT 2024
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 009398b3b37f7d653b4371120944f74cad934992 88979afa7ee383549582c33143734ddbe96ebbbe --extensions cpp -- llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp
``````````
</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 bcbf204830..9e1a3ac17c 100644
--- a/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp
+++ b/llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp
@@ -51,7 +51,7 @@ CodeGenIntrinsicTable::CodeGenIntrinsicTable(const RecordKeeper &RC) {
llvm::sort(Intrinsics, [](const CodeGenIntrinsic &LHS,
const CodeGenIntrinsic &RHS) {
- // Order target independent intrinsics before target dependent ones.
+ // Order target independent intrinsics before target dependent ones.
bool LHSHasTarget = !LHS.TargetPrefix.empty();
bool RHSHasTarget = !RHS.TargetPrefix.empty();
return std::tie(LHSHasTarget, LHS.Name) < std::tie(RHSHasTarget, RHS.Name);
``````````
</details>
https://github.com/llvm/llvm-project/pull/109230
More information about the llvm-commits
mailing list