1*49610eddSAlan /*===-- target_ocaml.h - LLVM OCaml Glue ------------------------*- C++ -*-===*\ 2*49610eddSAlan |* *| 3*49610eddSAlan |* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| 4*49610eddSAlan |* Exceptions. *| 5*49610eddSAlan |* See https://llvm.org/LICENSE.txt for license information. *| 6*49610eddSAlan |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| 7*49610eddSAlan |* *| 8*49610eddSAlan |*===----------------------------------------------------------------------===*| 9*49610eddSAlan |* *| 10*49610eddSAlan |* This file glues LLVM's OCaml interface to its C interface. These functions *| 11*49610eddSAlan |* are by and large transparent wrappers to the corresponding C functions. *| 12*49610eddSAlan |* *| 13*49610eddSAlan |* Note that these functions intentionally take liberties with the CAMLparamX *| 14*49610eddSAlan |* macros, since most of the parameters are not GC heap objects. *| 15*49610eddSAlan |* *| 16*49610eddSAlan \*===----------------------------------------------------------------------===*/ 17*49610eddSAlan 18*49610eddSAlan #define TargetMachine_val(v) (*(LLVMTargetMachineRef *)(Data_custom_val(v))) 19