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

Functions

bool is_struct_type (CodeGenContext *ctx, LLVMTypeRef type)
 
const char * get_struct_name_from_type (CodeGenContext *ctx, LLVMTypeRef type)
 
LLVMValueRef create_struct_zero_initializer (CodeGenContext *ctx, const char *struct_name)
 
LLVMValueRef create_struct_copy (CodeGenContext *ctx, LLVMValueRef src_struct, StructInfo *struct_info)
 
void print_struct_info (CodeGenContext *ctx, const char *struct_name)
 
void debug_struct_layout (CodeGenContext *ctx, const char *struct_name)
 
LLVMValueRef compare_structs_equal (CodeGenContext *ctx, LLVMValueRef struct1, LLVMValueRef struct2, StructInfo *struct_info)
 
LLVMValueRef initialize_struct_with_defaults (CodeGenContext *ctx, const char *struct_name)
 

Function Documentation

◆ compare_structs_equal()

LLVMValueRef compare_structs_equal ( CodeGenContext ctx,
LLVMValueRef  struct1,
LLVMValueRef  struct2,
StructInfo struct_info 
)

◆ create_struct_copy()

LLVMValueRef create_struct_copy ( CodeGenContext ctx,
LLVMValueRef  src_struct,
StructInfo struct_info 
)

◆ create_struct_zero_initializer()

LLVMValueRef create_struct_zero_initializer ( CodeGenContext ctx,
const char *  struct_name 
)

◆ debug_struct_layout()

void debug_struct_layout ( CodeGenContext ctx,
const char *  struct_name 
)

◆ get_struct_name_from_type()

const char * get_struct_name_from_type ( CodeGenContext ctx,
LLVMTypeRef  type 
)

◆ initialize_struct_with_defaults()

LLVMValueRef initialize_struct_with_defaults ( CodeGenContext ctx,
const char *  struct_name 
)

◆ is_struct_type()

bool is_struct_type ( CodeGenContext ctx,
LLVMTypeRef  type 
)

◆ print_struct_info()

void print_struct_info ( CodeGenContext ctx,
const char *  struct_name 
)