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

Functions

LLVMValueRef convert_value_to_type (CodeGenContext *ctx, LLVMValueRef value, LLVMTypeRef from_type, LLVMTypeRef to_type)
 
bool check_array_bounds_runtime (CodeGenContext *ctx, LLVMValueRef array_ptr, LLVMTypeRef array_type, LLVMValueRef index, const char *var_name)
 
LLVMValueRef codegen_multidim_array_access (CodeGenContext *ctx, AstNode *base_expr, AstNode **indices, size_t index_count)
 
void copy_array_elements (CodeGenContext *ctx, LLVMValueRef dest_array, LLVMTypeRef dest_type, LLVMValueRef src_array, LLVMTypeRef src_type)
 

Function Documentation

◆ check_array_bounds_runtime()

bool check_array_bounds_runtime ( CodeGenContext ctx,
LLVMValueRef  array_ptr,
LLVMTypeRef  array_type,
LLVMValueRef  index,
const char *  var_name 
)

◆ codegen_multidim_array_access()

LLVMValueRef codegen_multidim_array_access ( CodeGenContext ctx,
AstNode base_expr,
AstNode **  indices,
size_t  index_count 
)

◆ convert_value_to_type()

LLVMValueRef convert_value_to_type ( CodeGenContext ctx,
LLVMValueRef  value,
LLVMTypeRef  from_type,
LLVMTypeRef  to_type 
)

◆ copy_array_elements()

void copy_array_elements ( CodeGenContext ctx,
LLVMValueRef  dest_array,
LLVMTypeRef  dest_type,
LLVMValueRef  src_array,
LLVMTypeRef  src_type 
)