diff options
author | johannst <johannst@users.noreply.github.com> | 2021-09-14 20:53:21 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2021-09-14 20:53:21 +0000 |
commit | bb721dfa28499d340baeec1dd730ec1cd771fdcf (patch) | |
tree | 366a3ad4e69d55cb446492f377d361f8465f8695 /src/llvm_kaleidoscope_rs | |
parent | a47dfd3d1417412f4d55ffa964d9fc98d8d53a9d (diff) | |
download | llvm-kaleidoscope-rs-bb721dfa28499d340baeec1dd730ec1cd771fdcf.tar.gz llvm-kaleidoscope-rs-bb721dfa28499d340baeec1dd730ec1cd771fdcf.zip |
deploy: c7009b5550ef6bd7bf16ce1b93982f10b1abddc9
Diffstat (limited to 'src/llvm_kaleidoscope_rs')
-rw-r--r-- | src/llvm_kaleidoscope_rs/lib.rs.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/llvm_kaleidoscope_rs/lib.rs.html b/src/llvm_kaleidoscope_rs/lib.rs.html index d2fcdb6..a752947 100644 --- a/src/llvm_kaleidoscope_rs/lib.rs.html +++ b/src/llvm_kaleidoscope_rs/lib.rs.html @@ -109,6 +109,8 @@ <span id="107">107</span> <span id="108">108</span> <span id="109">109</span> +<span id="110">110</span> +<span id="111">111</span> </pre><pre class="rust"> <span class="kw">use</span> <span class="ident">std::convert::TryFrom</span>; @@ -121,6 +123,8 @@ <span class="kw">pub</span> <span class="kw">const</span> <span class="ident">SMALL_STR_SIZE</span>: <span class="ident">usize</span> <span class="op">=</span> <span class="number">16</span>; <span class="doccomment">/// Small C string on the stack with fixed size [`SMALL_STR_SIZE`].</span> +<span class="doccomment">///</span> +<span class="doccomment">/// This is specially crafted to interact with the LLVM C API and get rid of some heap allocations.</span> <span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">PartialEq</span>)]</span> <span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">SmallCStr</span>([<span class="ident">u8</span>; <span class="ident">SMALL_STR_SIZE</span>]); |