module Crystal::LLVMBuilderHelper

Direct including types

Defined in:

compiler/crystal/codegen/llvm_builder_helper.cr

Macro Summary

Instance Method Summary

Macro Detail

macro pointer_cast(value, type) #

type must be a pointer type; on LLVM 15.0 or above type is not evaluated at all and value is returned unchanged, because all opaque pointer types (in the same context) are identical


[View source]

Instance Method Detail

def and(*args, **options) #

[View source]
def and(*args, **options, &) #

[View source]
def bit_cast(*args, **options) #

[View source]
def bit_cast(*args, **options, &) #

[View source]
def br(*args, **options) #

[View source]
def br(*args, **options, &) #

[View source]
def call(func : LLVMTypedFunction, name : String = "") #

[View source]
def call(func : LLVMTypedFunction, arg : LLVM::Value, name : String = "") #

[View source]
def call(func : LLVMTypedFunction, args : Array(LLVM::Value), name : String = "") #

[View source]
def cast_to(value : LLVM::ValueMethods, type : Type) #

[View source]
def cast_to_pointer(value : LLVM::ValueMethods, type : Type) #

[View source]
def cast_to_void_pointer(pointer : LLVM::ValueMethods) #

[View source]
def cond(*args, **options) #

[View source]
def cond(*args, **options, &) #

[View source]
def equal?(value1, value2) #

[View source]
def extend_float(to_type, value) #

[View source]
def extend_int(from_type, to_type, value) #

[View source]
def extract_value(*args, **options) #

[View source]
def extract_value(*args, **options, &) #

[View source]
def float(value, type) #

[View source]
def float32(value) #

[View source]
def float64(value) #

[View source]
def float_to_int(from_type, to_type, value) #

[View source]
def gep(ptr : LLVM::Value, index0 : Int32, index1 : Int32, name = "") #

[View source]
def gep(type : LLVM::Type, ptr : LLVM::Value, index0 : Int32, index1 : Int32, name = "") #

[View source]
def gep(type : LLVM::Type, ptr : LLVM::Value, index0 : LLVM::Value, index1 : LLVM::Value, name = "") #

[View source]
def gep(ptr : LLVM::Value, index0 : Int32, name = "") #

[View source]
def gep(ptr : LLVM::Value, index0 : LLVM::Value, index1 : LLVM::Value, name = "") #

[View source]
def gep(ptr : LLVM::Value, index0 : LLVM::Value, name = "") #

[View source]
def gep(type : LLVM::Type, ptr : LLVM::Value, index0 : Int32, name = "") #

[View source]
def gep(type : LLVM::Type, ptr : LLVM::Value, index0 : LLVM::Value, name = "") #

[View source]
def insert_block(*args, **options) #

[View source]
def insert_block(*args, **options, &) #

[View source]
def int(n, type) #

[View source]
def int(n) #

[View source]
def int1(n) #

[View source]
def int128(n) #

[View source]
def int16(n) #

[View source]
def int2ptr(*args, **options) #

[View source]
def int2ptr(*args, **options, &) #

[View source]
def int32(n) #

[View source]
def int64(n) #

[View source]
def int8(n) #

[View source]
def int_to_float(from_type, to_type, value) #

[View source]
def invoke(func : LLVMTypedFunction, args : Array(LLVM::Value), a_then, a_catch, name : String = "") #

[View source]
def llvm_alignment(type) #

[View source]
def llvm_arg_type(*args, **options) #

[View source]
def llvm_arg_type(*args, **options, &) #

[View source]
def llvm_c_return_type(*args, **options) #

[View source]
def llvm_c_return_type(*args, **options, &) #

[View source]
def llvm_c_type(*args, **options) #

[View source]
def llvm_c_type(*args, **options, &) #

[View source]
def llvm_closure_type(type) #

[View source]
def llvm_embedded_c_type(*args, **options) #

[View source]
def llvm_embedded_c_type(*args, **options, &) #

[View source]
def llvm_embedded_type(*args, **options) #

[View source]
def llvm_embedded_type(*args, **options, &) #

[View source]
def llvm_false #

[View source]
def llvm_intrinsic_return_type(*args, **options) #

[View source]
def llvm_intrinsic_return_type(*args, **options, &) #

[View source]
def llvm_nil #

[View source]
def llvm_proc_type(type) #

[View source]
def llvm_return_type(*args, **options) #

[View source]
def llvm_return_type(*args, **options, &) #

[View source]
def llvm_size(type) #

[View source]
def llvm_struct_alignment(type) #

[View source]
def llvm_struct_size(type) #

[View source]
def llvm_struct_type(*args, **options) #

[View source]
def llvm_struct_type(*args, **options, &) #

[View source]
def llvm_true #

[View source]
def llvm_type(*args, **options) #

[View source]
def llvm_type(*args, **options, &) #

[View source]
def load(*args, **options) #

[View source]
def load(*args, **options, &) #

[View source]
def load_volatile(*args, **options) #

[View source]
def load_volatile(*args, **options, &) #

[View source]
def not(*args, **options) #

[View source]
def not(*args, **options, &) #

[View source]
def not_equal?(value1, value2) #

[View source]
def not_null_pointer?(value) #

[View source]
def null_pointer?(value) #

[View source]
def or(*args, **options) #

[View source]
def or(*args, **options, &) #

[View source]
def phi(*args, **options) #

[View source]
def phi(*args, **options, &) #

[View source]
def position_at_end(*args, **options) #

[View source]
def position_at_end(*args, **options, &) #

[View source]
def ptr2int(*args, **options) #

[View source]
def ptr2int(*args, **options, &) #

[View source]
def ret(value : Nil) #

[View source]
def ret(value) #

[View source]
def ret #

[View source]
def size_t(value : LLVM::Value) #

[View source]
def size_t(n) #

[View source]
def size_t #

[View source]
def store(*args, **options) #

[View source]
def store(*args, **options, &) #

[View source]
def store_volatile(*args, **options) #

[View source]
def store_volatile(*args, **options, &) #

[View source]
def switch(*args, **options) #

[View source]
def switch(*args, **options, &) #

[View source]
def trunc(*args, **options) #

[View source]
def trunc(*args, **options, &) #

[View source]
def trunc_float(to_type, value) #

[View source]