[llvm] [SandboxIR] Implement PHINodes (PR #101111)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 19:15:13 PDT 2024
================
@@ -1290,6 +1292,97 @@ class GetElementPtrInst final : public Instruction {
#endif
};
+class PHINode final : public Instruction {
+ /// Use Context::createPHINode(). Don't call the
+ /// constructor directly.
+ PHINode(llvm::PHINode *PHI, Context &Ctx)
+ : Instruction(ClassID::PHI, Opcode::PHI, PHI, Ctx) {}
+ friend Context; // for SBPHINode()
----------------
vporpo wrote:
SBPHINode -> PHINode
https://github.com/llvm/llvm-project/pull/101111
More information about the llvm-commits
mailing list