[llvm] [PatternMatching] Add generic API for matching constants using custom conditions (PR #85676)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 18 11:17:19 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 01d8e1ca01223bdeda74096be2a1d869b2d52ea2 6a6c35f20a9c748c58eb8129a2f950155ac33a26 -- llvm/include/llvm/IR/PatternMatch.h llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp llvm/unittests/IR/PatternMatch.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/PatternMatch.h b/llvm/include/llvm/IR/PatternMatch.h
index 4333d3e6e8..82bd8469be 100644
--- a/llvm/include/llvm/IR/PatternMatch.h
+++ b/llvm/include/llvm/IR/PatternMatch.h
@@ -515,7 +515,7 @@ m_CheckedFpAllowUndef(function_ref<bool(const APFloat &)> CheckFn) {
inline apf_pred_ty<custom_checkfn<APFloat>>
m_CheckedFpAllowUndef(const APFloat *&V,
- function_ref<bool(const APFloat &)> CheckFn) {
+ function_ref<bool(const APFloat &)> CheckFn) {
apf_pred_ty<custom_checkfn<APFloat>> P(V);
P.CheckFn = CheckFn;
return P;
``````````
</details>
https://github.com/llvm/llvm-project/pull/85676
More information about the llvm-commits
mailing list