File tree Expand file tree Collapse file tree 10 files changed +4
-36
lines changed Expand file tree Collapse file tree 10 files changed +4
-36
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,6 @@ let typ_void = ([||] : machtype_component array)
26
26
let typ_val = [|Val |]
27
27
let typ_addr = [|Addr |]
28
28
let typ_int = [|Int |]
29
- let typ_int32 = [|Int |]
30
- (* XXX ASZ: What layouts version does this go with? *)
31
- (* CR layouts XXX ASZ: Change [typ_int32] to fit in a 32-bit register, rather
32
- than taking up a full 64-bit one. *)
33
- let typ_int64 = if Arch. size_int = 4 then [|Int ;Int |] else [|Int |]
34
29
let typ_float = [|Float |]
35
30
let typ_vec128 = [|Vec128 |]
36
31
@@ -99,8 +94,8 @@ type exttype =
99
94
100
95
let machtype_of_exttype = function
101
96
| XInt -> typ_int
102
- | XInt32 -> typ_int32
103
- | XInt64 -> typ_int64
97
+ | XInt32 -> typ_int
98
+ | XInt64 -> typ_int
104
99
| XFloat -> typ_float
105
100
| XVec128 -> typ_vec128
106
101
Original file line number Diff line number Diff line change @@ -54,8 +54,6 @@ val typ_void: machtype
54
54
val typ_val : machtype
55
55
val typ_addr : machtype
56
56
val typ_int : machtype
57
- val typ_int32 : machtype
58
- val typ_int64 : machtype
59
57
val typ_float : machtype
60
58
val typ_vec128 : machtype
61
59
Original file line number Diff line number Diff line change @@ -1125,11 +1125,6 @@ module Extended_machtype = struct
1125
1125
1126
1126
let typ_any_int = [| Extended_machtype_component. Any_int |]
1127
1127
1128
- (* XXX ASZ: What layouts version does this go with? *)
1129
- (* CR layouts XXX ASZ: Change this to fit in a 32-bit register, rather than
1130
- taking up a full 64-bit one. *)
1131
- let typ_int32 = [| Extended_machtype_component. Any_int |]
1132
-
1133
1128
let typ_int64 = [| Extended_machtype_component. Any_int |]
1134
1129
1135
1130
let typ_float = [| Extended_machtype_component. Float |]
Original file line number Diff line number Diff line change @@ -395,8 +395,6 @@ module Extended_machtype : sig
395
395
396
396
val typ_any_int : t
397
397
398
- val typ_int32 : t
399
-
400
398
val typ_int64 : t
401
399
402
400
val typ_float : t
Original file line number Diff line number Diff line change @@ -424,9 +424,7 @@ let machtype_of_sort (s : Jkind.Sort.const) =
424
424
match s with
425
425
| Value -> typ_val
426
426
| Float64 -> typ_float
427
- | Word -> typ_int
428
- | Bits32 -> typ_int32
429
- | Bits64 -> typ_int64
427
+ | Word | Bits32 | Bits64 -> typ_int
430
428
| Void -> Misc. fatal_error " Cmmgen.machtype_of_sort: void encountered"
431
429
432
430
let rec is_unboxed_number_cmm = function
Original file line number Diff line number Diff line change @@ -25,11 +25,6 @@ let typ_void = ([||] : machtype_component array)
25
25
let typ_val = [|Val |]
26
26
let typ_addr = [|Addr |]
27
27
let typ_int = [|Int |]
28
- let typ_int32 = [|Int |]
29
- (* XXX ASZ: What layouts version does this go with? *)
30
- (* CR layouts XXX ASZ: Change [typ_int32] to fit in a 32-bit register, rather
31
- than taking up a full 64-bit one. *)
32
- let typ_int64 = if Arch. size_int = 4 then [|Int ;Int |] else [|Int |]
33
28
let typ_float = [|Float |]
34
29
35
30
(* * [machtype_component]s are partially ordered as follows:
Original file line number Diff line number Diff line change @@ -53,8 +53,6 @@ val typ_void: machtype
53
53
val typ_val : machtype
54
54
val typ_addr : machtype
55
55
val typ_int : machtype
56
- val typ_int32 : machtype
57
- val typ_int64 : machtype
58
56
val typ_float : machtype
59
57
60
58
(* * Least upper bound of two [machtype_component]s. *)
Original file line number Diff line number Diff line change @@ -912,11 +912,6 @@ module Extended_machtype = struct
912
912
913
913
let typ_int64 = [| Extended_machtype_component. Any_int |]
914
914
915
- (* XXX ASZ: What layouts version does this go with? *)
916
- (* CR layouts XXX ASZ: Change this to fit in a 32-bit register, rather than
917
- taking up a full 64-bit one. *)
918
- let typ_int32 = [| Extended_machtype_component. Any_int |]
919
-
920
915
let typ_float = [| Extended_machtype_component. Float |]
921
916
922
917
let typ_void = [||]
Original file line number Diff line number Diff line change @@ -311,8 +311,6 @@ module Extended_machtype : sig
311
311
312
312
val typ_any_int : t
313
313
314
- val typ_int32 : t
315
-
316
314
val typ_int64 : t
317
315
318
316
val typ_float : t
Original file line number Diff line number Diff line change @@ -364,9 +364,7 @@ let machtype_of_sort (s : Jkind.Sort.const) =
364
364
match s with
365
365
| Value -> typ_val
366
366
| Float64 -> typ_float
367
- | Word -> typ_int
368
- | Bits32 -> typ_int32
369
- | Bits64 -> typ_int64
367
+ | Word | Bits32 | Bits64 -> typ_int
370
368
| Void -> Misc. fatal_error " Cmmgen.machtype_of_sort: void encountered"
371
369
372
370
let is_unboxed_number_cmm ~strict cmm =
You can’t perform that action at this time.
0 commit comments