Skip to content

Commit

Permalink
Remove unused Arch.num_args_addressing (ocaml#13060)
Browse files Browse the repository at this point in the history
  • Loading branch information
dustanddreams authored Mar 31, 2024
1 parent 7ae4fdb commit 1f3c26c
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 33 deletions.
7 changes: 0 additions & 7 deletions asmcomp/amd64/arch.ml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,6 @@ let offset_addressing addr delta =
| Iscaled(scale, n) -> Iscaled(scale, n + delta)
| Iindexed2scaled(scale, n) -> Iindexed2scaled(scale, n + delta)

let num_args_addressing = function
Ibased _ -> 0
| Iindexed _ -> 1
| Iindexed2 _ -> 2
| Iscaled _ -> 1
| Iindexed2scaled _ -> 2

(* Printing operations and addressing modes *)

let print_addressing printreg addr ppf arg =
Expand Down
2 changes: 0 additions & 2 deletions asmcomp/amd64/arch.mli
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ val identity_addressing : addressing_mode

val offset_addressing : addressing_mode -> int -> addressing_mode

val num_args_addressing : addressing_mode -> int

val print_addressing :
(Format.formatter -> 'a -> unit) -> addressing_mode ->
Format.formatter -> 'a array -> unit
Expand Down
4 changes: 0 additions & 4 deletions asmcomp/arm64/arch.ml
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,6 @@ let offset_addressing addr delta =
| Iindexed n -> Iindexed(n + delta)
| Ibased(s, n) -> Ibased(s, n + delta)

let num_args_addressing = function
| Iindexed _ -> 1
| Ibased _ -> 0

(* Printing operations and addressing modes *)

let print_addressing printreg addr ppf arg =
Expand Down
2 changes: 0 additions & 2 deletions asmcomp/arm64/arch.mli
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ val identity_addressing : addressing_mode

val offset_addressing : addressing_mode -> int -> addressing_mode

val num_args_addressing : addressing_mode -> int

(* Printing operations and addressing modes *)

val print_addressing :
Expand Down
5 changes: 0 additions & 5 deletions asmcomp/power/arch.ml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ let offset_addressing addr delta =
| Iindexed n -> Iindexed(n + delta)
| Iindexed2 -> assert false

let num_args_addressing = function
Ibased _ -> 0
| Iindexed _ -> 1
| Iindexed2 -> 2

(* Printing operations and addressing modes *)

let print_addressing printreg addr ppf arg =
Expand Down
2 changes: 0 additions & 2 deletions asmcomp/power/arch.mli
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ val identity_addressing : addressing_mode

val offset_addressing : addressing_mode -> int -> addressing_mode

val num_args_addressing : addressing_mode -> int

(* Printing operations and addressing modes *)

val print_addressing :
Expand Down
3 changes: 0 additions & 3 deletions asmcomp/riscv/arch.ml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ let offset_addressing addr delta =
match addr with
| Iindexed n -> Iindexed(n + delta)

let num_args_addressing = function
| Iindexed _ -> 1

(* Printing operations and addressing modes *)

let print_addressing printreg addr ppf arg =
Expand Down
2 changes: 0 additions & 2 deletions asmcomp/riscv/arch.mli
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ val identity_addressing : addressing_mode

val offset_addressing : addressing_mode -> int -> addressing_mode

val num_args_addressing : addressing_mode -> int

(* Printing operations and addressing modes *)

val print_addressing :
Expand Down
4 changes: 0 additions & 4 deletions asmcomp/s390x/arch.ml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ let offset_addressing addr delta =
| Iindexed n -> Iindexed(n + delta)
| Iindexed2 n -> Iindexed2(n + delta)

let num_args_addressing = function
| Iindexed _ -> 1
| Iindexed2 _ -> 2

(* Printing operations and addressing modes *)

let print_addressing printreg addr ppf arg =
Expand Down
2 changes: 0 additions & 2 deletions asmcomp/s390x/arch.mli
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ val identity_addressing : addressing_mode

val offset_addressing : addressing_mode -> int -> addressing_mode

val num_args_addressing : addressing_mode -> int

(* Printing operations and addressing modes *)

val print_addressing :
Expand Down

0 comments on commit 1f3c26c

Please sign in to comment.