package ocaml-solo5-cross-aarch64

  1. Overview
  2. Docs
OCaml cross-compiler to the freestanding 64-bit ARM Solo5 backend

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v1.3.2.tar.gz
sha512=3785d4111ac06c1c701c02d11d522388249493786d0c351a50329bf481cae8df844615d8ca42626e98e72f4375d15622298339d3012e927a35c741ea3aec28f4

doc/compiler-libs.common/Shape_reduce/index.html

Module Shape_reduce

type result =
  1. | Resolved of Shape.Uid.t
    (*

    Shape reduction succeeded and a uid was found

    *)
  2. | Resolved_alias of Shape.Uid.t * result
    (*

    Reduction led to an alias

    *)
  3. | Resolved_local_use of Shape.Uid.t
    (*

    Shape reduction was stuck on a functor parameter or a first class module and a new uid was generated linked to the item's declaration uid.

    *)
  4. | Unresolved of Shape.t
    (*

    Result still contains Comp_unit terms

    *)
  5. | Approximated of Shape.Uid.t option
    (*

    Reduction failed: it can arrive with first-class modules for example

    *)
  6. | Missing_uid of Shape.t
  7. | Internal_error_missing_uid
    (*

    Reduction succeeded but no uid was found, this should never happen

    *)

The result of reducing a shape and looking for its uid

val print_result : Format.formatter -> result -> unit
module Make (_ : sig ... end) : sig ... end

The Make functor is used to generate a reduction function for shapes.

val local_reduce : Env.t -> Shape.t -> Shape.t

local_reduce will not reduce shapes that require loading external compilation units.

val local_reduce_for_uid : Env.t -> namespace:Shape.Sig_component_kind.t -> Path.t -> Shape.t -> result

local_reduce_for_uid will not reduce shapes that require loading external compilation units.