[llvm] [SandboxIR] Add more Instruction member functions (PR #98588)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 14:58:02 PDT 2024


================
@@ -623,6 +670,12 @@ class Context {
   DenseMap<llvm::Value *, std::unique_ptr<sandboxir::Value>>
       LLVMValueToValueMap;
 
+  /// Remove \p V from the maps and returns the unique_ptr.
+  std::unique_ptr<Value> detachLLVMValue(llvm::Value *V);
----------------
vporpo wrote:

These APIs are for internal use only. The user won't be able to detach values. The only way a user can delete a value is through the `eraseFromParent()` API, and this will be tracked and can be rolled back.

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


More information about the llvm-commits mailing list