[llvm] [SandboxIR] Implement PHINodes (PR #101111)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 30 13:37:15 PDT 2024


================
@@ -1301,6 +1407,11 @@ Context::createGetElementPtrInst(llvm::GetElementPtrInst *I) {
   return cast<GetElementPtrInst>(registerValue(std::move(NewPtr)));
 }
 
+PHINode *Context::createPHINode(llvm::PHINode *I) {
+  auto NewPtr = std::unique_ptr<PHINode>(new PHINode(I, *this));
+  return cast<PHINode>(registerValue(std::move(NewPtr)));
----------------
Sterling-Augustine wrote:

That ends up being different from the others, like on the code just above this one. Should we change them all?

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


More information about the llvm-commits mailing list