[llvm-branch-commits] [flang] [flang] Lower omp.workshare to other omp constructs (PR #101446)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Sep 22 23:55:42 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 d5fbe9c7482b87be295be03aafd5917dd7c17859 79ac7998609480d18be4ea3bc61b6c1c77089f70 --extensions h,cpp,inc -- flang/lib/Optimizer/OpenMP/LowerWorkshare.cpp flang/include/flang/Optimizer/OpenMP/Passes.h flang/include/flang/Tools/CLOptions.inc flang/include/flang/Tools/CrossToolHelpers.h flang/lib/Frontend/FrontendActions.cpp flang/tools/bbc/bbc.cpp flang/tools/tco/tco.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/include/flang/Tools/CLOptions.inc b/flang/include/flang/Tools/CLOptions.inc
index bb00e07900..81ce69b4ec 100644
--- a/flang/include/flang/Tools/CLOptions.inc
+++ b/flang/include/flang/Tools/CLOptions.inc
@@ -336,8 +336,8 @@ inline void createDefaultFIROptimizerPassPipeline(
/// \param pm - MLIR pass manager that will hold the pipeline definition
/// \param optLevel - optimization level used for creating FIR optimization
/// passes pipeline
-inline void createHLFIRToFIRPassPipeline(
- mlir::PassManager &pm, bool enableOpenMP, llvm::OptimizationLevel optLevel = defaultOptLevel) {
+inline void createHLFIRToFIRPassPipeline(mlir::PassManager &pm,
+ bool enableOpenMP, llvm::OptimizationLevel optLevel = defaultOptLevel) {
if (optLevel.isOptimizingForSpeed()) {
addCanonicalizerPassWithoutRegionSimplification(pm);
addNestedPassToAllTopLevelOperations(
``````````
</details>
https://github.com/llvm/llvm-project/pull/101446
More information about the llvm-branch-commits
mailing list