You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
7.8 KiB
2 lines
7.8 KiB
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferIR__AccessExpression (InferIR.InferIR__AccessExpression)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><meta name="generator" content="doc-ock-html v1.0.0-1-g1fc9bf0"/></head><body><nav id="top"><a href="../index.html">Up</a> — <span class="package">package <a href="../index.html">InferIR</a></span></nav><header><h1><span class="keyword">Module</span> <span class="module-path">InferIR__AccessExpression</span></h1></header><div class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>t</code><code></code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-t.Base" class="anchored"><td class="def constructor"><a href="#type-t.Base" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Base</span><span class="keyword"> of </span><a href="../InferIR/AccessPath/index.html#type-base">InferIR.AccessPath.base</a></code></td></tr><tr id="type-t.FieldOffset" class="anchored"><td class="def constructor"><a href="#type-t.FieldOffset" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">FieldOffset</span><span class="keyword"> of </span><a href="index.html#type-t">t</a><span class="keyword"> * </span><a href="../InferIR/Typ/Fieldname/index.html#type-t">InferIR.Typ.Fieldname.t</a></code></td></tr><tr id="type-t.ArrayOffset" class="anchored"><td class="def constructor"><a href="#type-t.ArrayOffset" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">ArrayOffset</span><span class="keyword"> of </span><a href="index.html#type-t">t</a><span class="keyword"> * </span><a href="../InferIR/Typ/index.html#type-t">InferIR.Typ.t</a><span class="keyword"> * </span><a href="index.html#type-t">t</a> list</code></td></tr><tr id="type-t.AddressOf" class="anchored"><td class="def constructor"><a href="#type-t.AddressOf" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">AddressOf</span><span class="keyword"> of </span><a href="index.html#type-t">t</a></code></td></tr><tr id="type-t.Dereference" class="anchored"><td class="def constructor"><a href="#type-t.Dereference" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Dereference</span><span class="keyword"> of </span><a href="index.html#type-t">t</a></code></td></tr></table><code></code></div><div class="doc"></div></div><div class="spec include"><div class="doc"></div><details open="open"><summary><span class="def"><code><span class="keyword">include </span><span class="keyword">sig</span> ... <span class="keyword">end</span></code></span></summary><div class="spec val" id="val-compare"><a href="#val-compare" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>compare : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> <a href="index.html#type-t">t</a> <span class="keyword">‑></span> int</code></div><div class="doc"></div></div></details></div><div class="spec val" id="val-to_access_path"><a href="#val-to_access_path" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>to_access_path : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> <a href="../InferIR/AccessPath/index.html#type-t">InferIR.AccessPath.t</a></code></div><div class="doc"></div></div><div class="spec val" id="val-to_access_paths"><a href="#val-to_access_paths" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>to_access_paths : <a href="index.html#type-t">t</a> list <span class="keyword">‑></span> <a href="../InferIR/AccessPath/index.html#type-t">InferIR.AccessPath.t</a> list</code></div><div class="doc"></div></div><div class="spec val" id="val-of_id"><a href="#val-of_id" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>of_id : <a href="../InferIR/Ident/index.html#type-t">InferIR.Ident.t</a> <span class="keyword">‑></span> <a href="../InferIR/Typ/index.html#type-t">InferIR.Typ.t</a> <span class="keyword">‑></span> <a href="index.html#type-t">t</a></code></div><div class="doc"><p>create an access expression from an ident</p></div></div><div class="spec val" id="val-get_base"><a href="#val-get_base" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>get_base : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> <a href="../InferIR/AccessPath/index.html#type-base">InferIR.AccessPath.base</a></code></div><div class="doc"></div></div><div class="spec val" id="val-replace_base"><a href="#val-replace_base" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>replace_base : remove_deref_after_base:bool <span class="keyword">‑></span> <a href="../InferIR/AccessPath/index.html#type-base">InferIR.AccessPath.base</a> <span class="keyword">‑></span> <a href="index.html#type-t">t</a> <span class="keyword">‑></span> <a href="index.html#type-t">t</a></code></div><div class="doc"></div></div><div class="spec val" id="val-is_base"><a href="#val-is_base" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>is_base : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> bool</code></div><div class="doc"></div></div><div class="spec val" id="val-get_typ"><a href="#val-get_typ" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>get_typ : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> <a href="../InferIR/Tenv/index.html#type-t">InferIR.Tenv.t</a> <span class="keyword">‑></span> <a href="../InferIR/Typ/index.html#type-t">InferIR.Typ.t</a> option</code></div><div class="doc"></div></div><div class="spec val" id="val-pp"><a href="#val-pp" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>pp : Format.formatter <span class="keyword">‑></span> <a href="index.html#type-t">t</a> <span class="keyword">‑></span> unit</code></div><div class="doc"></div></div><div class="spec val" id="val-equal"><a href="#val-equal" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>equal : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> <a href="index.html#type-t">t</a> <span class="keyword">‑></span> bool</code></div><div class="doc"></div></div><div class="spec val" id="val-of_lhs_exp"><a href="#val-of_lhs_exp" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>of_lhs_exp : include_array_indexes:bool <span class="keyword">‑></span> add_deref:bool <span class="keyword">‑></span> <a href="../InferIR/Exp/index.html#type-t">InferIR.Exp.t</a> <span class="keyword">‑></span> <a href="../InferIR/Typ/index.html#type-t">InferIR.Typ.t</a> <span class="keyword">‑></span> f_resolve_id:(<a href="../InferIR/Var/index.html#type-t">InferIR.Var.t</a> <span class="keyword">‑></span> <a href="index.html#type-t">t</a> option) <span class="keyword">‑></span> <a href="index.html#type-t">t</a> option</code></div><div class="doc"><p>convert <code class="code">lhs_exp</code> to an access expression, resolving identifiers using <code class="code">f_resolve_id</code></p></div></div><div class="spec val" id="val-normalize"><a href="#val-normalize" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>normalize : <a href="index.html#type-t">t</a> <span class="keyword">‑></span> <a href="index.html#type-t">t</a></code></div><div class="doc"></div></div></body></html> |