[flang-commits] [flang] [OpenMP][MLIR] Add "IsolatedFromAbove" and "OutlineableOpenMPOpInterface" trait to omp.target (PR #67318)

via flang-commits flang-commits at lists.llvm.org
Wed Oct 25 10:11:49 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 92bebd3e72ece4dc7909a551ac1294b1c3acd900 -- 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/67318


More information about the flang-commits mailing list