[llvm] [llvm-c] Add LLVMParseIRInContext2 (PR #174085)

Tamir Duberstein via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 8 08:18:30 PST 2026


================
@@ -182,6 +182,13 @@ Changes to the X86 Backend
 Changes to the OCaml bindings
 -----------------------------
 
+* The IR reader bindings renamed `parse_ir` to
+  `parse_ir_bitcode_or_assembly` to clarify that the parser accepts both
+  textual IR and bitcode. This rename is intentional to force existing code to
+  update because the ownership semantics changed: the function does not take
+  ownership of the input memory buffer. Tests/examples now explicitly dispose
+  of buffers and modules.
----------------
tamird wrote:

Done.

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


More information about the llvm-commits mailing list