Module Flambda2_identifiers.Reg_width_const
Constants that fit in registers on the target machine.
include module type of struct include Flambda2_identifiers.Int_ids.Const end
type t = private Flambda2_algorithms.Table_by_int_id.Id.ttype exported = Flambda2_identifiers.Int_ids.Const.exportedinclude Flambda2_algorithms.Container_types.S
with type t := Flambda2_identifiers.Reg_width_const.t
module T = Flambda2_identifiers.Int_ids.Const.Tinclude Flambda2_algorithms.Container_types_intf.Thing with type t := T.t
include Stdlib.Hashtbl.HashedType with type t := T.t
val hash : T.t -> intA hashing function on keys. It must be such that if two keys are equal according to equal, then they have identical hash values as computed by hash. Examples: suitable (equal, hash) pairs for arbitrary key types include
- (
(=),hash) for comparing objects by structure (provided objects do not contain floats) - (
(fun x y -> compare x y = 0),hash) for comparing objects by structure and handlingStdlib.nancorrectly - (
(==),hash) for comparing objects by physical equality (e.g. for mutable or cyclic objects).
include Stdlib.Map.OrderedType with type t := T.t
A total ordering function over the keys. This is a two-argument function f such that f e1 e2 is zero if the keys e1 and e2 are equal, f e1 e2 is strictly negative if e1 is smaller than e2, and f e1 e2 is strictly positive if e1 is greater than e2. Example: a suitable ordering function is the generic structural comparison function Stdlib.compare.
val print : Stdlib.Format.formatter -> T.t -> unitmodule Set = Flambda2_identifiers.Int_ids.Const.Setmodule Map = Flambda2_identifiers.Int_ids.Const.Mapval const_true :
Target_system.Machine_width.t ->
Flambda2_identifiers.Reg_width_const.tval const_false :
Target_system.Machine_width.t ->
Flambda2_identifiers.Reg_width_const.tval untagged_const_true :
Target_system.Machine_width.t ->
Flambda2_identifiers.Reg_width_const.tval untagged_const_false :
Target_system.Machine_width.t ->
Flambda2_identifiers.Reg_width_const.tval untagged_const_zero :
Target_system.Machine_width.t ->
Flambda2_identifiers.Reg_width_const.tval untagged_const_int :
Flambda2_numbers.Target_ocaml_int.t ->
Flambda2_identifiers.Reg_width_const.tval const_zero :
Target_system.Machine_width.t ->
Flambda2_identifiers.Reg_width_const.tval const_one :
Target_system.Machine_width.t ->
Flambda2_identifiers.Reg_width_const.tval const_unit :
Target_system.Machine_width.t ->
Flambda2_identifiers.Reg_width_const.tval const_int :
Flambda2_numbers.Target_ocaml_int.t ->
Flambda2_identifiers.Reg_width_const.tval const_null : Flambda2_identifiers.Reg_width_const.tval naked_immediate :
Flambda2_numbers.Target_ocaml_int.t ->
Flambda2_identifiers.Reg_width_const.tnaked_immediate is similar to naked_nativeint, but represents integers of width n - 1 bits, where n is the native machine width. (By contrast, naked_nativeint represents integers of width n bits.)
val tagged_immediate :
Flambda2_numbers.Target_ocaml_int.t ->
Flambda2_identifiers.Reg_width_const.tval naked_float32 :
Flambda2_numbers.Numeric_types.Float32_by_bit_pattern.t ->
Flambda2_identifiers.Reg_width_const.tval naked_int8 :
Flambda2_numbers.Numeric_types.Int8.t ->
Flambda2_identifiers.Reg_width_const.tval naked_int16 :
Flambda2_numbers.Numeric_types.Int16.t ->
Flambda2_identifiers.Reg_width_const.tval naked_int32 : Stdlib.Int32.t -> Flambda2_identifiers.Reg_width_const.tval naked_int64 : Stdlib.Int64.t -> Flambda2_identifiers.Reg_width_const.tval naked_nativeint :
Flambda2_numbers.Targetint_32_64.t ->
Flambda2_identifiers.Reg_width_const.tval naked_vec128 :
Flambda2_numbers.Vector_types.Vec128.Bit_pattern.t ->
Flambda2_identifiers.Reg_width_const.tval naked_vec256 :
Flambda2_numbers.Vector_types.Vec256.Bit_pattern.t ->
Flambda2_identifiers.Reg_width_const.tval naked_vec512 :
Flambda2_numbers.Vector_types.Vec512.Bit_pattern.t ->
Flambda2_identifiers.Reg_width_const.tmodule Descr = Flambda2_identifiers.Int_ids.Const.Descrval descr : Flambda2_identifiers.Reg_width_const.t -> Descr.tval of_descr : Descr.t -> Flambda2_identifiers.Reg_width_const.tval is_null : Flambda2_identifiers.Reg_width_const.t -> boolval is_naked_immediate :
Flambda2_identifiers.Reg_width_const.t ->
Flambda2_numbers.Target_ocaml_int.t optionval is_tagged_immediate :
Flambda2_identifiers.Reg_width_const.t ->
Flambda2_numbers.Target_ocaml_int.t optionval of_int_of_kind :
Target_system.Machine_width.t ->
Flambda2_kinds.Flambda_kind.t ->
int ->
Flambda2_identifiers.Reg_width_const.tCreate a numeric constant of the given kind (Region and Rec_info are forbidden).