module Target:sig..end
type t
val default_triple : unit -> stringdefault_triple () returns the default target triple for current
platform.
val first : unit -> t optionfirst () returns the first target in the registered targets
list, or None.
val succ : t -> t optionsucc t returns the next target after t, or None
if t was the last target.
val all : unit -> t listall () returns a list of known targets.
val by_name : string -> t optionby_name name returns Some t if a target t named name is
registered, or None otherwise.
val by_triple : string -> tby_triple triple returns a target for a triple triple, or raises
Error if triple does not correspond to a registered target.
val name : t -> stringReturns the name of a target. See llvm::Target::getName.
val description : t -> stringReturns the description of a target.
See llvm::Target::getDescription.
val has_jit : t -> boolReturns true if the target has a JIT.
val has_target_machine : t -> boolReturns true if the target has a target machine associated.
val has_asm_backend : t -> boolReturns true if the target has an ASM backend (required for
emitting output).