[Mlir-commits] [mlir] [MLIR][OpenMP] Skip host omp ops when compiling for the target device (PR #85239)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Mar 14 08:09:24 PDT 2024
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 f8fab2126ffab713f4ab4619360b6941be6d4e35 01a1c1baec0474b7e64beb5b68b93fa4c8e2d8bc -- 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 9ad0b99078..2d3ab141dd 100644
--- a/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+++ b/mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
@@ -3085,9 +3085,7 @@ convertTopLevelTargetOp(Operation *op, llvm::IRBuilderBase &builder,
omp::YieldOp, omp::TerminatorOp, omp::ReductionDeclareOp,
omp::ThreadprivateOp, omp::DistributeOp, omp::MapInfoOp,
omp::DataBoundsOp, omp::CriticalDeclareOp>(
- [&](auto op) {
- return success();
- })
+ [&](auto op) { return success(); })
.Default([&](Operation *inst) {
return inst->emitError("unsupported OpenMP operation: ")
<< inst->getName();
``````````
</details>
https://github.com/llvm/llvm-project/pull/85239
More information about the Mlir-commits
mailing list