Skip to content

Commit dad7b3a

Browse files
committed
completely remove typ_int64 from cmm
1 parent e0ffb70 commit dad7b3a

File tree

5 files changed

+4
-21
lines changed

5 files changed

+4
-21
lines changed

backend/cmm_helpers.ml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,8 +1140,6 @@ module Extended_machtype = struct
11401140

11411141
let typ_any_int = [| Extended_machtype_component.Any_int |]
11421142

1143-
let typ_int64 = [| Extended_machtype_component.Any_int |]
1144-
11451143
let typ_float = [| Extended_machtype_component.Float |]
11461144

11471145
let typ_vec128 = [| Extended_machtype_component.Vec128 |]
@@ -3906,12 +3904,6 @@ let emit_preallocated_blocks preallocated_blocks cont =
39063904

39073905
(* Helper functions and values used by Flambda 2. *)
39083906

3909-
let typ_int64 =
3910-
match Arch.size_int with
3911-
| 4 -> [| Cmm.Int; Cmm.Int |]
3912-
| 8 -> [| Cmm.Int |]
3913-
| _ -> Misc.fatal_errorf "Unsupported Arch.size_int = %d" Arch.size_int
3914-
39153907
let void = Ctuple []
39163908

39173909
let unit ~dbg = Cconst_int (1, dbg)

backend/cmm_helpers.mli

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,6 @@ module Extended_machtype : sig
395395

396396
val typ_any_int : t
397397

398-
val typ_int64 : t
399-
400398
val typ_float : t
401399

402400
val typ_void : t
@@ -970,9 +968,6 @@ val emit_preallocated_blocks :
970968

971969
(** {1} Helper functions and values used by Flambda 2. *)
972970

973-
(** An adequate Cmm machtype for an int64 (including on a 32-bit target). *)
974-
val typ_int64 : Cmm.machtype
975-
976971
(* CR mshinwell: [dbg] should not be optional. *)
977972

978973
(** The void (i.e. empty tuple) cmm value. Not to be confused with [() : unit]. *)

middle_end/flambda2/to_cmm/to_cmm_shared.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ let machtype_of_kind (kind : Flambda_kind.With_subkind.t) =
5050
| Value_array | Generic_array ->
5151
Cmm.typ_val)
5252
| Naked_number Naked_float -> Cmm.typ_float
53-
| Naked_number Naked_int64 -> typ_int64
5453
| Naked_number Naked_vec128 -> Cmm.typ_vec128
55-
| Naked_number (Naked_immediate | Naked_int32 | Naked_nativeint) ->
54+
| Naked_number (Naked_immediate | Naked_int32 | Naked_int64 | Naked_nativeint)
55+
->
5656
Cmm.typ_int
5757
| Region | Rec_info -> assert false
5858

@@ -66,9 +66,9 @@ let extended_machtype_of_kind (kind : Flambda_kind.With_subkind.t) =
6666
| Value_array | Generic_array ->
6767
Extended_machtype.typ_val)
6868
| Naked_number Naked_float -> Extended_machtype.typ_float
69-
| Naked_number Naked_int64 -> Extended_machtype.typ_int64
7069
| Naked_number Naked_vec128 -> Extended_machtype.typ_vec128
71-
| Naked_number (Naked_immediate | Naked_int32 | Naked_nativeint) ->
70+
| Naked_number (Naked_immediate | Naked_int32 | Naked_int64 | Naked_nativeint)
71+
->
7272
Extended_machtype.typ_any_int
7373
| Region | Rec_info -> assert false
7474

ocaml/asmcomp/cmm_helpers.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,8 +910,6 @@ module Extended_machtype = struct
910910

911911
let typ_any_int = [| Extended_machtype_component.Any_int |]
912912

913-
let typ_int64 = [| Extended_machtype_component.Any_int |]
914-
915913
let typ_float = [| Extended_machtype_component.Float |]
916914

917915
let typ_void = [||]

ocaml/asmcomp/cmm_helpers.mli

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ module Extended_machtype : sig
311311

312312
val typ_any_int : t
313313

314-
val typ_int64 : t
315-
316314
val typ_float : t
317315

318316
val typ_void : t

0 commit comments

Comments
 (0)