[Openmp-commits] [llvm] [openmp] [mlir] [OpenMP][OMPIRBuilder] Handle replace uses of ConstantExpr's inside of Target regions (PR #71891)

via Openmp-commits openmp-commits at lists.llvm.org
Thu Nov 9 20:11:25 PST 2023

github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->

:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

You can test this locally with the following command:

git-clang-format --diff 0e7b30fa821dd4899227aa643030f4e4164f4e56 79ab9f8755e13446bf68e4a86fff60e95e26987a -- llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp


View the diff from clang-format here.

diff --git a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
index 5b6960c70..e28e2c665 100644
--- a/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+++ b/llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
@@ -4813,7 +4813,7 @@ static Function *createOutlinedFunction(
     Value *Input = std::get<0>(InArg);
     Argument &Arg = std::get<1>(InArg);
     Value *InputCopy = nullptr;
         ArgAccessorFuncCB(Arg, Input, InputCopy, AllocaIP, Builder.saveIP()));
@@ -4840,7 +4840,7 @@ static Function *createOutlinedFunction(
     for (User *User : make_early_inc_range(Input->users()))
       if (auto *Const = dyn_cast<Constant>(User))
-          ReplaceConstantUsedInFunction(Const, Func);
+        ReplaceConstantUsedInFunction(Const, Func);
     // Collect all the instructions
     for (User *User : make_early_inc_range(Input->users())) {




More information about the Openmp-commits mailing list