mirror-llvm-project/llvm/examples
Tamir Duberstein e39ddab2bc
[llvm-c] Add LLVMParseIRInContext2 (#174085)
This new function is the same as LLVMParseIRInContext except it doesn't
take ownership of the memory buffer. This fixes a wart that has been in
place since 5ebb7b3112 changed the
underlying internal API to avoid taking ownership.

Reduce nesting in the implementation of LLVMParseIRInContext (now
LLVMParseIRInContext2) as well.

Update examples, OCaml bindings, and tests including plugging some
pre-existing memory leaks. OCaml bindings have renamed `parse_ir` to
`parse_ir_bitcode_or_assembly` to provoke compilation failures in
downstream code; this is intentional as this function now requires the
memory buffer to be disposed by the caller.
2026-01-08 16:50:05 +00:00
..
BrainF [IR] Replace of PointerType::getUnqual(Type) with opaque version (NFC) (#123909) 2025-01-23 18:23:05 +09:00
Bye [LLVM][NFC] Move PassPlugin from Passes to separate library 2025-12-22 18:11:34 +01:00
ExceptionDemo
Fibonacci
HowToUseJIT
HowToUseLLJIT
IRTransforms [LLVM][NFC] Move PassPlugin from Passes to separate library 2025-12-22 18:11:34 +01:00
Kaleidoscope [llvm] Use "= default" (NFC) (#166088) 2025-11-02 17:16:47 -08:00
ModuleMaker
OptSubcommand [llvm] Undo change to constructor in OptSubCommand example 2025-11-03 13:06:10 +00:00
OrcV2Examples [llvm-c] Add LLVMParseIRInContext2 (#174085) 2026-01-08 16:50:05 +00:00
ParallelJIT
SpeculativeJIT [SpeculativeJIT] Remove redundant return statement (#173146) 2025-12-20 19:13:26 +08:00
CMakeLists.txt [llvm] Add subcommand support for OptTable (#155026) 2025-10-06 12:11:00 -07:00