From 73e25a571f12d3deaa6f4493a5b4792a9dae39eb Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 24 Sep 2022 22:38:40 +0000 Subject: deploy: 295081130ca1eed6e67dfc035e2df2c9ed49b174 --- llvm_kaleidoscope_rs/all.html | 11 ++- llvm_kaleidoscope_rs/codegen/index.html | 14 +++- llvm_kaleidoscope_rs/codegen/sidebar-items.js | 2 +- llvm_kaleidoscope_rs/codegen/struct.Codegen.html | 34 +++++--- llvm_kaleidoscope_rs/constant.SMALL_STR_SIZE.html | 12 ++- llvm_kaleidoscope_rs/enum.Either.html | 34 +++++--- llvm_kaleidoscope_rs/index.html | 26 +++--- llvm_kaleidoscope_rs/lexer/enum.Token.html | 51 +++++++----- llvm_kaleidoscope_rs/lexer/index.html | 14 +++- llvm_kaleidoscope_rs/lexer/sidebar-items.js | 2 +- llvm_kaleidoscope_rs/lexer/struct.Lexer.html | 32 ++++--- .../llvm/basic_block/struct.BasicBlock.html | 11 +++ .../llvm/fn.initialize_native_taget.html | 12 ++- llvm_kaleidoscope_rs/llvm/fn.shutdown.html | 12 ++- llvm_kaleidoscope_rs/llvm/index.html | 39 +++++---- llvm_kaleidoscope_rs/llvm/sidebar-items.js | 2 +- llvm_kaleidoscope_rs/llvm/struct.BasicBlock.html | 46 ++++++---- llvm_kaleidoscope_rs/llvm/struct.FnValue.html | 80 ++++++++++-------- .../llvm/struct.FunctionPassManager.html | 38 +++++---- llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html | 97 +++++++++++++--------- llvm_kaleidoscope_rs/llvm/struct.LLJit.html | 48 ++++++----- llvm_kaleidoscope_rs/llvm/struct.Module.html | 65 +++++++++------ llvm_kaleidoscope_rs/llvm/struct.PhiValue.html | 41 +++++++++ .../llvm/struct.ResourceTracker.html | 34 +++++--- llvm_kaleidoscope_rs/llvm/struct.Type.html | 49 ++++++----- llvm_kaleidoscope_rs/llvm/struct.Value.html | 61 ++++++++------ .../llvm/value/struct.PhiValue.html | 11 +++ llvm_kaleidoscope_rs/parser/enum.ExprAST.html | 70 ++++++++++------ llvm_kaleidoscope_rs/parser/index.html | 20 +++-- llvm_kaleidoscope_rs/parser/sidebar-items.js | 2 +- .../parser/struct.FunctionAST.html | 40 +++++---- llvm_kaleidoscope_rs/parser/struct.Parser.html | 44 ++++++---- .../parser/struct.PrototypeAST.html | 51 +++++++----- llvm_kaleidoscope_rs/sidebar-items.js | 2 +- llvm_kaleidoscope_rs/struct.SmallCStr.html | 50 ++++++----- 35 files changed, 727 insertions(+), 430 deletions(-) create mode 100644 llvm_kaleidoscope_rs/llvm/basic_block/struct.BasicBlock.html create mode 100644 llvm_kaleidoscope_rs/llvm/struct.PhiValue.html create mode 100644 llvm_kaleidoscope_rs/llvm/value/struct.PhiValue.html (limited to 'llvm_kaleidoscope_rs') diff --git a/llvm_kaleidoscope_rs/all.html b/llvm_kaleidoscope_rs/all.html index 80e26df..1ce2b8c 100644 --- a/llvm_kaleidoscope_rs/all.html +++ b/llvm_kaleidoscope_rs/all.html @@ -1,5 +1,8 @@ -List of all items in this crate

List of all items[] - -

Structs

Enums

Functions

Constants

- +List of all items in this crate +
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/codegen/index.html b/llvm_kaleidoscope_rs/codegen/index.html index 7405dc4..f4719e5 100644 --- a/llvm_kaleidoscope_rs/codegen/index.html +++ b/llvm_kaleidoscope_rs/codegen/index.html @@ -1,5 +1,11 @@ -llvm_kaleidoscope_rs::codegen - Rust

Module llvm_kaleidoscope_rs::codegen[][src]

Structs

-

Code generator from kaleidoscope AST to LLVM IR.

-
- +llvm_kaleidoscope_rs::codegen - Rust +

Structs

+

Code generator from kaleidoscope AST to LLVM IR.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/codegen/sidebar-items.js b/llvm_kaleidoscope_rs/codegen/sidebar-items.js index c4119ea..3bcd581 100644 --- a/llvm_kaleidoscope_rs/codegen/sidebar-items.js +++ b/llvm_kaleidoscope_rs/codegen/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"struct":[["Codegen","Code generator from kaleidoscope AST to LLVM IR."]]}); \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":[["Codegen","Code generator from kaleidoscope AST to LLVM IR."]]}; \ No newline at end of file diff --git a/llvm_kaleidoscope_rs/codegen/struct.Codegen.html b/llvm_kaleidoscope_rs/codegen/struct.Codegen.html index 9f9ece8..a2cca22 100644 --- a/llvm_kaleidoscope_rs/codegen/struct.Codegen.html +++ b/llvm_kaleidoscope_rs/codegen/struct.Codegen.html @@ -1,14 +1,22 @@ -Codegen in llvm_kaleidoscope_rs::codegen - Rust

Struct llvm_kaleidoscope_rs::codegen::Codegen[][src]

pub struct Codegen<'llvm, 'a> { /* fields omitted */ }
Expand description

Code generator from kaleidoscope AST to LLVM IR.

-

Implementations

Compile either a PrototypeAST or a FunctionAST into the LLVM module.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +Codegen in llvm_kaleidoscope_rs::codegen - Rust +
pub struct Codegen<'llvm, 'a> { /* private fields */ }
Expand description

Code generator from kaleidoscope AST to LLVM IR.

+

Implementations

Compile either a PrototypeAST or a FunctionAST into the LLVM module.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/constant.SMALL_STR_SIZE.html b/llvm_kaleidoscope_rs/constant.SMALL_STR_SIZE.html index ae632c8..e13f893 100644 --- a/llvm_kaleidoscope_rs/constant.SMALL_STR_SIZE.html +++ b/llvm_kaleidoscope_rs/constant.SMALL_STR_SIZE.html @@ -1,4 +1,10 @@ -SMALL_STR_SIZE in llvm_kaleidoscope_rs - Rust

Constant llvm_kaleidoscope_rs::SMALL_STR_SIZE[][src]

pub const SMALL_STR_SIZE: usize = 16;
Expand description

Fixed size of SmallCStr including the trailing \0 byte.

-
- +SMALL_STR_SIZE in llvm_kaleidoscope_rs - Rust +
pub const SMALL_STR_SIZE: usize = 16;
Expand description

Fixed size of SmallCStr including the trailing \0 byte.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/enum.Either.html b/llvm_kaleidoscope_rs/enum.Either.html index 4a79368..8cf9394 100644 --- a/llvm_kaleidoscope_rs/enum.Either.html +++ b/llvm_kaleidoscope_rs/enum.Either.html @@ -1,16 +1,24 @@ -Either in llvm_kaleidoscope_rs - Rust

Enum llvm_kaleidoscope_rs::Either[][src]

pub enum Either<A, B> {
+Either in llvm_kaleidoscope_rs - Rust
+    
pub enum Either<A, B> {
     A(A),
     B(B),
-}
Expand description

Either type, for APIs accepting two types.

-

Variants

A(A)
B(B)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +}
Expand description

Either type, for APIs accepting two types.

+

Variants

A(A)

B(B)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/index.html b/llvm_kaleidoscope_rs/index.html index b38f113..eaab6fb 100644 --- a/llvm_kaleidoscope_rs/index.html +++ b/llvm_kaleidoscope_rs/index.html @@ -1,11 +1,17 @@ -llvm_kaleidoscope_rs - Rust

Crate llvm_kaleidoscope_rs[][src]

Modules

-

Safe wrapper around the LLVM C API.

-

Structs

-

Small C string on the stack with fixed size SMALL_STR_SIZE.

-

Enums

-

Either type, for APIs accepting two types.

-

Constants

-

Fixed size of SmallCStr including the trailing \0 byte.

-
- +llvm_kaleidoscope_rs - Rust +

Modules

+

Safe wrapper around the LLVM C API.

+

Structs

+

Small C string on the stack with fixed size SMALL_STR_SIZE.

+

Enums

+

Either type, for APIs accepting two types.

+

Constants

+

Fixed size of SmallCStr including the trailing \0 byte.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/lexer/enum.Token.html b/llvm_kaleidoscope_rs/lexer/enum.Token.html index 9ecc208..4d4b4d1 100644 --- a/llvm_kaleidoscope_rs/lexer/enum.Token.html +++ b/llvm_kaleidoscope_rs/lexer/enum.Token.html @@ -1,23 +1,36 @@ -Token in llvm_kaleidoscope_rs::lexer - Rust

Enum llvm_kaleidoscope_rs::lexer::Token[][src]

pub enum Token {
+Token in llvm_kaleidoscope_rs::lexer - Rust
+    
pub enum Token {
     Eof,
     Def,
     Extern,
-    Identifier(String),
-    Number(f64),
-    Char(char),
-}

Variants

Eof
Def
Extern
Identifier(String)
Number(f64)
Char(char)

Trait Implementations

Formats the value using the given formatter. Read more

-

This method tests for self and other values to be equal, and is used -by ==. Read more

-

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- + Identifier(String), + Number(f64), + Char(char), + If, + Then, + Else, + For, + In, +}

Variants

Eof

Def

Extern

Identifier(String)

Number(f64)

Char(char)

If

Then

Else

For

In

Trait Implementations

Formats the value using the given formatter. Read more

+

This method tests for self and other values to be equal, and is used +by ==. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/lexer/index.html b/llvm_kaleidoscope_rs/lexer/index.html index 972ee08..6c5c8f9 100644 --- a/llvm_kaleidoscope_rs/lexer/index.html +++ b/llvm_kaleidoscope_rs/lexer/index.html @@ -1,5 +1,11 @@ -llvm_kaleidoscope_rs::lexer - Rust

Module llvm_kaleidoscope_rs::lexer[][src]

Structs

-

Enums

-
- +llvm_kaleidoscope_rs::lexer - Rust +
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/lexer/sidebar-items.js b/llvm_kaleidoscope_rs/lexer/sidebar-items.js index 343e858..a3ba100 100644 --- a/llvm_kaleidoscope_rs/lexer/sidebar-items.js +++ b/llvm_kaleidoscope_rs/lexer/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"enum":[["Token",""]],"struct":[["Lexer",""]]}); \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":[["Token",""]],"struct":[["Lexer",""]]}; \ No newline at end of file diff --git a/llvm_kaleidoscope_rs/lexer/struct.Lexer.html b/llvm_kaleidoscope_rs/lexer/struct.Lexer.html index 2892920..ab9a86b 100644 --- a/llvm_kaleidoscope_rs/lexer/struct.Lexer.html +++ b/llvm_kaleidoscope_rs/lexer/struct.Lexer.html @@ -1,14 +1,22 @@ -Lexer in llvm_kaleidoscope_rs::lexer - Rust

Struct llvm_kaleidoscope_rs::lexer::Lexer[][src]

pub struct Lexer<I> where
    I: Iterator<Item = char>, 
{ /* fields omitted */ }

Implementations

Lex and return the next token.

+Lexer in llvm_kaleidoscope_rs::lexer - Rust +
pub struct Lexer<I> where
    I: Iterator<Item = char>, 
{ /* private fields */ }

Implementations

Lex and return the next token.

Implement int gettok(); from the tutorial.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/basic_block/struct.BasicBlock.html b/llvm_kaleidoscope_rs/llvm/basic_block/struct.BasicBlock.html new file mode 100644 index 0000000..81e3f7c --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/basic_block/struct.BasicBlock.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../llvm_kaleidoscope_rs/llvm/struct.BasicBlock.html...

+ + + \ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/fn.initialize_native_taget.html b/llvm_kaleidoscope_rs/llvm/fn.initialize_native_taget.html index d74774c..8790cac 100644 --- a/llvm_kaleidoscope_rs/llvm/fn.initialize_native_taget.html +++ b/llvm_kaleidoscope_rs/llvm/fn.initialize_native_taget.html @@ -1,4 +1,10 @@ -initialize_native_taget in llvm_kaleidoscope_rs::llvm - Rust

Function llvm_kaleidoscope_rs::llvm::initialize_native_taget[][src]

pub fn initialize_native_taget()
Expand description

Initialize native target for corresponding to host (useful for jitting).

-
- +initialize_native_taget in llvm_kaleidoscope_rs::llvm - Rust +
pub fn initialize_native_taget()
Expand description

Initialize native target for corresponding to host (useful for jitting).

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/fn.shutdown.html b/llvm_kaleidoscope_rs/llvm/fn.shutdown.html index a2f6a11..b8fda63 100644 --- a/llvm_kaleidoscope_rs/llvm/fn.shutdown.html +++ b/llvm_kaleidoscope_rs/llvm/fn.shutdown.html @@ -1,4 +1,10 @@ -shutdown in llvm_kaleidoscope_rs::llvm - Rust

Function llvm_kaleidoscope_rs::llvm::shutdown[][src]

pub fn shutdown()
Expand description

Deallocate and destroy all “ManagedStatic” variables.

-
- +shutdown in llvm_kaleidoscope_rs::llvm - Rust +
pub fn shutdown()
Expand description

Deallocate and destroy all “ManagedStatic” variables.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/index.html b/llvm_kaleidoscope_rs/llvm/index.html index a8e5f1c..9e00f32 100644 --- a/llvm_kaleidoscope_rs/llvm/index.html +++ b/llvm_kaleidoscope_rs/llvm/index.html @@ -1,23 +1,30 @@ -llvm_kaleidoscope_rs::llvm - Rust

Module llvm_kaleidoscope_rs::llvm[][src]

Expand description

Safe wrapper around the LLVM C API.

+llvm_kaleidoscope_rs::llvm - Rust +
Expand description

Safe wrapper around the LLVM C API.

References returned from the LLVM API are tied to the 'llvm lifetime which is bound to the context where the objects are created in. We do not offer wrappers to remove or delete any objects in the context and therefore all the references will be valid for the liftime of the context.

For the scope of this tutorial we mainly use assertions to validate the results from the LLVM API calls.

-

Structs

-

Wrapper for a LLVM Basic Block.

-

Wrapper for a LLVM Value Reference specialized for contexts where function values are needed.

-

Wrapper for a LLVM Function PassManager (legacy).

-

Wrapper for a LLVM IR Builder.

-

Wrapper for a LLVM LLJIT.

-

Wrapper for a LLVM Module with its own LLVM Context.

-

A resource handle for code added to an LLJit instance.

-

Wrapper for a LLVM Type Reference.

-

Wrapper for a LLVM Value Reference.

-

Functions

-

Initialize native target for corresponding to host (useful for jitting).

-

Deallocate and destroy all “ManagedStatic” variables.

-
- +

Structs

+

Wrapper for a LLVM Basic Block.

+

Wrapper for a LLVM Value Reference specialized for contexts where function values are needed.

+

Wrapper for a LLVM Function PassManager (legacy).

+

Wrapper for a LLVM IR Builder.

+

Wrapper for a LLVM LLJIT.

+

Wrapper for a LLVM Module with its own LLVM Context.

+

Wrapper for a LLVM Value Reference specialized for contexts where phi values are needed.

+

A resource handle for code added to an LLJit instance.

+

Wrapper for a LLVM Type Reference.

+

Wrapper for a LLVM Value Reference.

+

Functions

+

Initialize native target for corresponding to host (useful for jitting).

+

Deallocate and destroy all “ManagedStatic” variables.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/sidebar-items.js b/llvm_kaleidoscope_rs/llvm/sidebar-items.js index c204e00..eda7ea8 100644 --- a/llvm_kaleidoscope_rs/llvm/sidebar-items.js +++ b/llvm_kaleidoscope_rs/llvm/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"fn":[["initialize_native_taget","Initialize native target for corresponding to host (useful for jitting)."],["shutdown","Deallocate and destroy all “ManagedStatic” variables."]],"struct":[["BasicBlock","Wrapper for a LLVM Basic Block."],["FnValue","Wrapper for a LLVM Value Reference specialized for contexts where function values are needed."],["FunctionPassManager","Wrapper for a LLVM Function PassManager (legacy)."],["IRBuilder","Wrapper for a LLVM IR Builder."],["LLJit","Wrapper for a LLVM LLJIT."],["Module","Wrapper for a LLVM Module with its own LLVM Context."],["ResourceTracker","A resource handle for code added to an [`LLJit`] instance."],["Type","Wrapper for a LLVM Type Reference."],["Value","Wrapper for a LLVM Value Reference."]]}); \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":[["initialize_native_taget","Initialize native target for corresponding to host (useful for jitting)."],["shutdown","Deallocate and destroy all “ManagedStatic” variables."]],"struct":[["BasicBlock","Wrapper for a LLVM Basic Block."],["FnValue","Wrapper for a LLVM Value Reference specialized for contexts where function values are needed."],["FunctionPassManager","Wrapper for a LLVM Function PassManager (legacy)."],["IRBuilder","Wrapper for a LLVM IR Builder."],["LLJit","Wrapper for a LLVM LLJIT."],["Module","Wrapper for a LLVM Module with its own LLVM Context."],["PhiValue","Wrapper for a LLVM Value Reference specialized for contexts where phi values are needed."],["ResourceTracker","A resource handle for code added to an [`LLJit`] instance."],["Type","Wrapper for a LLVM Type Reference."],["Value","Wrapper for a LLVM Value Reference."]]}; \ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.BasicBlock.html b/llvm_kaleidoscope_rs/llvm/struct.BasicBlock.html index 7379b3f..4d1a7ef 100644 --- a/llvm_kaleidoscope_rs/llvm/struct.BasicBlock.html +++ b/llvm_kaleidoscope_rs/llvm/struct.BasicBlock.html @@ -1,19 +1,29 @@ -BasicBlock in llvm_kaleidoscope_rs::llvm - Rust

Struct llvm_kaleidoscope_rs::llvm::BasicBlock[][src]

pub struct BasicBlock<'llvm>(_, _);
Expand description

Wrapper for a LLVM Basic Block.

-

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-
🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +BasicBlock in llvm_kaleidoscope_rs::llvm - Rust +
pub struct BasicBlock<'llvm>(_, _);
Expand description

Wrapper for a LLVM Basic Block.

+

Implementations

Get the function to which the basic block belongs.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Trait Implementations

Returns a copy of the value. Read more

+

Performs copy-assignment from source. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The resulting type after obtaining ownership.

+

Creates owned data from borrowed data, usually by cloning. Read more

+

Uses borrowed data to replace owned data, usually by cloning. Read more

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.FnValue.html b/llvm_kaleidoscope_rs/llvm/struct.FnValue.html index ec8f1e6..a93d306 100644 --- a/llvm_kaleidoscope_rs/llvm/struct.FnValue.html +++ b/llvm_kaleidoscope_rs/llvm/struct.FnValue.html @@ -1,42 +1,50 @@ -FnValue in llvm_kaleidoscope_rs::llvm - Rust

Struct llvm_kaleidoscope_rs::llvm::FnValue[][src]

#[repr(transparent)]
pub struct FnValue<'llvm>(_);
Expand description

Wrapper for a LLVM Value Reference specialized for contexts where function values are needed.

-

Implementations

Get a type reference representing the return value of the given function value.

-

Panics

+FnValue in llvm_kaleidoscope_rs::llvm - Rust +
#[repr(transparent)]
pub struct FnValue<'llvm>(_);
Expand description

Wrapper for a LLVM Value Reference specialized for contexts where function values are needed.

+

Implementations

Get a type reference representing the return value of the given function value.

+
Panics

Panics if LLVM API returns a null pointer.

-

Get the number of function arguments for the given function value.

-

Get a value reference for the function argument at index idx.

-

Panics

+

Get the number of function arguments for the given function value.

+

Get a value reference for the function argument at index idx.

+
Panics

Panics if LLVM API returns a null pointer or indexed out of bounds.

-

Get the number of Basic Blocks for the given function value.

-

Verify that the given function is valid.

-

Methods from Deref<Target = Value<'llvm>>

Dump the LLVM Value to stdout.

-

Get a type reference representing for the given value reference.

-

Panics

+

Get the number of Basic Blocks for the given function value.

+

Append a Basic Block to the end of the function value.

+

Verify that the given function is valid.

+

Methods from Deref<Target = Value<'llvm>>

Dump the LLVM Value to stdout.

+

Get a type reference representing for the given value reference.

+
Panics

Panics if LLVM API returns a null pointer.

-

Set the name for the given value reference.

-

Panics

+

Set the name for the given value reference.

+
Panics

Panics if LLVM API returns a null pointer.

-

Get the name for the given value reference.

-

Panics

+

Get the name for the given value reference.

+
Panics

Panics if LLVM API returns a null pointer.

-

Check if value is of f64 type.

-

Check if value is of integer type.

-

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

The resulting type after dereferencing.

-

Dereferences the value.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-
🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Check if value is of f64 type.

+

Check if value is of integer type.

+

Trait Implementations

Returns a copy of the value. Read more

+

Performs copy-assignment from source. Read more

+

The resulting type after dereferencing.

+

Dereferences the value.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The resulting type after obtaining ownership.

+

Creates owned data from borrowed data, usually by cloning. Read more

+

Uses borrowed data to replace owned data, usually by cloning. Read more

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.FunctionPassManager.html b/llvm_kaleidoscope_rs/llvm/struct.FunctionPassManager.html index b31d7f3..5f32199 100644 --- a/llvm_kaleidoscope_rs/llvm/struct.FunctionPassManager.html +++ b/llvm_kaleidoscope_rs/llvm/struct.FunctionPassManager.html @@ -1,5 +1,12 @@ -FunctionPassManager in llvm_kaleidoscope_rs::llvm - Rust

Struct llvm_kaleidoscope_rs::llvm::FunctionPassManager[][src]

pub struct FunctionPassManager<'llvm> { /* fields omitted */ }
Expand description

Wrapper for a LLVM Function PassManager (legacy).

-

Implementations

Create a new Function PassManager with the following optimization passes

+FunctionPassManager in llvm_kaleidoscope_rs::llvm - Rust +
pub struct FunctionPassManager<'llvm> { /* private fields */ }
Expand description

Wrapper for a LLVM Function PassManager (legacy).

+

Implementations

Create a new Function PassManager with the following optimization passes

  • InstructionCombiningPass
  • ReassociatePass
  • @@ -8,18 +15,19 @@

The list of selected optimization passes is taken from the tutorial chapter LLVM Optimization Passes.

-

Run the optimization passes registered with the Function PassManager on the function +

Run the optimization passes registered with the Function PassManager on the function referenced by fn_value.

-

Trait Implementations

Executes the destructor for this type. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Trait Implementations

Executes the destructor for this type. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html b/llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html index f8d13a5..7f77a2c 100644 --- a/llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html +++ b/llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html @@ -1,39 +1,62 @@ -IRBuilder in llvm_kaleidoscope_rs::llvm - Rust

Struct llvm_kaleidoscope_rs::llvm::IRBuilder[][src]

pub struct IRBuilder<'llvm> { /* fields omitted */ }
Expand description

Wrapper for a LLVM IR Builder.

-

Implementations

Create a new LLVM IR Builder with the modules context.

-

Panics

+IRBuilder in llvm_kaleidoscope_rs::llvm - Rust +
pub struct IRBuilder<'llvm> { /* private fields */ }
Expand description

Wrapper for a LLVM IR Builder.

+

Implementations

Create a new LLVM IR Builder with the modules context.

+
Panics

Panics if creating the IR Builder fails.

-

Position the IR Builder at the end of the given Basic Block.

-

Emit a fadd instruction.

-

Panics

-

Panics if LLVM API returns a null pointer.

-

Emit a fsub instruction.

-

Panics

-

Panics if LLVM API returns a null pointer.

-

Emit a fmul instruction.

-

Panics

-

Panics if LLVM API returns a null pointer.

-

Emit a fcmult instruction.

-

Panics

-

Panics if LLVM API returns a null pointer.

-

Emit a uitofp instruction.

-

Panics

-

Panics if LLVM API returns a null pointer.

-

Emit a call instruction.

-

Panics

-

Panics if LLVM API returns a null pointer.

-

Emit a ret instruction.

-

Panics

-

Panics if LLVM API returns a null pointer.

-

Trait Implementations

Executes the destructor for this type. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Position the IR Builder at the end of the given Basic Block.

+

Get the BasicBlock the IRBuilder currently inputs into.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit a fadd instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit a fsub instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit a fmul instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit a fcmpult instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit a fcmpone instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit a uitofp instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit a call instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit a ret instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit an unconditional br instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit a conditional br instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Emit a phi instruction.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Trait Implementations

Executes the destructor for this type. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.LLJit.html b/llvm_kaleidoscope_rs/llvm/struct.LLJit.html index f22d860..a68558b 100644 --- a/llvm_kaleidoscope_rs/llvm/struct.LLJit.html +++ b/llvm_kaleidoscope_rs/llvm/struct.LLJit.html @@ -1,26 +1,34 @@ -LLJit in llvm_kaleidoscope_rs::llvm - Rust

Struct llvm_kaleidoscope_rs::llvm::LLJit[][src]

pub struct LLJit { /* fields omitted */ }
Expand description

Wrapper for a LLVM LLJIT.

-

Implementations

Create a new LLJit instance.

-

Panics

+LLJit in llvm_kaleidoscope_rs::llvm - Rust +
pub struct LLJit { /* private fields */ }
Expand description

Wrapper for a LLVM LLJIT.

+

Implementations

Create a new LLJit instance.

+
Panics

Panics if LLVM API returns a null pointer or an error.

-

Add an LLVM IR module to the JIT. Return a ResourceTracker, which when dropped, will +

Add an LLVM IR module to the JIT. Return a ResourceTracker, which when dropped, will remove the code of the LLVM IR module from the JIT.

-

Panics

+
Panics

Panics if LLVM API returns a null pointer or an error.

-

Find the symbol with the name sym in the JIT.

-

Panics

+

Find the symbol with the name sym in the JIT.

+
Panics

Panics if the symbol is not found in the JIT.

-

Enable lookup of dynamic symbols available in the current process from the JIT.

-

Panics

+

Enable lookup of dynamic symbols available in the current process from the JIT.

+
Panics

Panics if LLVM API returns an error.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.Module.html b/llvm_kaleidoscope_rs/llvm/struct.Module.html index 71f28fd..a402750 100644 --- a/llvm_kaleidoscope_rs/llvm/struct.Module.html +++ b/llvm_kaleidoscope_rs/llvm/struct.Module.html @@ -1,37 +1,50 @@ -Module in llvm_kaleidoscope_rs::llvm - Rust

Struct llvm_kaleidoscope_rs::llvm::Module[][src]

pub struct Module { /* fields omitted */ }
Expand description

Wrapper for a LLVM Module with its own LLVM Context.

-

Implementations

Create a new Module instance.

-

Panics

+Module in llvm_kaleidoscope_rs::llvm - Rust +
pub struct Module { /* private fields */ }
Expand description

Wrapper for a LLVM Module with its own LLVM Context.

+

Implementations

Create a new Module instance.

+
Panics

Panics if creating the context or the module fails.

-

Dump LLVM IR emitted into the Module to stdout.

-

Get a type reference representing a f64 float.

-

Panics

+

Dump LLVM IR emitted into the Module to stdout.

+

Get a type reference representing a f64 float.

+
Panics

Panics if LLVM API returns a null pointer.

-

Get a type reference representing a fn(args) -> ret function.

-

Panics

+

Get a type reference representing a fn(args) -> ret function.

+
Panics

Panics if LLVM API returns a null pointer.

-

Add a function with the given name and fn_type to the module and return a value +

Add a function with the given name and fn_type to the module and return a value reference representing the function.

-

Panics

+
Panics

Panics if LLVM API returns a null pointer or name could not be converted to a SmallCStr.

-

Get a function value reference to the function with the given name if it was previously +

Get a function value reference to the function with the given name if it was previously added to the module with add_fn.

-

Panics

+
Panics

Panics if name could not be converted to a SmallCStr.

-

Append a Basic Block to the end of the function referenced by the value reference +

Append a Basic Block to the end of the function referenced by the value reference fn_value.

-

Panics

+
Panics

Panics if LLVM API returns a null pointer.

-

Trait Implementations

Executes the destructor for this type. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Create a free-standing Basic Block without adding it to a function. +This can be added to a function at a later point in time with +FnValue::append_basic_block.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Trait Implementations

Executes the destructor for this type. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.PhiValue.html b/llvm_kaleidoscope_rs/llvm/struct.PhiValue.html new file mode 100644 index 0000000..d7f53b0 --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/struct.PhiValue.html @@ -0,0 +1,41 @@ +PhiValue in llvm_kaleidoscope_rs::llvm - Rust +
#[repr(transparent)]
pub struct PhiValue<'llvm>(_);
Expand description

Wrapper for a LLVM Value Reference specialized for contexts where phi values are needed.

+

Implementations

Add an incoming value to the end of a PHI list.

+

Methods from Deref<Target = Value<'llvm>>

Dump the LLVM Value to stdout.

+

Get a type reference representing for the given value reference.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Set the name for the given value reference.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Get the name for the given value reference.

+
Panics
+

Panics if LLVM API returns a null pointer.

+

Check if value is of f64 type.

+

Check if value is of integer type.

+

Trait Implementations

Returns a copy of the value. Read more

+

Performs copy-assignment from source. Read more

+

The resulting type after dereferencing.

+

Dereferences the value.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The resulting type after obtaining ownership.

+

Creates owned data from borrowed data, usually by cloning. Read more

+

Uses borrowed data to replace owned data, usually by cloning. Read more

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
+ \ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.ResourceTracker.html b/llvm_kaleidoscope_rs/llvm/struct.ResourceTracker.html index 6939ee4..7a8118d 100644 --- a/llvm_kaleidoscope_rs/llvm/struct.ResourceTracker.html +++ b/llvm_kaleidoscope_rs/llvm/struct.ResourceTracker.html @@ -1,16 +1,24 @@ -ResourceTracker in llvm_kaleidoscope_rs::llvm - Rust

Struct llvm_kaleidoscope_rs::llvm::ResourceTracker[][src]

pub struct ResourceTracker<'jit>(_, _);
Expand description

A resource handle for code added to an LLJit instance.

+ResourceTracker in llvm_kaleidoscope_rs::llvm - Rust +
pub struct ResourceTracker<'jit>(_, _);
Expand description

A resource handle for code added to an LLJit instance.

When a ResourceTracker handle is dropped, the code corresponding to the handle will be removed from the JIT.

-

Trait Implementations

Executes the destructor for this type. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Trait Implementations

Executes the destructor for this type. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.Type.html b/llvm_kaleidoscope_rs/llvm/struct.Type.html index 516589d..83c5c44 100644 --- a/llvm_kaleidoscope_rs/llvm/struct.Type.html +++ b/llvm_kaleidoscope_rs/llvm/struct.Type.html @@ -1,23 +1,30 @@ -Type in llvm_kaleidoscope_rs::llvm - Rust

Struct llvm_kaleidoscope_rs::llvm::Type[][src]

#[repr(transparent)]
pub struct Type<'llvm>(_, _);
Expand description

Wrapper for a LLVM Type Reference.

-

Implementations

Dump the LLVM Type to stdout.

-

Get a value reference representing the const f64 value.

-

Panics

+Type in llvm_kaleidoscope_rs::llvm - Rust +
#[repr(transparent)]
pub struct Type<'llvm>(_, _);
Expand description

Wrapper for a LLVM Type Reference.

+

Implementations

Dump the LLVM Type to stdout.

+

Get a value reference representing the const f64 value.

+
Panics

Panics if LLVM API returns a null pointer.

-

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-
🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Trait Implementations

Returns a copy of the value. Read more

+

Performs copy-assignment from source. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The resulting type after obtaining ownership.

+

Creates owned data from borrowed data, usually by cloning. Read more

+

Uses borrowed data to replace owned data, usually by cloning. Read more

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.Value.html b/llvm_kaleidoscope_rs/llvm/struct.Value.html index 14d0e81..0079678 100644 --- a/llvm_kaleidoscope_rs/llvm/struct.Value.html +++ b/llvm_kaleidoscope_rs/llvm/struct.Value.html @@ -1,31 +1,38 @@ -Value in llvm_kaleidoscope_rs::llvm - Rust

Struct llvm_kaleidoscope_rs::llvm::Value[][src]

#[repr(transparent)]
pub struct Value<'llvm>(_, _);
Expand description

Wrapper for a LLVM Value Reference.

-

Implementations

Dump the LLVM Value to stdout.

-

Get a type reference representing for the given value reference.

-

Panics

+Value in llvm_kaleidoscope_rs::llvm - Rust +
#[repr(transparent)]
pub struct Value<'llvm>(_, _);
Expand description

Wrapper for a LLVM Value Reference.

+

Implementations

Dump the LLVM Value to stdout.

+

Get a type reference representing for the given value reference.

+
Panics

Panics if LLVM API returns a null pointer.

-

Set the name for the given value reference.

-

Panics

+

Set the name for the given value reference.

+
Panics

Panics if LLVM API returns a null pointer.

-

Get the name for the given value reference.

-

Panics

+

Get the name for the given value reference.

+
Panics

Panics if LLVM API returns a null pointer.

-

Check if value is of f64 type.

-

Check if value is of integer type.

-

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-
🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Check if value is of f64 type.

+

Check if value is of integer type.

+

Trait Implementations

Returns a copy of the value. Read more

+

Performs copy-assignment from source. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The resulting type after obtaining ownership.

+

Creates owned data from borrowed data, usually by cloning. Read more

+

Uses borrowed data to replace owned data, usually by cloning. Read more

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/value/struct.PhiValue.html b/llvm_kaleidoscope_rs/llvm/value/struct.PhiValue.html new file mode 100644 index 0000000..35284fd --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/value/struct.PhiValue.html @@ -0,0 +1,11 @@ + + + + + Redirection + + +

Redirecting to ../../../llvm_kaleidoscope_rs/llvm/struct.PhiValue.html...

+ + + \ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/enum.ExprAST.html b/llvm_kaleidoscope_rs/parser/enum.ExprAST.html index 60d61ee..b4c86fb 100644 --- a/llvm_kaleidoscope_rs/parser/enum.ExprAST.html +++ b/llvm_kaleidoscope_rs/parser/enum.ExprAST.html @@ -1,25 +1,47 @@ -ExprAST in llvm_kaleidoscope_rs::parser - Rust

Enum llvm_kaleidoscope_rs::parser::ExprAST[][src]

pub enum ExprAST {
-    Number(f64),
-    Variable(String),
-    Binary(charBox<ExprAST>, Box<ExprAST>),
-    Call(StringVec<ExprAST>),
-}

Variants

Number(f64)

Number - Expression class for numeric literals like “1.0”.

-
Variable(String)

Variable - Expression class for referencing a variable, like “a”.

-
Binary(charBox<ExprAST>, Box<ExprAST>)

Binary - Expression class for a binary operator.

-
Call(StringVec<ExprAST>)

Call - Expression class for function calls.

-

Trait Implementations

Formats the value using the given formatter. Read more

-

This method tests for self and other values to be equal, and is used -by ==. Read more

-

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +ExprAST in llvm_kaleidoscope_rs::parser - Rust +
pub enum ExprAST {
+    Number(f64),
+    Variable(String),
+    Binary(charBox<ExprAST>, Box<ExprAST>),
+    Call(StringVec<ExprAST>),
+    If {
+        cond: Box<ExprAST>,
+        then: Box<ExprAST>,
+        else_: Box<ExprAST>,
+    },
+    For {
+        var: String,
+        start: Box<ExprAST>,
+        end: Box<ExprAST>,
+        step: Option<Box<ExprAST>>,
+        body: Box<ExprAST>,
+    },
+}

Variants

Number(f64)

Number - Expression class for numeric literals like “1.0”.

+

Variable(String)

Variable - Expression class for referencing a variable, like “a”.

+

Binary(charBox<ExprAST>, Box<ExprAST>)

Binary - Expression class for a binary operator.

+

Call(StringVec<ExprAST>)

Call - Expression class for function calls.

+

If

Fields

cond: Box<ExprAST>
then: Box<ExprAST>
else_: Box<ExprAST>

If - Expression class for if/then/else.

+

For

Fields

var: String
start: Box<ExprAST>
end: Box<ExprAST>
step: Option<Box<ExprAST>>
body: Box<ExprAST>

ForExprAST - Expression class for for/in.

+

Trait Implementations

Formats the value using the given formatter. Read more

+

This method tests for self and other values to be equal, and is used +by ==. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/index.html b/llvm_kaleidoscope_rs/parser/index.html index 9974ef7..98e8b0a 100644 --- a/llvm_kaleidoscope_rs/parser/index.html +++ b/llvm_kaleidoscope_rs/parser/index.html @@ -1,10 +1,16 @@ -llvm_kaleidoscope_rs::parser - Rust

Module llvm_kaleidoscope_rs::parser[][src]

Structs

-

FunctionAST - This class represents a function definition itself.

-

Parser for the kaleidoscope language.

-

PrototypeAST - This class represents the “prototype” for a function, +llvm_kaleidoscope_rs::parser - Rust

+

Structs

+

FunctionAST - This class represents a function definition itself.

+

Parser for the kaleidoscope language.

+

PrototypeAST - This class represents the “prototype” for a function, which captures its name, and its argument names (thus implicitly the number of arguments the function takes).

-

Enums

-
- +

Enums

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/sidebar-items.js b/llvm_kaleidoscope_rs/parser/sidebar-items.js index 0582f57..e4efd12 100644 --- a/llvm_kaleidoscope_rs/parser/sidebar-items.js +++ b/llvm_kaleidoscope_rs/parser/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"enum":[["ExprAST",""]],"struct":[["FunctionAST","FunctionAST - This class represents a function definition itself."],["Parser","Parser for the `kaleidoscope` language."],["PrototypeAST","PrototypeAST - This class represents the “prototype” for a function, which captures its name, and its argument names (thus implicitly the number of arguments the function takes)."]]}); \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":[["ExprAST",""]],"struct":[["FunctionAST","FunctionAST - This class represents a function definition itself."],["Parser","Parser for the `kaleidoscope` language."],["PrototypeAST","PrototypeAST - This class represents the “prototype” for a function, which captures its name, and its argument names (thus implicitly the number of arguments the function takes)."]]}; \ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/struct.FunctionAST.html b/llvm_kaleidoscope_rs/parser/struct.FunctionAST.html index 6ffdd4f..6c396d4 100644 --- a/llvm_kaleidoscope_rs/parser/struct.FunctionAST.html +++ b/llvm_kaleidoscope_rs/parser/struct.FunctionAST.html @@ -1,17 +1,25 @@ -FunctionAST in llvm_kaleidoscope_rs::parser - Rust

Struct llvm_kaleidoscope_rs::parser::FunctionAST[][src]

pub struct FunctionAST(pub PrototypeAST, pub ExprAST);
Expand description

FunctionAST - This class represents a function definition itself.

-

Trait Implementations

Formats the value using the given formatter. Read more

-

This method tests for self and other values to be equal, and is used -by ==. Read more

-

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +FunctionAST in llvm_kaleidoscope_rs::parser - Rust +
pub struct FunctionAST(pub PrototypeAST, pub ExprAST);
Expand description

FunctionAST - This class represents a function definition itself.

+

Tuple Fields

0: PrototypeAST1: ExprAST

Trait Implementations

Formats the value using the given formatter. Read more

+

This method tests for self and other values to be equal, and is used +by ==. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/struct.Parser.html b/llvm_kaleidoscope_rs/parser/struct.Parser.html index 36154fe..cb9e4b9 100644 --- a/llvm_kaleidoscope_rs/parser/struct.Parser.html +++ b/llvm_kaleidoscope_rs/parser/struct.Parser.html @@ -1,24 +1,32 @@ -Parser in llvm_kaleidoscope_rs::parser - Rust

Struct llvm_kaleidoscope_rs::parser::Parser[][src]

pub struct Parser<I> where
    I: Iterator<Item = char>, 
{ /* fields omitted */ }
Expand description

Parser for the kaleidoscope language.

-

Implementations

Implement the global variable int CurTok; from the tutorial.

-

Panics

+Parser in llvm_kaleidoscope_rs::parser - Rust +
pub struct Parser<I> where
    I: Iterator<Item = char>, 
{ /* private fields */ }
Expand description

Parser for the kaleidoscope language.

+

Implementations

Implement the global variable int CurTok; from the tutorial.

+
Panics

Panics if the parser doesn’t have a current token.

-

Advance the cur_tok by getting the next token from the lexer.

+

Advance the cur_tok by getting the next token from the lexer.

Implement the fucntion int getNextToken(); from the tutorial.

-

definition ::= ‘def’ prototype expression

+

definition ::= ‘def’ prototype expression

Implement std::unique_ptr<FunctionAST> ParseDefinition(); from the tutorial.

-

external ::= ‘extern’ prototype

+

external ::= ‘extern’ prototype

Implement std::unique_ptr<PrototypeAST> ParseExtern(); from the tutorial.

-

toplevelexpr ::= expression

+

toplevelexpr ::= expression

Implement std::unique_ptr<FunctionAST> ParseTopLevelExpr(); from the tutorial.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html b/llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html index f8bab49..f34140c 100644 --- a/llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html +++ b/llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html @@ -1,25 +1,32 @@ -PrototypeAST in llvm_kaleidoscope_rs::parser - Rust

Struct llvm_kaleidoscope_rs::parser::PrototypeAST[][src]

pub struct PrototypeAST(pub String, pub Vec<String>);
Expand description

PrototypeAST - This class represents the “prototype” for a function, +PrototypeAST in llvm_kaleidoscope_rs::parser - Rust

+
pub struct PrototypeAST(pub String, pub Vec<String>);
Expand description

PrototypeAST - This class represents the “prototype” for a function, which captures its name, and its argument names (thus implicitly the number of arguments the function takes).

-

Trait Implementations

Returns a copy of the value. Read more

-

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

This method tests for self and other values to be equal, and is used -by ==. Read more

-

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The resulting type after obtaining ownership.

-

Creates owned data from borrowed data, usually by cloning. Read more

-
🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

-

Uses borrowed data to replace owned data, usually by cloning. Read more

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Tuple Fields

0: String1: Vec<String>

Trait Implementations

Returns a copy of the value. Read more

+

Performs copy-assignment from source. Read more

+

Formats the value using the given formatter. Read more

+

This method tests for self and other values to be equal, and is used +by ==. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The resulting type after obtaining ownership.

+

Creates owned data from borrowed data, usually by cloning. Read more

+

Uses borrowed data to replace owned data, usually by cloning. Read more

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/sidebar-items.js b/llvm_kaleidoscope_rs/sidebar-items.js index 05674ad..4a97b12 100644 --- a/llvm_kaleidoscope_rs/sidebar-items.js +++ b/llvm_kaleidoscope_rs/sidebar-items.js @@ -1 +1 @@ -initSidebarItems({"constant":[["SMALL_STR_SIZE","Fixed size of [`SmallCStr`] including the trailing `\\0` byte."]],"enum":[["Either","Either type, for APIs accepting two types."]],"mod":[["codegen",""],["lexer",""],["llvm","Safe wrapper around the LLVM C API."],["parser",""]],"struct":[["SmallCStr","Small C string on the stack with fixed size [`SMALL_STR_SIZE`]."]]}); \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":[["SMALL_STR_SIZE","Fixed size of [`SmallCStr`] including the trailing `\\0` byte."]],"enum":[["Either","Either type, for APIs accepting two types."]],"mod":[["codegen",""],["lexer",""],["llvm","Safe wrapper around the LLVM C API."],["parser",""]],"struct":[["SmallCStr","Small C string on the stack with fixed size [`SMALL_STR_SIZE`]."]]}; \ No newline at end of file diff --git a/llvm_kaleidoscope_rs/struct.SmallCStr.html b/llvm_kaleidoscope_rs/struct.SmallCStr.html index e0d7625..034ffe7 100644 --- a/llvm_kaleidoscope_rs/struct.SmallCStr.html +++ b/llvm_kaleidoscope_rs/struct.SmallCStr.html @@ -1,23 +1,31 @@ -SmallCStr in llvm_kaleidoscope_rs - Rust

Struct llvm_kaleidoscope_rs::SmallCStr[][src]

pub struct SmallCStr(_);
Expand description

Small C string on the stack with fixed size SMALL_STR_SIZE.

+SmallCStr in llvm_kaleidoscope_rs - Rust +
pub struct SmallCStr(_);
Expand description

Small C string on the stack with fixed size SMALL_STR_SIZE.

This is specially crafted to interact with the LLVM C API and get rid of some heap allocations.

-

Implementations

Create a new C string from src. -Returns None if src exceeds the fixed size or contains any \0 bytes.

-

Return pointer to C string.

-

Trait Implementations

Formats the value using the given formatter. Read more

-

This method tests for self and other values to be equal, and is used -by ==. Read more

-

This method tests for !=.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

-

Immutably borrows from an owned value. Read more

-

Mutably borrows from an owned value. Read more

-

Performs the conversion.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-

The type returned in the event of a conversion error.

-

Performs the conversion.

-
- +

Implementations

Create a new C string from src. +Returns None if src exceeds the fixed size or contains any \0 bytes.

+

Return pointer to C string.

+

Trait Implementations

Formats the value using the given formatter. Read more

+

This method tests for self and other values to be equal, and is used +by ==. Read more

+

This method tests for !=.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Immutably borrows from an owned value. Read more

+

Mutably borrows from an owned value. Read more

+

Returns the argument unchanged.

+

Calls U::from(self).

+

That is, this conversion is whatever the implementation of +From<T> for U chooses to do.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+

The type returned in the event of a conversion error.

+

Performs the conversion.

+
\ No newline at end of file -- cgit v1.2.3