package llvm

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

llvm-dune-full-minified-17.0.6.tar.gz
md5=163c178e4e2db637715d6ddc647e9f4e
sha512=0467616a1262ac667116bec69a2479a438b99d77f7cfd68622dc59013771cd62a0b06c64fa8ed13efbcf6bb0e4b86db34e1b024261475ae75b1b9206e3e5e491

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.