From 3dfc8f0258ab0884eef50cc8f33b8666cdb4c3cf Mon Sep 17 00:00:00 2001 From: johannst Date: Mon, 20 Nov 2023 23:28:40 +0000 Subject: deploy: 4e3898b34a5dbcfabbcf861998d915c261831b60 --- llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html | 57 ++++++++++++++++--------- 1 file changed, 38 insertions(+), 19 deletions(-) (limited to 'llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html') diff --git a/llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html b/llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html index b98503a..5c8049e 100644 --- a/llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html +++ b/llvm_kaleidoscope_rs/llvm/struct.IRBuilder.html @@ -1,46 +1,65 @@ -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.

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

Wrapper for a LLVM IR Builder.

+

Implementations§

source§

impl<'llvm> IRBuilder<'llvm>

source

pub fn with_ctx(module: &'llvm Module) -> IRBuilder<'llvm>

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.

-

Get the BasicBlock the IRBuilder currently inputs into.

+
source

pub fn pos_at_end(&self, bb: BasicBlock<'llvm>)

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

+
source

pub fn get_insert_block(&self) -> BasicBlock<'llvm>

Get the BasicBlock the IRBuilder currently inputs into.

Panics

Panics if LLVM API returns a null pointer.

-

Emit a fadd instruction.

+
source

pub fn fadd(&self, lhs: Value<'llvm>, rhs: Value<'llvm>) -> Value<'llvm>

Emit a fadd instruction.

Panics

Panics if LLVM API returns a null pointer.

-

Emit a fsub instruction.

+
source

pub fn fsub(&self, lhs: Value<'llvm>, rhs: Value<'llvm>) -> Value<'llvm>

Emit a fsub instruction.

Panics

Panics if LLVM API returns a null pointer.

-

Emit a fmul instruction.

+
source

pub fn fmul(&self, lhs: Value<'llvm>, rhs: Value<'llvm>) -> Value<'llvm>

Emit a fmul instruction.

Panics

Panics if LLVM API returns a null pointer.

-

Emit a fcmpult instruction.

+
source

pub fn fcmpult(&self, lhs: Value<'llvm>, rhs: Value<'llvm>) -> Value<'llvm>

Emit a fcmpult instruction.

Panics

Panics if LLVM API returns a null pointer.

-

Emit a fcmpone instruction.

+
source

pub fn fcmpone(&self, lhs: Value<'llvm>, rhs: Value<'llvm>) -> Value<'llvm>

Emit a fcmpone instruction.

Panics

Panics if LLVM API returns a null pointer.

-

Emit a uitofp instruction.

+
source

pub fn uitofp(&self, val: Value<'llvm>, dest_type: Type<'llvm>) -> Value<'llvm>

Emit a uitofp instruction.

Panics

Panics if LLVM API returns a null pointer.

-

Emit a call instruction.

+
source

pub fn call( + &self, + fn_value: FnValue<'llvm>, + args: &mut [Value<'llvm>] +) -> Value<'llvm>

Emit a call instruction.

Panics

Panics if LLVM API returns a null pointer.

-

Emit a ret instruction.

+
source

pub fn ret(&self, ret: Value<'llvm>)

Emit a ret instruction.

Panics

Panics if LLVM API returns a null pointer.

-

Emit an unconditional br instruction.

+
source

pub fn br(&self, dest: BasicBlock<'llvm>)

Emit an unconditional br instruction.

Panics

Panics if LLVM API returns a null pointer.

-

Emit a conditional br instruction.

+
source

pub fn cond_br( + &self, + cond: Value<'llvm>, + then: BasicBlock<'llvm>, + else_: BasicBlock<'llvm> +)

Emit a conditional br instruction.

Panics

Panics if LLVM API returns a null pointer.

-

Emit a phi instruction.

+
source

pub fn phi( + &self, + phi_type: Type<'llvm>, + incoming: &[(Value<'llvm>, BasicBlock<'llvm>)] +) -> PhiValue<'llvm>

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

+

Trait Implementations§

source§

impl Drop for IRBuilder<'_>

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl<'llvm> RefUnwindSafe for IRBuilder<'llvm>

§

impl<'llvm> !Send for IRBuilder<'llvm>

§

impl<'llvm> !Sync for IRBuilder<'llvm>

§

impl<'llvm> Unpin for IRBuilder<'llvm>

§

impl<'llvm> UnwindSafe for IRBuilder<'llvm>

Blanket Implementations§

source§

impl<T> Any for Twhere + T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere + T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+
source§

impl<T, U> Into<U> for Twhere + U: From<T>,

source§

fn into(self) -> U

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 +From<T> for U chooses to do.

+
source§

impl<T, U> TryFrom<U> for Twhere + U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
\ No newline at end of file -- cgit v1.2.3