[Mlir-commits] [mlir] [mlir][AMDGPU] Plumb address space 7 through MLIR, add address_space attr. (PR #125594)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Feb 10 08:37:57 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 f4e3b8783cb9eb9a442b14ec8ce7356fa6853387 9e042c8e425c6125e0984a8ae937f8d8ba2ad66c --extensions h,cpp -- mlir/include/mlir/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.h mlir/include/mlir/Dialect/AMDGPU/IR/AMDGPUDialect.h mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp mlir/lib/Dialect/AMDGPU/IR/AMDGPUDialect.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp b/mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
index cbfb45479f..2aa153ead4 100644
--- a/mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
+++ b/mlir/lib/Conversion/AMDGPUToROCDL/AMDGPUToROCDL.cpp
@@ -196,7 +196,11 @@ struct FatRawBufferCastLowering
       numRecords = getNumRecords(rewriter, loc, memrefType, descriptor,
                                  strideVals, elementByteWidth);
 
-Value basePointer = adaptor.getResetOffset()  ?  descriptor.bufferPtr(rewriter, loc, *getTypeConverter(), memrefType) : descriptor.alignedPtr(rewriter, loc);
+    Value basePointer =
+        adaptor.getResetOffset()
+            ? descriptor.bufferPtr(rewriter, loc, *getTypeConverter(),
+                                   memrefType)
+            : descriptor.alignedPtr(rewriter, loc);
 
     Value offset;
     if (adaptor.getResetOffset())

``````````

</details>


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


More information about the Mlir-commits mailing list