[llvm] [Matrix] Pass ShapeInfo to Visit* methods(NFC). (PR #142487)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 09:46:53 PDT 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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
index 2b0993744..20279bf69 100644
--- a/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
+++ b/llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
@@ -1112,7 +1112,8 @@ public:
 
   /// Replace intrinsic calls.
   void VisitCallInst(CallInst *Inst) {
-    assert(Inst->getCalledFunction() && Inst->getCalledFunction()->isIntrinsic());
+    assert(Inst->getCalledFunction() &&
+           Inst->getCalledFunction()->isIntrinsic());
 
     switch (Inst->getCalledFunction()->getIntrinsicID()) {
     case Intrinsic::matrix_multiply:
@@ -1128,7 +1129,8 @@ public:
       LowerColumnMajorStore(Inst);
       break;
     default:
-      llvm_unreachable("only intrinsics supporting shape info should be seen here");
+      llvm_unreachable(
+          "only intrinsics supporting shape info should be seen here");
     }
   }
 

``````````

</details>


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


More information about the llvm-commits mailing list