package ocaml-unikraft-arm64

  1. Overview
  2. Docs
OCaml cross compiler to the freestanding Unikraft arm64 backends

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v1.2.0.tar.gz
sha256=ca18a45ef86791d5ffa18436945fbec850b6f3dd68a6a62753b4cb1b6999b19a

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.