[llvm] [IR] Add ICmpInst::isCommutative and FCmpInst::isCommutative static wrappers (PR #116398)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 15 07:28:13 PST 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 0fb8fac5d6c10610574e6e472670823eaff0c949 afffbdfa4d4d8dc4fdf050c735750f49ca228220 --extensions h -- llvm/include/llvm/IR/Instructions.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/Instructions.h b/llvm/include/llvm/IR/Instructions.h
index ee6b24f376..8eea659a00 100644
--- a/llvm/include/llvm/IR/Instructions.h
+++ b/llvm/include/llvm/IR/Instructions.h
@@ -1384,7 +1384,6 @@ public:
/// Determine if this is an equality predicate.
bool isEquality() const { return isEquality(getPredicate()); }
-
/// @returns true if the predicate is commutative.
/// Determine if this is a commutative predicate.
static bool isCommutative(Predicate Pred) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/116398
More information about the llvm-commits
mailing list