[Mlir-commits] [mlir] [mlir][amx] Simplify intrinsic generation (PR #140559)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed May 21 01:47:59 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,h -- mlir/include/mlir/Conversion/LLVMCommon/Pattern.h mlir/include/mlir/Dialect/AMX/AMXDialect.h mlir/include/mlir/Dialect/AMX/Transforms.h mlir/include/mlir/InitAllExtensions.h mlir/include/mlir/Target/LLVMIR/Dialect/All.h mlir/lib/Conversion/LLVMCommon/Pattern.cpp mlir/lib/Dialect/AMX/IR/AMXDialect.cpp mlir/lib/Dialect/AMX/Transforms/LegalizeForLLVMExport.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/include/mlir/Conversion/LLVMCommon/Pattern.h b/mlir/include/mlir/Conversion/LLVMCommon/Pattern.h
index 011131a17..7e946495e 100644
--- a/mlir/include/mlir/Conversion/LLVMCommon/Pattern.h
+++ b/mlir/include/mlir/Conversion/LLVMCommon/Pattern.h
@@ -74,10 +74,10 @@ Value composeValue(OpBuilder &builder, Location loc, ValueRange src,
/// memory pointed to by `memRefDesc`, using the layout map of `type`.
/// The indices are linearized as:
/// `base_offset + index_0 * stride_0 + ... + index_n * stride_n`.
-Value getStridedElementPtr(OpBuilder &builder, Location loc,
- const LLVMTypeConverter &converter, MemRefType type,
- Value memRefDesc, ValueRange indices,
- LLVM::GEPNoWrapFlags noWrapFlags = LLVM::GEPNoWrapFlags::none);
+Value getStridedElementPtr(
+ OpBuilder &builder, Location loc, const LLVMTypeConverter &converter,
+ MemRefType type, Value memRefDesc, ValueRange indices,
+ LLVM::GEPNoWrapFlags noWrapFlags = LLVM::GEPNoWrapFlags::none);
} // namespace LLVM
/// Base class for operation conversions targeting the LLVM IR dialect. It
``````````
</details>
https://github.com/llvm/llvm-project/pull/140559
More information about the Mlir-commits
mailing list