Luma 0.1.0
A low-level compiled alternative to C, C++, and more!
Loading...
Searching...
No Matches
Functions
type_cache.c File Reference
#include "../llvm.h"
Include dependency graph for type_cache.c:

Functions

void init_type_cache (CodeGenContext *ctx)
 
LLVMTypeRef get_int_type (CodeGenContext *ctx, unsigned bits)
 
LLVMTypeRef get_float_type (CodeGenContext *ctx, bool is_double)
 
LLVMValueRef get_const_int (CodeGenContext *ctx, unsigned bits, uint64_t value)
 
bool is_int_type (LLVMTypeRef type)
 
bool is_float_type (LLVMTypeRef type)
 
bool pointer_type (LLVMTypeRef type)
 
bool types_are_equal (LLVMTypeRef a, LLVMTypeRef b)
 
LLVMValueRef get_default_value (LLVMTypeRef type)
 
bool needs_conversion (LLVMTypeRef from, LLVMTypeRef to)
 

Function Documentation

◆ get_const_int()

LLVMValueRef get_const_int ( CodeGenContext ctx,
unsigned  bits,
uint64_t  value 
)

◆ get_default_value()

LLVMValueRef get_default_value ( LLVMTypeRef  type)

◆ get_float_type()

LLVMTypeRef get_float_type ( CodeGenContext ctx,
bool  is_double 
)

◆ get_int_type()

LLVMTypeRef get_int_type ( CodeGenContext ctx,
unsigned  bits 
)

◆ init_type_cache()

void init_type_cache ( CodeGenContext ctx)

◆ is_float_type()

bool is_float_type ( LLVMTypeRef  type)

◆ is_int_type()

bool is_int_type ( LLVMTypeRef  type)

◆ needs_conversion()

bool needs_conversion ( LLVMTypeRef  from,
LLVMTypeRef  to 
)

◆ pointer_type()

bool pointer_type ( LLVMTypeRef  type)

◆ types_are_equal()

bool types_are_equal ( LLVMTypeRef  a,
LLVMTypeRef  b 
)