[Mlir-commits] [mlir] [mlir][acc] Introduce createAndPopulate for recipe creation (PR #162917)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Oct 10 13:29:01 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 origin/main HEAD --extensions cpp -- mlir/test/lib/Dialect/OpenACC/TestRecipePopulate.cpp mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp mlir/test/lib/Dialect/OpenACC/TestOpenACC.cpp mlir/test/lib/Dialect/OpenACC/TestPointerLikeTypeInterface.cpp
``````````
: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/mlir/test/lib/Dialect/OpenACC/TestPointerLikeTypeInterface.cpp b/mlir/test/lib/Dialect/OpenACC/TestPointerLikeTypeInterface.cpp
index 88cb5b72a..3a7e3d0ac 100644
--- a/mlir/test/lib/Dialect/OpenACC/TestPointerLikeTypeInterface.cpp
+++ b/mlir/test/lib/Dialect/OpenACC/TestPointerLikeTypeInterface.cpp
@@ -232,9 +232,10 @@ void TestPointerLikeTypeInterfacePass::testGenFree(Operation *op, Value result,
// Call the genFree API
auto typedResult = cast<TypedValue<PointerLikeType>>(result);
- // In this test context, we don't have the allocation result, so pass the result itself
- bool success =
- pointerType.genFree(newBuilder, loc, typedResult, result, result.getType());
+ // In this test context, we don't have the allocation result, so pass the
+ // result itself
+ bool success = pointerType.genFree(newBuilder, loc, typedResult, result,
+ result.getType());
if (success) {
llvm::errs() << "Successfully generated free for operation: ";
``````````
</details>
https://github.com/llvm/llvm-project/pull/162917
More information about the Mlir-commits
mailing list