class

LLVM::Builder

Inherits Reference / Object

Constructors

new(unwrap : LibLLVM::BuilderRef)
Source

Instance methods

add(lhs, rhs, name = "")
Source
add_handler(catch_switch_ref, handler)
Source
alloca(type, name = "")
Source
and(lhs, rhs, name = "")
Source
ashr(lhs, rhs, name = "")
Source
atomicrmw(op, ptr, val, ordering, singlethread)
Source
bit_cast(value, type, name = "")
Source
br(block)
Source
build_catch_ret(pad, basic_block)
Source
build_operand_bundle_def(name, values : Array(LLVM::Value))
Source
call(type : LLVM::Type, func : LLVM::Function, args : Array(LLVM::Value), name : String, bundle : LLVM::OperandBundleDef)
Source
call(type : LLVM::Type, func : LLVM::Function, args : Array(LLVM::Value), name : String = "")
Source
call(type : LLVM::Type, func : LLVM::Function, arg : LLVM::Value, name : String = "")
Source
call(func : LLVM::Function, args : Array(LLVM::Value), name : String = "", bundle : LLVM::OperandBundleDef = LLVM::OperandBundleDef.null)

DEPRECATED Pass the function type of func as well (equal to func.function_type) in order to support LLVM 15+

Source
call(func : LLVM::Function, name : String = "")

DEPRECATED Pass the function type of func as well (equal to func.function_type) in order to support LLVM 15+

Source
call(type : LLVM::Type, func : LLVM::Function, name : String = "")
Source
call(func : LLVM::Function, arg : LLVM::Value, name : String = "")

DEPRECATED Pass the function type of func as well (equal to func.function_type) in order to support LLVM 15+

Source
catch_pad(parent_pad, args : Array(LLVM::Value), name = "")
Source
catch_switch(parent_pad, basic_block, num_handlers, name = "")
Source
clear_current_debug_location
Source
cmpxchg(pointer, cmp, new, success_ordering, failure_ordering, singlethread : Bool = false)
Source
cond(cond, then_block, else_block)
Source
current_debug_location
Source
exact_sdiv(lhs, rhs, name = "")
Source
extract_value(value, index, name = "")
Source
fadd(lhs, rhs, name = "")
Source
fcmp(op, lhs, rhs, name = "")
Source
fdiv(lhs, rhs, name = "")
Source
fence(ordering, singlethread, name = "")
Source
finalize
Source
fmul(lhs, rhs, name = "")
Source
fneg(value, name = "")
Source
fp2si(value, type, name = "")
Source
fp2ui(value, type, name = "")
Source
fpext(value, type, name = "")
Source
fptrunc(value, type, name = "")
Source
fsub(lhs, rhs, name = "")
Source
gep(type : LLVM::Type, value : LLVM::Value, index1 : LLVM::Value, index2 : LLVM::Value, name = "")
Source
gep(value : LLVM::Value, indices : Array(LLVM::ValueRef), name = "")

DEPRECATED Pass the type of value as well (equal to value.type) in order to support LLVM 15+

Source
gep(type : LLVM::Type, value : LLVM::Value, indices : Array(LLVM::ValueRef), name = "")
Source
gep(value : LLVM::Value, index1 : LLVM::Value, index2 : LLVM::Value, name = "")

DEPRECATED Pass the type of value as well (equal to value.type) in order to support LLVM 15+

Source
gep(value : LLVM::Value, index : LLVM::Value, name = "")

DEPRECATED Pass the type of value as well (equal to value.type) in order to support LLVM 15+

Source
gep(type : LLVM::Type, value : LLVM::Value, index : LLVM::Value, name = "")
Source
global_string_pointer(string, name = "")
Source
icmp(op, lhs, rhs, name = "")
Source
inbounds_gep(type : LLVM::Type, value : LLVM::Value, index1 : LLVM::Value, index2 : LLVM::Value, name = "")
Source
inbounds_gep(value : LLVM::Value, indices : Array(LLVM::ValueRef), name = "")

DEPRECATED Pass the type of value as well (equal to value.type) in order to support LLVM 15+

Source
inbounds_gep(type : LLVM::Type, value : LLVM::Value, indices : Array(LLVM::ValueRef), name = "")
Source
inbounds_gep(value : LLVM::Value, index1 : LLVM::Value, index2 : LLVM::Value, name = "")

DEPRECATED Pass the type of value as well (equal to value.type) in order to support LLVM 15+

Source
inbounds_gep(value : LLVM::Value, index : LLVM::Value, name = "")

DEPRECATED Pass the type of value as well (equal to value.type) in order to support LLVM 15+

Source
inbounds_gep(type : LLVM::Type, value : LLVM::Value, index : LLVM::Value, name = "")
Source
insert_block
Source
int2ptr(value, type, name = "")
Source
invoke(fn : LLVM::Function, args : Array(LLVM::Value), a_then, a_catch, bundle : LLVM::OperandBundleDef = LLVM::OperandBundleDef.null, name = "")

DEPRECATED Pass the function type of fn as well (equal to fn.function_type) in order to support LLVM 15+

Source
invoke(type : LLVM::Type, fn : LLVM::Function, args : Array(LLVM::Value), a_then, a_catch, bundle : LLVM::OperandBundleDef, name = "")
Source
invoke(type : LLVM::Type, fn : LLVM::Function, args : Array(LLVM::Value), a_then, a_catch, *, name = "")
Source
landing_pad(type, personality, clauses, name = "")
Source
load(ptr : LLVM::Value, name = "")

DEPRECATED Pass the pointee of ptr as well (equal to ptr.type.element_type) in order to support LLVM 15+

Source
load(type : LLVM::Type, ptr : LLVM::Value, name = "")
Source
load_volatile(ptr : LLVM::Value, name = "")
Source
load_volatile(type : LLVM::Type, ptr : LLVM::Value, name = "")
Source
lshr(lhs, rhs, name = "")
Source
mul(lhs, rhs, name = "")
Source
neg(value, name = "")
Source
not(value, name = "")
Source
or(lhs, rhs, name = "")
Source
phi(type, incoming_blocks : Array(LLVM::BasicBlock), incoming_values : Array(LLVM::Value), name = "")
Source
phi(type, table : LLVM::PhiTable, name = "")
Source
position_at_end(block)
Source
ptr2int(value, type, name = "")
Source
ret(value)
Source
sdiv(lhs, rhs, name = "")
Source
select(cond, a_then, a_else, name = "")
Source
set_current_debug_location(line, column, scope, inlined_at = nil)
Source
set_current_debug_location(metadata, context : LLVM::Context)
Source
set_metadata(value, kind, node)
Source
sext(value, type, name = "")
Source
shl(lhs, rhs, name = "")
Source
si2fp(value, type, name = "")
Source
srem(lhs, rhs, name = "")
Source
store(value, ptr)
Source
store_volatile(value, ptr)
Source
sub(lhs, rhs, name = "")
Source
switch(value, otherwise, cases)
Source
to_unsafe
Source
trunc(value, type, name = "")
Source
udiv(lhs, rhs, name = "")
Source
ui2fp(value, type, name = "")
Source
unreachable
Source
urem(lhs, rhs, name = "")
Source
va_arg(list, type, name = "")
Source
xor(lhs, rhs, name = "")
Source
zext(value, type, name = "")
Source