[llvm] [SandboxIR] Implement ReturnInst (PR #99784)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 13:37:32 PDT 2024


================
@@ -540,6 +540,48 @@ void StoreInst::dump() const {
   dump(dbgs());
   dbgs() << "\n";
 }
+#endif // NDEBUG
+
+Value *ReturnInst::create(Value *RetVal, Instruction *InsertBefore,
----------------
vporpo wrote:

Ah yes, in this case we can return `RetunInst *`. In some other cases it gets folded by the IRBuilder, but not here.

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


More information about the llvm-commits mailing list