[clang] Add SME2 builtins for pfalse and ptrue (PR #71953)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 10 08:28:39 PST 2023
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 cf1e3420b0141d84770869205cfdb546609014dd 79c05d1f8554d5a4469b9501b61b47863f086ffa -- clang/test/CodeGen/aarch64-sme2-intrinsics/acle_sme2_ptrue_pfalse_attr.c clang/lib/Sema/Sema.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index e4f6a291a869..8c5aa5e77e9f 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -2083,9 +2083,8 @@ void Sema::checkTypeSupport(QualType Ty, SourceLocation Loc, ValueDecl *D) {
if (Ty->isSVESizelessBuiltinType() && FD && FD->hasBody()) {
llvm::StringMap<bool> CallerFeatureMap;
Context.getFunctionFeatureMap(CallerFeatureMap, FD);
- if (!Builtin::evaluateRequiredTargetFeatures(
- "sve", CallerFeatureMap) && !Builtin::evaluateRequiredTargetFeatures(
- "sme", CallerFeatureMap))
+ if (!Builtin::evaluateRequiredTargetFeatures("sve", CallerFeatureMap) &&
+ !Builtin::evaluateRequiredTargetFeatures("sme", CallerFeatureMap))
Diag(D->getLocation(), diag::err_sve_vector_in_non_sve_target) << Ty;
}
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/71953
More information about the cfe-commits
mailing list