class LLVM::Builder

Defined in:

llvm/builder.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : self)
==(other : JSON::Any)
==(other : YAML::Any)
==(other) ==
, dup dup, hash(hasher) hash, inspect(io : IO) : Nil inspect, object_id : UInt64 object_id, pretty_print(pp) : Nil pretty_print, same?(other : Reference) : Bool
same?(other : Nil) same?
, to_s(io : IO) : Nil to_s

Constructor methods inherited from class Reference

new new

Instance methods inherited from class Object

! : Bool !, !=(other) !=, !~(other) !~, ==(other) ==, ===(other : JSON::Any)
===(other : YAML::Any)
===(other) ===
, =~(other) =~, as(type : Class) as, as?(type : Class) as?, class class, dup dup, hash(hasher)
hash hash
, in?(collection : Object) : Bool
in?(*values : Object) : Bool in?
, inspect(io : IO) : Nil
inspect : String inspect
, is_a?(type : Class) : Bool is_a?, itself itself, nil? : Bool nil?, not_nil! not_nil!, pretty_inspect(width = 79, newline = "\n", indent = 0) : String pretty_inspect, pretty_print(pp : PrettyPrint) : Nil pretty_print, responds_to?(name : Symbol) : Bool responds_to?, tap(&) tap, to_json(io : IO) : Nil
to_json : String to_json
, to_pretty_json(indent : String = " ") : String
to_pretty_json(io : IO, indent : String = " ") : Nil to_pretty_json
, to_s(io : IO) : Nil
to_s : String to_s
, to_yaml(io : IO) : Nil
to_yaml : String to_yaml
, try(&) try, unsafe_as(type : T.class) forall T unsafe_as

Class methods inherited from class Object

from_json(string_or_io, root : String)
from_json(string_or_io) from_json
, from_yaml(string_or_io : String | IO) from_yaml

Constructor Detail

def self.new(unwrap : LibLLVM::BuilderRef)Source

Instance Method Detail

def add(lhs, rhs, name = "")Source

def add_handler(catch_switch_ref, handler)Source

def alloca(type, name = "")Source

def and(lhs, rhs, name = "")Source

def ashr(lhs, rhs, name = "")Source

def atomicrmw(op, ptr, val, ordering, singlethread)Source

def bit_cast(value, type, name = "")Source

def br(block)Source

def build_catch_ret(pad, basic_block)Source

def build_operand_bundle_def(name, values : Array(LLVM::Value))Source

def call(func, args : Array(LLVM::Value), name : String = "", bundle : LLVM::OperandBundleDef = LLVM::OperandBundleDef.null)Source

def call(func, name : String = "")Source

def call(func, arg : LLVM::Value, name : String = "")Source

def catch_pad(parent_pad, args : Array(LLVM::Value), name = "")Source

def catch_switch(parent_pad, basic_block, num_handlers, name = "")Source

def cmpxchg(pointer, cmp, new, success_ordering, failure_ordering)Source

def cond(cond, then_block, else_block)Source

def current_debug_locationSource

def exact_sdiv(lhs, rhs, name = "")Source

def extract_value(value, index, name = "")Source

def fadd(lhs, rhs, name = "")Source

def fcmp(op, lhs, rhs, name = "")Source

def fdiv(lhs, rhs, name = "")Source

def fence(ordering, singlethread, name = "")Source

def fmul(lhs, rhs, name = "")Source

def fp2si(value, type, name = "")Source

def fp2ui(value, type, name = "")Source

def fpext(value, type, name = "")Source

def fptrunc(value, type, name = "")Source

def fsub(lhs, rhs, name = "")Source

def gep(value, indices : Array(LLVM::ValueRef), name = "")Source

def gep(value, index1 : LLVM::Value, index2 : LLVM::Value, name = "")Source

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

def global_string_pointer(string, name = "")Source

def icmp(op, lhs, rhs, name = "")Source

def inbounds_gep(value, indices : Array(LLVM::ValueRef), name = "")Source

def inbounds_gep(value, index1 : LLVM::Value, index2 : LLVM::Value, name = "")Source

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

def insert_blockSource

def int2ptr(value, type, name = "")Source

def invoke(fn : LLVM::Function, args : Array(LLVM::Value), a_then, a_catch, bundle : LLVM::OperandBundleDef = LLVM::OperandBundleDef.null, name = "")Source

def landing_pad(type, personality, clauses, name = "")Source

def load(ptr, name = "")Source

def load_volatile(ptr, name = "")Source

def lshr(lhs, rhs, name = "")Source

def mul(lhs, rhs, name = "")Source

def not(value, name = "")Source

def or(lhs, rhs, name = "")Source

def phi(type, incoming_blocks : Array(LLVM::BasicBlock), incoming_values : Array(LLVM::Value), name = "")Source

def phi(type, table : LLVM::PhiTable, name = "")Source

def position_at_end(block)Source

def ptr2int(value, type, name = "")Source

def ret(value)Source

def retSource

def sdiv(lhs, rhs, name = "")Source

def select(cond, a_then, a_else, name = "")Source

def set_current_debug_location(line, column, scope, inlined_at = nil)Source

def set_metadata(value, kind, node)Source

def sext(value, type, name = "")Source

def shl(lhs, rhs, name = "")Source

def si2fp(value, type, name = "")Source

def srem(lhs, rhs, name = "")Source

def store(value, ptr)Source

def store_volatile(value, ptr)Source

def sub(lhs, rhs, name = "")Source

def switch(value, otherwise, cases)Source

def to_unsafe : LibLLVM::BuilderRefSource

def trunc(value, type, name = "")Source

def udiv(lhs, rhs, name = "")Source

def ui2fp(value, type, name = "")Source

def unreachableSource

def urem(lhs, rhs, name = "")Source

def va_arg(list, type, name = "")Source

def xor(lhs, rhs, name = "")Source

def zext(value, type, name = "")Source

© 2012–2021 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.2.1/LLVM/Builder.html