Skip to content

Commit

Permalink
[herd] remove unused ifetch code
Browse files Browse the repository at this point in the history
  • Loading branch information
artkhyzha committed Jan 17, 2025
1 parent cdac254 commit 754c631
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
11 changes: 0 additions & 11 deletions herd/archExtra_herd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ module type S = sig
type instr = I.V.Cst.Instr.t
type code = (int * instr) list

val convert_if_imm_branch : int -> int -> int Label.Map.t -> int Label.Map.t -> instr -> instr

(* Program loaded in memory *)
type program = int Label.Map.t

Expand Down Expand Up @@ -325,15 +323,6 @@ module Make(C:Config) (I:I) : S with module I = I
type instr = I.V.Cst.Instr.t
type code = (int * instr) list

(* This function is a default behaviour for all architectures.
When variant -self is enabled, it fails trying to convert a branch
instruction to a label into a branch-with-offset representation. *)
let convert_if_imm_branch _ _ _ _ i =
if C.variant Variant.Ifetch then
Warn.fatal "Functionality %s not implemented for -variant self" "convert_if_imm_branch"
else
i

(* Programm loaded in memory *)
type program = int Label.Map.t

Expand Down
2 changes: 0 additions & 2 deletions herd/arch_herd.mli
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ module type S =
val sets : (string * (op -> bool)) list
end

val convert_if_imm_branch : int -> int -> int Label.Map.t -> int Label.Map.t -> instruction -> instruction

module MemType:MemoryType.S

module Barrier:AllBarrier.S with type a = barrier
Expand Down

0 comments on commit 754c631

Please sign in to comment.