[llvm] [SandboxIR] Add callbacks for instruction insert/remove/move ops. (PR #112965)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 18 13:00:28 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 0a53f43c0c7e33cde07b24169e8f45db7eba2fea 56ffef4a97b888e1c53153f71301befdc3cfd24d --extensions h,cpp -- llvm/include/llvm/SandboxIR/Context.h llvm/lib/SandboxIR/Context.cpp llvm/lib/SandboxIR/Instruction.cpp llvm/unittests/SandboxIR/SandboxIRTest.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/unittests/SandboxIR/SandboxIRTest.cpp b/llvm/unittests/SandboxIR/SandboxIRTest.cpp
index 786580d104..40d52153aa 100644
--- a/llvm/unittests/SandboxIR/SandboxIRTest.cpp
+++ b/llvm/unittests/SandboxIR/SandboxIRTest.cpp
@@ -6040,7 +6040,7 @@ TEST_F(SandboxIRTest, InstructionCallbacks) {
   Ctx.unregisterRemoveInstrCallback(RemoveCbId);
   Ctx.unregisterMoveInstrCallback(MoveCbId);
   auto *NewI2 = sandboxir::StoreInst::create(Val, Ptr, /*Align=*/std::nullopt,
-                                            Ret->getIterator(), Ctx);
+                                             Ret->getIterator(), Ctx);
   Ret->moveBefore(NewI2);
   Ret->eraseFromParent();
   EXPECT_THAT(Inserted, testing::IsEmpty());

``````````

</details>


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


More information about the llvm-commits mailing list