package llvm

  1. Overview
  2. Docs
The OCaml bindings distributed with LLVM

Install

Dune Dependency

Authors

Maintainers

Sources

llvm-dune-full-minified-15.0.7+nnp-3.tar.gz
md5=c81299338fdd29961ec659f0239e6d8c
sha512=186c8b9f2b5ed61150214b7e8046f08f66bfbcad3af3dc946c4840ff57ca9fcbc0f15c32f8b062b9cc331bdb02a8315afaad6d3810a3b56d7348db2fd376699a

doc/llvm_bitwriter_static/Llvm_bitwriter/index.html

Module Llvm_bitwriterSource

Bitcode writer.

This interface provides an OCaml API for the LLVM bitcode writer, the classes in the Bitwriter library.

Sourceval write_bitcode_file : Llvm.llmodule -> string -> bool

write_bitcode_file m path writes the bitcode for module m to the file at path. Returns true if successful, false otherwise.

Sourceval write_bitcode_to_fd : ?unbuffered:bool -> Llvm.llmodule -> Unix.file_descr -> bool

write_bitcode_to_fd ~unbuffered fd m writes the bitcode for module m to the channel c. If unbuffered is true, after every write the fd will be flushed. Returns true if successful, false otherwise.

Sourceval write_bitcode_to_memory_buffer : Llvm.llmodule -> Llvm.llmemorybuffer

write_bitcode_to_memory_buffer m returns a memory buffer containing the bitcode for module m.

Sourceval output_bitcode : ?unbuffered:bool -> Stdlib.out_channel -> Llvm.llmodule -> bool

output_bitcode ~unbuffered c m writes the bitcode for module m to the channel c. If unbuffered is true, after every write the fd will be flushed. Returns true if successful, false otherwise.

OCaml

Innovation. Community. Security.