[flang-commits] [flang] [flang] Inline hlfir.copy_in for trivial types (PR #138718)
via flang-commits
flang-commits at lists.llvm.org
Thu May 22 07:24:15 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 -- flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRCopyIn.cpp flang/lib/Optimizer/Passes/Pipelines.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRCopyIn.cpp b/flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRCopyIn.cpp
index acaf59849..a6beada14 100644
--- a/flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRCopyIn.cpp
+++ b/flang/lib/Optimizer/HLFIR/Transforms/InlineHLFIRCopyIn.cpp
@@ -1,4 +1,5 @@
-//===- InlineHLFIRCopyIn.cpp - Inline hlfir.copy_in ops --------------------===//
+//===- InlineHLFIRCopyIn.cpp - Inline hlfir.copy_in ops
+//--------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
@@ -11,7 +12,6 @@
// when the input array is not behind a pointer. This may change in the future.
//===----------------------------------------------------------------------===//
-
#include "flang/Optimizer/Builder/FIRBuilder.h"
#include "flang/Optimizer/Builder/HLFIRTools.h"
#include "flang/Optimizer/Dialect/FIRType.h"
@@ -29,9 +29,9 @@ namespace hlfir {
#define DEBUG_TYPE "inline-hlfir-copy-in"
static llvm::cl::opt<bool> noInlineHLFIRCopyIn(
- "no-inline-hlfir-copy-in",
- llvm::cl::desc("Do not inline hlfir.copy_in operations"),
- llvm::cl::init(false));
+ "no-inline-hlfir-copy-in",
+ llvm::cl::desc("Do not inline hlfir.copy_in operations"),
+ llvm::cl::init(false));
namespace {
class InlineCopyInConversion : public mlir::OpRewritePattern<hlfir::CopyInOp> {
``````````
</details>
https://github.com/llvm/llvm-project/pull/138718
More information about the flang-commits
mailing list