Module Device.Tiny_elf
A compiled program's parameters, as a runtime packs them.
#
type param = {- #
name : string option;(*The parameter's name, if it has one.
*) - #
addrspace : Dtype.addr_space;(*
*)Dtype.addr_space.Alufor a scalar, passed as its value; any other for a buffer, passed as its address. - #
dtype : Dtype.t;(*The type of its elements.
*) - #
shape : int list;(*
*)[n]for a buffer ofnelements,[]for a scalar.
}The type for the parameters of a program.
iter_sig ~offset signature is where the value of each parameter of signature lies when their values are packed in order from byte offset, each aligned to its size: its byte offset and its type, a scalar's own and a buffer's address's Dtype.t.Uint64. offset defaults to 0.