File tree Expand file tree Collapse file tree 11 files changed +26
-26
lines changed Expand file tree Collapse file tree 11 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ let rec no_side_effects (lam : Lam.t) : bool =
59
59
(* bool primitives *)
60
60
| Psequand | Psequor | Pnot | Pboolcomp _ | Pboolorder | Pboolmin | Pboolmax
61
61
(* int primitives *)
62
- | Pnegint | Paddint | Psubint | Pmulint | Ppowint | P_bitnot_int | Pandint
62
+ | Pnegint | Paddint | Psubint | Pmulint | Ppowint | Pnotint | Pandint
63
63
| Porint | Pxorint | Plslint | Plsrint | Pasrint | Pintcomp _ | Pintorder
64
64
| Pintmin | Pintmax
65
65
(* float primitives *)
@@ -68,8 +68,8 @@ let rec no_side_effects (lam : Lam.t) : bool =
68
68
| Pfloatmin | Pfloatmax
69
69
(* bigint primitives *)
70
70
| Pnegbigint | Paddbigint | Psubbigint | Pmulbigint | Ppowbigint
71
- | P_bitnot_bigint | Pandbigint | Porbigint | Pxorbigint | Plslbigint
72
- | Pasrbigint | Pbigintcomp _ | Pbigintorder | Pbigintmin | Pbigintmax
71
+ | Pnotbigint | Pandbigint | Porbigint | Pxorbigint | Plslbigint | Pasrbigint
72
+ | Pbigintcomp _ | Pbigintorder | Pbigintmin | Pbigintmax
73
73
(* string primitives *)
74
74
| Pstringlength | Pstringrefu | Pstringrefs | Pstringcomp _ | Pstringorder
75
75
| Pstringmin | Pstringmax
Original file line number Diff line number Diff line change @@ -283,11 +283,11 @@ let translate output_prefix loc (cxt : Lam_compile_context.t)
283
283
match args with
284
284
| [e1; e2] -> E. bigint_op Asr e1 e2
285
285
| _ -> assert false )
286
- | P_bitnot_int -> (
286
+ | Pnotint -> (
287
287
match args with
288
288
| [e] -> E. int_bnot e
289
289
| _ -> assert false )
290
- | P_bitnot_bigint -> (
290
+ | Pnotbigint -> (
291
291
match args with
292
292
| [e] -> E. int_bnot e
293
293
| _ -> assert false )
Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ let lam_prim ~primitive:(p : Lambda.primitive) ~args loc : Lam.t =
253
253
| Pandint -> prim ~primitive: Pandint ~args loc
254
254
| Porint -> prim ~primitive: Porint ~args loc
255
255
| Pxorint -> prim ~primitive: Pxorint ~args loc
256
- | P_bitnot_int -> prim ~primitive: P_bitnot_int ~args loc
256
+ | Pnotint -> prim ~primitive: Pnotint ~args loc
257
257
| Plslint -> prim ~primitive: Plslint ~args loc
258
258
| Plsrint -> prim ~primitive: Plsrint ~args loc
259
259
| Pasrint -> prim ~primitive: Pasrint ~args loc
@@ -297,7 +297,7 @@ let lam_prim ~primitive:(p : Lambda.primitive) ~args loc : Lam.t =
297
297
| Pandbigint -> prim ~primitive: Pandbigint ~args loc
298
298
| Porbigint -> prim ~primitive: Porbigint ~args loc
299
299
| Pxorbigint -> prim ~primitive: Pxorbigint ~args loc
300
- | P_bitnot_bigint -> prim ~primitive: P_bitnot_bigint ~args loc
300
+ | Pnotbigint -> prim ~primitive: Pnotbigint ~args loc
301
301
| Plslbigint -> prim ~primitive: Plslbigint ~args loc
302
302
| Pasrbigint -> prim ~primitive: Pasrbigint ~args loc
303
303
| Pbigintcomp x -> prim ~primitive: (Pbigintcomp x) ~args loc
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ type t =
77
77
| Pandint
78
78
| Porint
79
79
| Pxorint
80
- | P_bitnot_int
80
+ | Pnotint
81
81
| Plslint
82
82
| Plsrint
83
83
| Pasrint
@@ -112,7 +112,7 @@ type t =
112
112
| Pandbigint
113
113
| Porbigint
114
114
| Pxorbigint
115
- | P_bitnot_bigint
115
+ | Pnotbigint
116
116
| Plslbigint
117
117
| Pasrbigint
118
118
| Pbigintcomp of Lam_compat .comparison
@@ -203,15 +203,15 @@ let eq_primitive_approx (lhs : t) (rhs : t) =
203
203
| Psequand | Psequor | Pnot | Pboolcomp _ | Pboolorder | Pboolmin | Pboolmax
204
204
(* int primitives *)
205
205
| Pisint | Pnegint | Paddint | Psubint | Pmulint | Pdivint | Pmodint | Ppowint
206
- | P_bitnot_int | Pandint | Porint | Pxorint | Plslint | Plsrint | Pasrint
206
+ | Pnotint | Pandint | Porint | Pxorint | Plslint | Plsrint | Pasrint
207
207
| Pintorder | Pintmin | Pintmax
208
208
(* float primitives *)
209
209
| Pintoffloat | Pfloatofint | Pnegfloat | Paddfloat | Psubfloat | Pmulfloat
210
210
| Pdivfloat | Pmodfloat | Ppowfloat | Pfloatorder | Pfloatmin | Pfloatmax
211
211
(* bigint primitives *)
212
212
| Pnegbigint | Paddbigint | Psubbigint | Pmulbigint | Pdivbigint | Pmodbigint
213
- | Ppowbigint | P_bitnot_bigint | Pandbigint | Porbigint | Pxorbigint
214
- | Plslbigint | Pasrbigint | Pbigintorder | Pbigintmin | Pbigintmax
213
+ | Ppowbigint | Pnotbigint | Pandbigint | Porbigint | Pxorbigint | Plslbigint
214
+ | Pasrbigint | Pbigintorder | Pbigintmin | Pbigintmax
215
215
(* string primitives *)
216
216
| Pstringlength | Pstringrefu | Pstringrefs | Pstringadd | Pstringcomp _
217
217
| Pstringorder | Pstringmin | Pstringmax
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ type t =
72
72
| Pandint
73
73
| Porint
74
74
| Pxorint
75
- | P_bitnot_int
75
+ | Pnotint
76
76
| Plslint
77
77
| Plsrint
78
78
| Pasrint
@@ -107,7 +107,7 @@ type t =
107
107
| Pandbigint
108
108
| Porbigint
109
109
| Pxorbigint
110
- | P_bitnot_bigint
110
+ | Pnotbigint
111
111
| Plslbigint
112
112
| Pasrbigint
113
113
| Pbigintcomp of Lam_compat .comparison
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ let primitive ppf (prim : Lam_primitive.t) =
119
119
| Pandint -> fprintf ppf " and"
120
120
| Porint -> fprintf ppf " or"
121
121
| Pxorint -> fprintf ppf " xor"
122
- | P_bitnot_int -> fprintf ppf " ~~"
122
+ | Pnotint -> fprintf ppf " ~~"
123
123
| Plslint -> fprintf ppf " lsl"
124
124
| Plsrint -> fprintf ppf " lsr"
125
125
| Pasrint -> fprintf ppf " asr"
@@ -162,7 +162,7 @@ let primitive ppf (prim : Lam_primitive.t) =
162
162
| Pandbigint -> fprintf ppf " and"
163
163
| Porbigint -> fprintf ppf " or"
164
164
| Pxorbigint -> fprintf ppf " xor"
165
- | P_bitnot_bigint -> fprintf ppf " ~~"
165
+ | Pnotbigint -> fprintf ppf " ~~"
166
166
| Plslbigint -> fprintf ppf " lsl"
167
167
| Pasrbigint -> fprintf ppf " asr"
168
168
| Pbigintcomp Ceq -> fprintf ppf " =="
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ type primitive =
210
210
| Pandint
211
211
| Porint
212
212
| Pxorint
213
- | P_bitnot_int
213
+ | Pnotint
214
214
| Plslint
215
215
| Plsrint
216
216
| Pasrint
@@ -246,7 +246,7 @@ type primitive =
246
246
| Pandbigint
247
247
| Porbigint
248
248
| Pxorbigint
249
- | P_bitnot_bigint
249
+ | Pnotbigint
250
250
| Plslbigint
251
251
| Pasrbigint
252
252
| Pbigintcomp of comparison
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ type primitive =
177
177
| Pandint
178
178
| Porint
179
179
| Pxorint
180
- | P_bitnot_int
180
+ | Pnotint
181
181
| Plslint
182
182
| Plsrint
183
183
| Pasrint
@@ -213,7 +213,7 @@ type primitive =
213
213
| Pandbigint
214
214
| Porbigint
215
215
| Pxorbigint
216
- | P_bitnot_bigint
216
+ | Pnotbigint
217
217
| Plslbigint
218
218
| Pasrbigint
219
219
| Pbigintcomp of comparison
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ let primitive ppf = function
152
152
| Pandint -> fprintf ppf " and"
153
153
| Porint -> fprintf ppf " or"
154
154
| Pxorint -> fprintf ppf " xor"
155
- | P_bitnot_int -> fprintf ppf " ~~"
155
+ | Pnotint -> fprintf ppf " ~~"
156
156
| Plslint -> fprintf ppf " lsl"
157
157
| Plsrint -> fprintf ppf " lsr"
158
158
| Pasrint -> fprintf ppf " asr"
@@ -194,7 +194,7 @@ let primitive ppf = function
194
194
| Pandbigint -> fprintf ppf " and"
195
195
| Porbigint -> fprintf ppf " or"
196
196
| Pxorbigint -> fprintf ppf " xor"
197
- | P_bitnot_bigint -> fprintf ppf " ~~"
197
+ | Pnotbigint -> fprintf ppf " ~~"
198
198
| Plslbigint -> fprintf ppf " lsl"
199
199
| Pasrbigint -> fprintf ppf " asr"
200
200
| Pdivbigint -> fprintf ppf " /"
Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ let primitives_table =
276
276
(" %mulint" , Pmulint );
277
277
(" %divint" , Pdivint );
278
278
(" %modint" , Pmodint );
279
- (" %bitnot_int" , P_bitnot_int );
279
+ (" %bitnot_int" , Pnotint );
280
280
(" %andint" , Pandint );
281
281
(" %orint" , Porint );
282
282
(" %xorint" , Pxorint );
@@ -323,7 +323,7 @@ let primitives_table =
323
323
(" %lebigint" , Pbigintcomp Cle );
324
324
(" %gtbigint" , Pbigintcomp Cgt );
325
325
(" %gebigint" , Pbigintcomp Cge );
326
- (" %bitnot_bigint" , P_bitnot_bigint );
326
+ (" %bitnot_bigint" , Pnotbigint );
327
327
(" %andbigint" , Pandbigint );
328
328
(" %orbigint" , Porbigint );
329
329
(" %xorbigint" , Pxorbigint );
Original file line number Diff line number Diff line change @@ -213,10 +213,10 @@ let entries =
213
213
form = Unary ;
214
214
specialization =
215
215
{
216
- int = P_bitnot_int ;
216
+ int = Pnotint ;
217
217
bool = None ;
218
218
float = None ;
219
- bigint = Some P_bitnot_bigint ;
219
+ bigint = Some Pnotbigint ;
220
220
string = None ;
221
221
};
222
222
};
You can’t perform that action at this time.
0 commit comments