package llvm
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=82401fea7b79d0078043f7598b835284d6650a75b93e64b6f761ea7b63097501
md5=0333b37c90e183d5298470d5b70a87e4
doc/llvm_target/Llvm_target/TargetMachine/index.html
Module Llvm_target.TargetMachine
val create :
triple:string ->
?cpu:string ->
?features:string ->
?level:CodeGenOptLevel.t ->
?reloc_mode:RelocMode.t ->
?code_model:CodeModel.t ->
Target.t ->
tCreates a new target machine. See llvm::Target::createTargetMachine.
val triple : t -> stringReturns the triple used while creating this target machine. See llvm::TargetMachine::getTriple.
val cpu : t -> stringReturns the CPU used while creating this target machine. See llvm::TargetMachine::getCPU.
val data_layout : t -> DataLayout.tReturns the data layout of this target machine.
val features : t -> stringReturns the feature string used while creating this target machine. See llvm::TargetMachine::getFeatureString.
val set_verbose_asm : bool -> t -> unitSets the assembly verbosity of this target machine. See llvm::TargetMachine::setAsmVerbosity.
val set_fast_isel : bool -> t -> unitEnable fast-path instruction selection. See llvm::TargetMachine::setFastISel.
val set_global_isel : bool -> t -> unitEnable global instruction selection. See llvm::TargetMachine::setGlobalISel.
val set_global_isel_abort : ?mode:GlobalISelAbortMode.t -> t -> unitSet abort behaviour when global instruction selection fails to lower/select an instruction. See llvm::TargetMachine::setGlobalISelAbort.
val set_machine_outliner : bool -> t -> unitEnable the MachineOutliner pass. See llvm::TargetMachine::setMachineOutliner.
val emit_to_file : Llvm.llmodule -> CodeGenFileType.t -> string -> t -> unitEmits assembly or object data for the given module to the given file or raise Error.
val emit_to_memory_buffer :
Llvm.llmodule ->
CodeGenFileType.t ->
t ->
Llvm.llmemorybufferEmits assembly or object data for the given module to a fresh memory buffer or raise Error.