package llvm

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

Install

Dune Dependency

Authors

Maintainers

Sources

llvm-dune-full-minified-16.0.6.tar.gz
md5=d2bf13c08c943c69f1a29ec5b830c143
sha512=6abc12221eeea6bb26f457dee5f8a077d945583a48891bef7249e6129b8125a5151b92dec0cefc09b124fe988cea8c521123c95d74dd4cd9d87a282c17865fe2

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.