Module Llvm_scalar_opts


module Llvm_scalar_opts: sig .. end
Scalar Transforms.

This interface provides an ocaml API for LLVM scalar transforms, the classes in the LLVMScalarOpts library.


val add_constant_propagation : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
See the llvm::createConstantPropogationPass function.
val add_instruction_combining : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
See the llvm::createInstructionCombiningPass function.
val add_memory_to_register_promotion : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
See the llvm::createPromoteMemoryToRegisterPass function.
val add_memory_to_register_demotion : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
See the llvm::createDemoteMemoryToRegisterPass function.
val add_reassociation : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
See the llvm::createReassociatePass function.
val add_gvn : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
See the llvm::createGVNPass function.
val add_cfg_simplification : [< Llvm.PassManager.any ] Llvm.PassManager.t -> unit
See the llvm::createCFGSimplificationPass function.