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.

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.