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/llvm/struct.Module.html | 65 +++++++++++++++++----------- 1 file changed, 39 insertions(+), 26 deletions(-) (limited to 'llvm_kaleidoscope_rs/llvm/struct.Module.html') 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 -- cgit v1.2.3