Skip to content

class Crystal::LLVMTyper
inherits Reference

Class methods

.new(program : Program, llvm_context : LLVM::Context)

View source

Methods

#align_of(type)

View source

#closure_context_type(vars, parent_llvm_type, self_type)

View source

#closure_type(type : ProcInstanceType)

View source

#copy_type(type : LLVM::Type)

Copy an existing LLVM type, possibly from another context, into this typer's context.

View source

#copy_types(types : Array(LLVM::Type))

Copy existing LLVM types, possibly from another context, into this typer's context.

View source

#landing_pad_type : LLVM::Type

View source

#llvm_c_return_type(type)

View source

#llvm_c_return_type(type : NilType)

View source

#llvm_c_return_type(type : StaticArrayInstanceType)

StaticArray can only be "returned" in lib externs, not in C functions, and there it must not be a pointer.

View source

#llvm_c_type(type : ProcInstanceType)

View source

#llvm_c_type(type : NilableProcType)

View source

#llvm_c_type(type : TupleInstanceType)

View source

#llvm_c_type(type)

View source

#llvm_embedded_c_type(type : ProcInstanceType, wants_size = false)

View source

#llvm_embedded_c_type(type, wants_size = false)

View source

#llvm_embedded_type(type, wants_size = false)

View source

#llvm_name(type, wants_size)

View source

#llvm_return_type(type)

View source

#llvm_return_type(type : NilType)

View source

#llvm_string_type(bytesize)

View source

#llvm_struct_type(type, wants_size = false)

View source

#llvm_type(type, wants_size = false)

View source

#nil_type

View source

#nil_value

View source

#offset_of(type, element_index)

View source

#pointer_size

View source

#proc_type

View source

#proc_type(type : ProcInstanceType)

View source

#size_of(type)

View source

#size_t

View source

#type_id_pointer

View source

#union_value_type(type : MixedUnionType)

View source