[llvm] [SandboxIR] Implement PHINodes (PR #101111)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 15:13: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 d9c85338ea9baa0290725e36c5ba548347a57e18 0aee8c683ee61a6ec9010c783f612f62a265eaff --extensions cpp,h -- llvm/include/llvm/SandboxIR/SandboxIR.h llvm/include/llvm/SandboxIR/Tracker.h llvm/include/llvm/SandboxIR/Use.h llvm/lib/SandboxIR/SandboxIR.cpp llvm/lib/SandboxIR/Tracker.cpp llvm/unittests/SandboxIR/SandboxIRTest.cpp llvm/unittests/SandboxIR/TrackerTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/SandboxIR/SandboxIR.h b/llvm/include/llvm/SandboxIR/SandboxIR.h
index d7f05d6a24..8a3517df29 100644
--- a/llvm/include/llvm/SandboxIR/SandboxIR.h
+++ b/llvm/include/llvm/SandboxIR/SandboxIR.h
@@ -1368,7 +1368,7 @@ public:
LLVM_DUMP_METHOD void dump() const override;
#endif
};
-
+
class PHINode final : public Instruction {
/// Use Context::createPHINode(). Don't call the constructor directly.
PHINode(llvm::PHINode *PHI, Context &Ctx)
diff --git a/llvm/unittests/SandboxIR/SandboxIRTest.cpp b/llvm/unittests/SandboxIR/SandboxIRTest.cpp
index ef23eb095c..7162a0d7f3 100644
--- a/llvm/unittests/SandboxIR/SandboxIRTest.cpp
+++ b/llvm/unittests/SandboxIR/SandboxIRTest.cpp
@@ -1622,8 +1622,7 @@ define void @foo(ptr %ptr) {
}
)IR");
Function &LLVMF = *M->getFunction("foo");
-<
- sandboxir::Context Ctx(C);
+ < sandboxir::Context Ctx(C);
sandboxir::Function *F = Ctx.createFunction(&LLVMF);
unsigned ArgIdx = 0;
auto *Arg = F->getArg(ArgIdx++);
``````````
</details>
https://github.com/llvm/llvm-project/pull/101111
More information about the llvm-commits
mailing list