mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-16 15:56:21 -05:00
6 lines
No EOL
2.1 KiB
HTML
6 lines
No EOL
2.1 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Extract_projections (ocaml.Extract_projections)</title><link rel="stylesheet" href="../../_odoc-theme/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.2.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../index.html">ocaml</a> » Extract_projections</nav><header class="odoc-preamble"><h1>Module <code><span>Extract_projections</span></code></h1><p>Identify projections from variables used in function bodies (free variables or specialised args, for example, according to <code>which_variables</code> below). Projections from variables that are also used boxed are not returned.</p></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-from_function_decl"><a href="#val-from_function_decl" class="anchor"></a><code><span><span class="keyword">val</span> from_function_decl :
|
||
<span>env:<a href="../Inline_and_simplify_aux/Env/index.html#type-t">Inline_and_simplify_aux.Env.t</a> <span class="arrow">-></span></span>
|
||
<span>which_variables:<span><a href="../Flambda/index.html#type-specialised_to">Flambda.specialised_to</a> <a href="../Variable/Map/index.html#type-t">Variable.Map.t</a></span> <span class="arrow">-></span></span>
|
||
<span>function_decl:<a href="../Flambda/index.html#type-function_declaration">Flambda.function_declaration</a> <span class="arrow">-></span></span>
|
||
<a href="../Projection/Set/index.html#type-t">Projection.Set.t</a></span></code></div><div class="spec-doc"><p><code>which_variables</code> maps (existing) inner variables to (existing) outer variables in the manner of <code>free_vars</code> and <code>specialised_args</code> in <code>Flambda.set_of_closures</code>.</p><p>The returned projections are <code>projecting_from</code> (cf. projection.mli) the "existing inner vars".</p></div></div></div></body></html> |