package llvm

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

Install

Dune Dependency

Authors

Maintainers

Sources

llvm-project-19.1.7.src.tar.xz
sha256=82401fea7b79d0078043f7598b835284d6650a75b93e64b6f761ea7b63097501
md5=0333b37c90e183d5298470d5b70a87e4

doc/llvm_target/Llvm_target/Target/index.html

Module Llvm_target.Target

type t
val default_triple : unit -> string

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

val first : unit -> t option

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

val succ : t -> t option

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

val all : unit -> t list

all () returns a list of known targets.

val by_name : string -> t option

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

val 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.

val name : t -> string

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

val description : t -> string

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

val has_jit : t -> bool

Returns true if the target has a JIT.

val has_target_machine : t -> bool

Returns true if the target has a target machine associated.

val has_asm_backend : t -> bool

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

OCaml

Innovation. Community. Security.