[Mlir-commits] [mlir] [llvm] [OpenMP][MLIR][OMPIRBuilder] Add a small optional constant alloca raise function pass to finalize, utilised in convertTarget (PR #78818)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Feb 6 06:50:11 PST 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 bc82d1a6b7f8a795e923b10e8ef0fdc34628a48e b2c79ef858687a1f5d10100790860801efb56883 -- llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
index d378370baa..428f00abb8 100644
--- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
@@ -6039,7 +6039,7 @@ TEST_F(OpenMPIRBuilderTest, ConstantAllocaRaise) {
   };
 
   llvm::Value *RaiseAlloca = nullptr;
-      
+
   auto BodyGenCB = [&](OpenMPIRBuilder::InsertPointTy AllocaIP,
                        OpenMPIRBuilder::InsertPointTy CodeGenIP)
       -> OpenMPIRBuilder::InsertPointTy {
@@ -6087,7 +6087,7 @@ TEST_F(OpenMPIRBuilderTest, ConstantAllocaRaise) {
   EXPECT_EQ(Alloca1, RaiseAlloca);
 
   // Verify we have not altered the rest of the function
-  // inappropriately with our alloca movement. 
+  // inappropriately with our alloca movement.
   auto *Alloca2 = Alloca1->getNextNode();
   EXPECT_TRUE(isa<AllocaInst>(Alloca2));
   auto *Store2 = Alloca2->getNextNode();
@@ -6110,7 +6110,7 @@ TEST_F(OpenMPIRBuilderTest, ConstantAllocaRaise) {
   EXPECT_EQ(ConfigC->getAggregateElement(2U),
             ConstantInt::get(Type::getInt8Ty(Ctx), OMP_TGT_EXEC_MODE_GENERIC));
 
-   auto *EntryBlockBranch = EntryBlock.getTerminator();
+  auto *EntryBlockBranch = EntryBlock.getTerminator();
   EXPECT_NE(EntryBlockBranch, nullptr);
   EXPECT_EQ(EntryBlockBranch->getNumSuccessors(), 2U);
 

``````````

</details>


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


More information about the Mlir-commits mailing list