jon.recoil.org

Module Regs_utils.Make_reg_class_tbl

Parameters

module Regs : T

Signature

type reg_class = Regs.Reg_class.t
type 'a t
val init : f:(reg_class -> 'a) -> 'a t

Creates a table by calling f on each and every register class to get the initial value for that class.

val map : 'a t -> f:('a -> 'b) -> 'b t
val iter : 'a t -> f:(reg_class -> 'a -> unit) -> unit
val find : 'a t -> reg_class -> 'a