-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathcmm_builtins.mli
40 lines (37 loc) · 1.61 KB
/
cmm_builtins.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
(**************************************************************************)
(* *)
(* OCaml *)
(* *)
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
(* *)
(* Copyright 1996 Institut National de Recherche en Informatique et *)
(* en Automatique. *)
(* *)
(* All rights reserved. This file is distributed under the terms of *)
(* the GNU Lesser General Public License version 2.1, with the *)
(* special exception on linking described in the file LICENSE. *)
(* *)
(**************************************************************************)
open Cmm
(** Create a C function call. *)
val extcall :
dbg:Debuginfo.t ->
returns:bool ->
alloc:bool ->
is_c_builtin:bool ->
ty_args:exttype list ->
string ->
machtype ->
expression list ->
expression
(** [cextcall prim args dbg type_of_result] returns Cextcall operation that
corresponds to [prim]. If [prim] is a C builtin supported on the target,
returns [Cmm.operation] variant for [prim]'s intrinsics. *)
val cextcall :
Primitive.description ->
expression list ->
Debuginfo.t ->
machtype ->
exttype list ->
bool ->
expression