llvm-capstone/llvm/bindings/ocaml/target
Yingwei Zheng 30416f39be
[llvm-c] Improve TargetMachine bindings (#70806)
This PR exposes four APIs to C/OCaml bindings for `TargetMachine`:
```
/** Enable fast-path instruction selection. */
void LLVMSetTargetMachineFastISel(LLVMTargetMachineRef T, LLVMBool Enable);

/** Enable global instruction selection. */
void LLVMSetTargetMachineGlobalISel(LLVMTargetMachineRef T, LLVMBool Enable);

/** Set abort behaviour when global instruction selection fails to lower/select
 * an instruction. */
void LLVMSetTargetMachineGlobalISelAbort(LLVMTargetMachineRef T,
                                         LLVMGlobalISelAbortMode Mode);

/** Enable the MachineOutliner pass. */
void LLVMSetTargetMachineMachineOutliner(LLVMTargetMachineRef T,
                                         LLVMBool Enable);
```

Fixes #70666.
2023-11-01 11:44:19 +08:00
..
CMakeLists.txt [OCaml][NPM] Add OCaml bindings to new pass manager 2023-09-16 16:06:14 -04:00
llvm_target.ml [llvm-c] Improve TargetMachine bindings (#70806) 2023-11-01 11:44:19 +08:00
llvm_target.mli [llvm-c] Improve TargetMachine bindings (#70806) 2023-11-01 11:44:19 +08:00
target_ocaml.c [llvm-c] Improve TargetMachine bindings (#70806) 2023-11-01 11:44:19 +08:00
target_ocaml.h [OCaml][NPM] Add OCaml bindings to new pass manager 2023-09-16 16:06:14 -04:00