From a47dfd3d1417412f4d55ffa964d9fc98d8d53a9d Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 13 Sep 2021 22:26:20 +0000 Subject: deploy: 743f301eef632a41bd870529a9e838ce4974f9eb --- llvm_kaleidoscope_rs/all.html | 5 +++ llvm_kaleidoscope_rs/codegen/index.html | 5 +++ llvm_kaleidoscope_rs/codegen/sidebar-items.js | 1 + llvm_kaleidoscope_rs/codegen/struct.Codegen.html | 14 ++++++++ llvm_kaleidoscope_rs/constant.SMALL_STR_SIZE.html | 4 +++ llvm_kaleidoscope_rs/enum.Either.html | 18 ++++++++++ llvm_kaleidoscope_rs/index.html | 11 ++++++ llvm_kaleidoscope_rs/lexer/enum.Token.html | 25 +++++++++++++ llvm_kaleidoscope_rs/lexer/index.html | 5 +++ llvm_kaleidoscope_rs/lexer/sidebar-items.js | 1 + llvm_kaleidoscope_rs/lexer/struct.Lexer.html | 14 ++++++++ llvm_kaleidoscope_rs/llvm/index.html | 15 ++++++++ llvm_kaleidoscope_rs/llvm/sidebar-items.js | 1 + llvm_kaleidoscope_rs/llvm/struct.BasicBlock.html | 19 ++++++++++ llvm_kaleidoscope_rs/llvm/struct.Builder.html | 39 ++++++++++++++++++++ llvm_kaleidoscope_rs/llvm/struct.FnValue.html | 42 ++++++++++++++++++++++ llvm_kaleidoscope_rs/llvm/struct.Module.html | 37 +++++++++++++++++++ llvm_kaleidoscope_rs/llvm/struct.Type.html | 23 ++++++++++++ llvm_kaleidoscope_rs/llvm/struct.Value.html | 31 ++++++++++++++++ llvm_kaleidoscope_rs/parser/enum.ExprAST.html | 27 ++++++++++++++ llvm_kaleidoscope_rs/parser/index.html | 10 ++++++ llvm_kaleidoscope_rs/parser/sidebar-items.js | 1 + .../parser/struct.FunctionAST.html | 17 +++++++++ llvm_kaleidoscope_rs/parser/struct.Parser.html | 24 +++++++++++++ .../parser/struct.PrototypeAST.html | 19 ++++++++++ llvm_kaleidoscope_rs/sidebar-items.js | 1 + llvm_kaleidoscope_rs/struct.SmallCStr.html | 22 ++++++++++++ 27 files changed, 431 insertions(+) create mode 100644 llvm_kaleidoscope_rs/all.html create mode 100644 llvm_kaleidoscope_rs/codegen/index.html create mode 100644 llvm_kaleidoscope_rs/codegen/sidebar-items.js create mode 100644 llvm_kaleidoscope_rs/codegen/struct.Codegen.html create mode 100644 llvm_kaleidoscope_rs/constant.SMALL_STR_SIZE.html create mode 100644 llvm_kaleidoscope_rs/enum.Either.html create mode 100644 llvm_kaleidoscope_rs/index.html create mode 100644 llvm_kaleidoscope_rs/lexer/enum.Token.html create mode 100644 llvm_kaleidoscope_rs/lexer/index.html create mode 100644 llvm_kaleidoscope_rs/lexer/sidebar-items.js create mode 100644 llvm_kaleidoscope_rs/lexer/struct.Lexer.html create mode 100644 llvm_kaleidoscope_rs/llvm/index.html create mode 100644 llvm_kaleidoscope_rs/llvm/sidebar-items.js create mode 100644 llvm_kaleidoscope_rs/llvm/struct.BasicBlock.html create mode 100644 llvm_kaleidoscope_rs/llvm/struct.Builder.html create mode 100644 llvm_kaleidoscope_rs/llvm/struct.FnValue.html create mode 100644 llvm_kaleidoscope_rs/llvm/struct.Module.html create mode 100644 llvm_kaleidoscope_rs/llvm/struct.Type.html create mode 100644 llvm_kaleidoscope_rs/llvm/struct.Value.html create mode 100644 llvm_kaleidoscope_rs/parser/enum.ExprAST.html create mode 100644 llvm_kaleidoscope_rs/parser/index.html create mode 100644 llvm_kaleidoscope_rs/parser/sidebar-items.js create mode 100644 llvm_kaleidoscope_rs/parser/struct.FunctionAST.html create mode 100644 llvm_kaleidoscope_rs/parser/struct.Parser.html create mode 100644 llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html create mode 100644 llvm_kaleidoscope_rs/sidebar-items.js create mode 100644 llvm_kaleidoscope_rs/struct.SmallCStr.html (limited to 'llvm_kaleidoscope_rs') diff --git a/llvm_kaleidoscope_rs/all.html b/llvm_kaleidoscope_rs/all.html new file mode 100644 index 0000000..722e4e9 --- /dev/null +++ b/llvm_kaleidoscope_rs/all.html @@ -0,0 +1,5 @@ +List of all items in this crate + +

List of all items[] + +

Structs

Enums

Constants

\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/codegen/index.html b/llvm_kaleidoscope_rs/codegen/index.html new file mode 100644 index 0000000..3646e69 --- /dev/null +++ b/llvm_kaleidoscope_rs/codegen/index.html @@ -0,0 +1,5 @@ +llvm_kaleidoscope_rs::codegen - Rust + +

Module llvm_kaleidoscope_rs::codegen[][src]

Structs

+
Codegen

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 new file mode 100644 index 0000000..c4119ea --- /dev/null +++ b/llvm_kaleidoscope_rs/codegen/sidebar-items.js @@ -0,0 +1 @@ +initSidebarItems({"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 new file mode 100644 index 0000000..d31396a --- /dev/null +++ b/llvm_kaleidoscope_rs/codegen/struct.Codegen.html @@ -0,0 +1,14 @@ +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.

+
\ 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 new file mode 100644 index 0000000..d1b75ce --- /dev/null +++ b/llvm_kaleidoscope_rs/constant.SMALL_STR_SIZE.html @@ -0,0 +1,4 @@ +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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/enum.Either.html b/llvm_kaleidoscope_rs/enum.Either.html new file mode 100644 index 0000000..bfb9c76 --- /dev/null +++ b/llvm_kaleidoscope_rs/enum.Either.html @@ -0,0 +1,18 @@ +Either in llvm_kaleidoscope_rs - Rust + +

Enum llvm_kaleidoscope_rs::Either[][src]

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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/index.html b/llvm_kaleidoscope_rs/index.html new file mode 100644 index 0000000..968b8bf --- /dev/null +++ b/llvm_kaleidoscope_rs/index.html @@ -0,0 +1,11 @@ +llvm_kaleidoscope_rs - Rust + +

Crate llvm_kaleidoscope_rs[][src]

Modules

+
codegen
lexer
llvm

Safe wrapper around the LLVM C API.

+
parser

Structs

+
SmallCStr

Small C string on the stack with fixed size SMALL_STR_SIZE.

+

Enums

+
Either

Either type, for APIs accepting two types.

+

Constants

+
SMALL_STR_SIZE

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 new file mode 100644 index 0000000..e93e300 --- /dev/null +++ b/llvm_kaleidoscope_rs/lexer/enum.Token.html @@ -0,0 +1,25 @@ +Token in llvm_kaleidoscope_rs::lexer - Rust + +

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

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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/lexer/index.html b/llvm_kaleidoscope_rs/lexer/index.html new file mode 100644 index 0000000..ad9e36f --- /dev/null +++ b/llvm_kaleidoscope_rs/lexer/index.html @@ -0,0 +1,5 @@ +llvm_kaleidoscope_rs::lexer - Rust + +

Module llvm_kaleidoscope_rs::lexer[][src]

Structs

+
Lexer

Enums

+
Token
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/lexer/sidebar-items.js b/llvm_kaleidoscope_rs/lexer/sidebar-items.js new file mode 100644 index 0000000..343e858 --- /dev/null +++ b/llvm_kaleidoscope_rs/lexer/sidebar-items.js @@ -0,0 +1 @@ +initSidebarItems({"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 new file mode 100644 index 0000000..b85a138 --- /dev/null +++ b/llvm_kaleidoscope_rs/lexer/struct.Lexer.html @@ -0,0 +1,14 @@ +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.

+

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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/index.html b/llvm_kaleidoscope_rs/llvm/index.html new file mode 100644 index 0000000..acd0ba4 --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/index.html @@ -0,0 +1,15 @@ +llvm_kaleidoscope_rs::llvm - Rust + +

Module llvm_kaleidoscope_rs::llvm[][src]

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.

+

Structs

+
BasicBlock

Wrapper for a LLVM Basic Block.

+
Builder

Wrapper for a LLVM IR Builder.

+
FnValue

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

+
Module

Wrapper for a LLVM Module with its own LLVM Context.

+
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/sidebar-items.js b/llvm_kaleidoscope_rs/llvm/sidebar-items.js new file mode 100644 index 0000000..71ace87 --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/sidebar-items.js @@ -0,0 +1 @@ +initSidebarItems({"struct":[["BasicBlock","Wrapper for a LLVM Basic Block."],["Builder","Wrapper for a LLVM IR Builder."],["FnValue","Wrapper for a LLVM Value Reference specialized for contexts where function values are needed."],["Module","Wrapper for a LLVM Module with its own LLVM Context."],["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 new file mode 100644 index 0000000..2b943b1 --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/struct.BasicBlock.html @@ -0,0 +1,19 @@ +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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.Builder.html b/llvm_kaleidoscope_rs/llvm/struct.Builder.html new file mode 100644 index 0000000..dd33e3e --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/struct.Builder.html @@ -0,0 +1,39 @@ +Builder in llvm_kaleidoscope_rs::llvm - Rust + +

Struct llvm_kaleidoscope_rs::llvm::Builder[][src]

pub struct Builder<'llvm> { /* fields omitted */ }
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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.FnValue.html b/llvm_kaleidoscope_rs/llvm/struct.FnValue.html new file mode 100644 index 0000000..64ff22c --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/struct.FnValue.html @@ -0,0 +1,42 @@ +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

+

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

+

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

+

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

+

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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.Module.html b/llvm_kaleidoscope_rs/llvm/struct.Module.html new file mode 100644 index 0000000..6d9cb60 --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/struct.Module.html @@ -0,0 +1,37 @@ +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

+

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

+

Panics if LLVM API returns a null pointer.

+

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 +reference representing the function.

+

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 +added to the module with add_fn.

+

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 +fn_value.

+

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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.Type.html b/llvm_kaleidoscope_rs/llvm/struct.Type.html new file mode 100644 index 0000000..51fcaf8 --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/struct.Type.html @@ -0,0 +1,23 @@ +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

+

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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/llvm/struct.Value.html b/llvm_kaleidoscope_rs/llvm/struct.Value.html new file mode 100644 index 0000000..7f6e117 --- /dev/null +++ b/llvm_kaleidoscope_rs/llvm/struct.Value.html @@ -0,0 +1,31 @@ +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

+

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

+

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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/enum.ExprAST.html b/llvm_kaleidoscope_rs/parser/enum.ExprAST.html new file mode 100644 index 0000000..d718684 --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/enum.ExprAST.html @@ -0,0 +1,27 @@ +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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/index.html b/llvm_kaleidoscope_rs/parser/index.html new file mode 100644 index 0000000..79a8a5c --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/index.html @@ -0,0 +1,10 @@ +llvm_kaleidoscope_rs::parser - Rust + +

Module llvm_kaleidoscope_rs::parser[][src]

Structs

+
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).

+

Enums

+
ExprAST
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/sidebar-items.js b/llvm_kaleidoscope_rs/parser/sidebar-items.js new file mode 100644 index 0000000..0582f57 --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/sidebar-items.js @@ -0,0 +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 diff --git a/llvm_kaleidoscope_rs/parser/struct.FunctionAST.html b/llvm_kaleidoscope_rs/parser/struct.FunctionAST.html new file mode 100644 index 0000000..9592bbb --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/struct.FunctionAST.html @@ -0,0 +1,17 @@ +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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/struct.Parser.html b/llvm_kaleidoscope_rs/parser/struct.Parser.html new file mode 100644 index 0000000..860dfc4 --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/struct.Parser.html @@ -0,0 +1,24 @@ +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

+

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

+

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

+

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

+

definition ::= ‘def’ prototype expression

+

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

+

external ::= ‘extern’ prototype

+

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

+

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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html b/llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html new file mode 100644 index 0000000..96148d4 --- /dev/null +++ b/llvm_kaleidoscope_rs/parser/struct.PrototypeAST.html @@ -0,0 +1,19 @@ +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, +which captures its name, and its argument names (thus implicitly the number +of arguments the function takes).

+

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.

+
\ No newline at end of file diff --git a/llvm_kaleidoscope_rs/sidebar-items.js b/llvm_kaleidoscope_rs/sidebar-items.js new file mode 100644 index 0000000..05674ad --- /dev/null +++ b/llvm_kaleidoscope_rs/sidebar-items.js @@ -0,0 +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 diff --git a/llvm_kaleidoscope_rs/struct.SmallCStr.html b/llvm_kaleidoscope_rs/struct.SmallCStr.html new file mode 100644 index 0000000..308dced --- /dev/null +++ b/llvm_kaleidoscope_rs/struct.SmallCStr.html @@ -0,0 +1,22 @@ +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.

+

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.

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