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_target_static/Llvm_target/Target/index.html

Module Llvm_target.TargetSource

Sourcetype t
Sourceval default_triple : unit -> string

default_triple () returns the default target triple for current platform.

Sourceval first : unit -> t option

first () returns the first target in the registered targets list, or None.

Sourceval succ : t -> t option

succ t returns the next target after t, or None if t was the last target.

Sourceval all : unit -> t list

all () returns a list of known targets.

Sourceval by_name : string -> t option

by_name name returns Some t if a target t named name is registered, or None otherwise.

Sourceval by_triple : string -> t

by_triple triple returns a target for a triple triple, or raises Error if triple does not correspond to a registered target.

Sourceval name : t -> string

Returns the name of a target. See llvm::Target::getName.

Sourceval description : t -> string

Returns the description of a target. See llvm::Target::getDescription.

Sourceval has_jit : t -> bool

Returns true if the target has a JIT.

Sourceval has_target_machine : t -> bool

Returns true if the target has a target machine associated.

Sourceval has_asm_backend : t -> bool

Returns true if the target has an ASM backend (required for emitting output).

OCaml

Innovation. Community. Security.