From 73e25a571f12d3deaa6f4493a5b4792a9dae39eb Mon Sep 17 00:00:00 2001 From: johannst Date: Sat, 24 Sep 2022 22:38:40 +0000 Subject: deploy: 295081130ca1eed6e67dfc035e2df2c9ed49b174 --- .../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 +++ 16 files changed, 410 insertions(+), 236 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/llvm') 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 -- cgit v1.2.3