[OCaml] Expose Llvm_target.TargetMachine.add_analysis_passes.
[oota-llvm.git] / bindings / ocaml / target / llvm_target.mli
index ca91e0d9105e009f93138ac8fd473b0ac5547017..676bc613c649c4b21c86d29f5b881ba17c246dad 100644 (file)
@@ -207,6 +207,10 @@ module TargetMachine : sig
   (** Returns the data layout of this target machine. *)
   val data_layout : t -> DataLayout.t
 
+  (** Adds the target-specific analysis passes to the pass manager.
+      See [llvm::TargetMachine::addAnalysisPasses]. *)
+  val add_analysis_passes : [< Llvm.PassManager.any ] Llvm.PassManager.t -> t -> unit
+
   (** Sets the assembly verbosity of this target machine.
       See [llvm::TargetMachine::setAsmVerbosity]. *)
   val set_verbose_asm : bool -> t -> unit