[Mlir-commits] [mlir] [OpenMP][MLIR] OMPEarlyOutliningPass removal (PR #67319)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Oct 25 10:13:47 PDT 2023


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 7ce613fc77af092dd6e9db71ce3747b75bc5616e 401106655dd38d5e425fcb3c15f37d61042384a0 -- flang/include/flang/Optimizer/Transforms/Passes.h flang/lib/Lower/OpenMP.cpp mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
index 2eeb12b9dc9e..1a7c516256be 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -1713,9 +1713,11 @@ static void genMapInfos(llvm::IRBuilderBase &builder,
       mapFlag |= llvm::omp::OpenMPOffloadMappingFlags::OMP_MAP_TARGET_PARAM;
 
     combinedInfo.Types.emplace_back(mapFlag);
-    combinedInfo.Sizes.emplace_back(builder.getInt64(getSizeInBytes(
-        DL, mapInfoOp.getVarPtr() ? mapInfoOp.getVarPtr().getType()
-                                  : mapInfoOp.getVal().getType(), mapInfoOp.getVarType())));
+    combinedInfo.Sizes.emplace_back(builder.getInt64(
+        getSizeInBytes(DL,
+                       mapInfoOp.getVarPtr() ? mapInfoOp.getVarPtr().getType()
+                                             : mapInfoOp.getVal().getType(),
+                       mapInfoOp.getVarType())));
     index++;
   }
 

``````````

</details>


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


More information about the Mlir-commits mailing list