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

Module Llvm_target.TargetMachineSource

Sourcetype t
Sourceval create : triple:string -> ?cpu:string -> ?features:string -> ?level:CodeGenOptLevel.t -> ?reloc_mode:RelocMode.t -> ?code_model:CodeModel.t -> Target.t -> t

Creates a new target machine. See llvm::Target::createTargetMachine.

Sourceval target : t -> Target.t

Returns the Target used in a TargetMachine

Sourceval triple : t -> string

Returns the triple used while creating this target machine. See llvm::TargetMachine::getTriple.

Sourceval cpu : t -> string

Returns the CPU used while creating this target machine. See llvm::TargetMachine::getCPU.

Sourceval data_layout : t -> DataLayout.t

Returns the data layout of this target machine.

Sourceval features : t -> string

Returns the feature string used while creating this target machine. See llvm::TargetMachine::getFeatureString.

Sourceval add_analysis_passes : [< Llvm.PassManager.any ] Llvm.PassManager.t -> t -> unit

Adds the target-specific analysis passes to the pass manager. See llvm::TargetMachine::addAnalysisPasses.

Sourceval set_verbose_asm : bool -> t -> unit

Sets the assembly verbosity of this target machine. See llvm::TargetMachine::setAsmVerbosity.

Sourceval emit_to_file : Llvm.llmodule -> CodeGenFileType.t -> string -> t -> unit

Emits assembly or object data for the given module to the given file or raise Error.

Sourceval emit_to_memory_buffer : Llvm.llmodule -> CodeGenFileType.t -> t -> Llvm.llmemorybuffer

Emits assembly or object data for the given module to a fresh memory buffer or raise Error.

OCaml

Innovation. Community. Security.