[clang] [llvm] [IR] Allow fast math flags on calls with homogeneous FP struct types (PR #110506)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 11:54:26 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 c0e97c4dfc936ed13ae9696f0615d7e648268bc9 6e7bebcf5c219b4934ad2acefea93d5456040196 --extensions h,cpp,c -- clang/test/CodeGen/X86/cx-complex-range.c clang/test/CodeGen/cx-complex-range.c clang/test/CodeGen/nofpclass.c llvm/include/llvm/IR/DerivedTypes.h llvm/include/llvm/IR/Operator.h llvm/lib/IR/Attributes.cpp llvm/lib/IR/Type.cpp llvm/unittests/IR/InstructionsTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/IR/Operator.h b/llvm/include/llvm/IR/Operator.h
index a4d979e0e6..1228df0fb9 100644
--- a/llvm/include/llvm/IR/Operator.h
+++ b/llvm/include/llvm/IR/Operator.h
@@ -328,7 +328,7 @@ public:
/// Returns true if `Ty` is a supported floating-point type for phi, select,
/// or call FPMathOperators.
- static bool isSupportedFloatingPointType(Type* Ty) {
+ static bool isSupportedFloatingPointType(Type *Ty) {
if (StructType *StructTy = dyn_cast<StructType>(Ty)) {
if (!StructTy->isLiteral() || !StructTy->containsHomogeneousTypes())
return false;
``````````
</details>
https://github.com/llvm/llvm-project/pull/110506
More information about the llvm-commits
mailing list