[clang] [llvm] [ARM] Introduce intrinsics for MVE add/sub/mul under strict-fp. (PR #169156)

via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 22 01:44:11 PST 2025


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 origin/main HEAD --extensions cpp,c -- clang/test/CodeGen/arm-mve-intrinsics/vaddq.c clang/test/CodeGen/arm-mve-intrinsics/vmulq.c clang/test/CodeGen/arm-mve-intrinsics/vsubq.c clang/utils/TableGen/MveEmitter.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/utils/TableGen/MveEmitter.cpp b/clang/utils/TableGen/MveEmitter.cpp
index d2b366779..7681213d9 100644
--- a/clang/utils/TableGen/MveEmitter.cpp
+++ b/clang/utils/TableGen/MveEmitter.cpp
@@ -757,13 +757,13 @@ public:
   }
 };
 
-// Result subclass that generates 
+// Result subclass that generates
 // Builder.getIsFPConstrained() ? <Standard> : <StrictFp>
 class StrictFpAltResult : public Result {
 public:
   Ptr Standard;
   Ptr StrictFp;
-  StrictFpAltResult(Ptr Standard,Ptr StrictFp)
+  StrictFpAltResult(Ptr Standard, Ptr StrictFp)
       : Standard(Standard), StrictFp(StrictFp) {}
   void genCode(raw_ostream &OS,
                CodeGenParamAllocator &ParamAlloc) const override {
@@ -1292,8 +1292,7 @@ Result::Ptr EmitterBase::getCodeForDag(const DagInit *D,
       auto Standard = GenIRBuilderBase(Op->getValueAsDef("standard"));
       auto StrictFp = GenIRIntBase(Op->getValueAsDef("strictfp"));
       return std::make_shared<StrictFpAltResult>(Standard, StrictFp);
-    }
-    else  {
+    } else {
       PrintFatalError("Unsupported dag node " + Op->getName());
     }
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/169156


More information about the llvm-commits mailing list