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_bitreader_static/Llvm_bitreader/index.html

Module Llvm_bitreaderSource

Bitcode reader.

This interface provides an OCaml API for the LLVM bitcode reader, the classes in the Bitreader library.

Sourceexception Error of string

get_module context mb reads the bitcode for a new module m from the memory buffer mb in the context context. Returns m if successful, or raises Error msg otherwise, where msg is a description of the error encountered. See the function llvm::getBitcodeModule.

parse_bitcode context mb parses the bitcode for a new module m from the memory buffer mb in the context context. Returns m if successful, or raises Error msg otherwise, where msg is a description of the error encountered. See the function llvm::ParseBitcodeFile.