Skip to content

Commit 23cbd99

Browse files
committed
dce primitive
1 parent bd69245 commit 23cbd99

File tree

2 files changed

+0
-35
lines changed

2 files changed

+0
-35
lines changed

compiler/ml/primitive.ml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
open Misc
1919
open Parsetree
2020

21-
type boxed_integer = Pbigint | Pint32 | Pint64
22-
2321
type description = {
2422
prim_name: string; (* Name of primitive or C function *)
2523
prim_arity: int; (* Number of arguments *)
@@ -32,24 +30,6 @@ type description = {
3230
let coerce : (description -> description -> bool) ref =
3331
ref (fun (p1 : description) (p2 : description) -> p1 = p2)
3432

35-
let simple ~name ~arity ~alloc =
36-
{
37-
prim_name = name;
38-
prim_arity = arity;
39-
prim_alloc = alloc;
40-
prim_native_name = "";
41-
prim_from_constructor = false;
42-
}
43-
44-
let make ~name ~alloc ~native_name ~arity =
45-
{
46-
prim_name = name;
47-
prim_arity = arity;
48-
prim_alloc = alloc;
49-
prim_native_name = native_name;
50-
prim_from_constructor = false;
51-
}
52-
5333
let parse_declaration valdecl ~arity ~from_constructor =
5434
let name, native_name =
5535
match valdecl.pval_prim with
@@ -73,8 +53,3 @@ let print p osig_val_decl =
7353
else [p.prim_name]
7454
in
7555
{osig_val_decl with oval_prims = prims; oval_attributes = []}
76-
77-
let native_name p =
78-
if p.prim_native_name <> "" then p.prim_native_name else p.prim_name
79-
80-
let byte_name p = p.prim_name

compiler/ml/primitive.mli

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
(* Description of primitive functions *)
1717

18-
type boxed_integer = Pbigint | Pint32 | Pint64
19-
2018
type description = private {
2119
prim_name: string; (* Name of primitive or C function *)
2220
prim_arity: int; (* Number of arguments *)
@@ -28,11 +26,6 @@ type description = private {
2826

2927
(* Invariant [List.length d.prim_native_repr_args = d.prim_arity] *)
3028

31-
val simple : name:string -> arity:int -> alloc:bool -> description
32-
33-
val make :
34-
name:string -> alloc:bool -> native_name:string -> arity:int -> description
35-
3629
val parse_declaration :
3730
Parsetree.value_description ->
3831
arity:int ->
@@ -41,7 +34,4 @@ val parse_declaration :
4134

4235
val print : description -> Outcometree.out_val_decl -> Outcometree.out_val_decl
4336

44-
val native_name : description -> string
45-
val byte_name : description -> string
46-
4737
val coerce : (description -> description -> bool) ref

0 commit comments

Comments
 (0)