Commit Graph

31 Commits

Author SHA1 Message Date
50a875ad21 Add compilation of global values 2025-07-28 23:32:47 +03:00
30257e1a2b Add global api support for llvm-lib 2025-07-28 23:20:13 +03:00
67a5fcd002 Basically revert everything, create macro-pass 2025-07-28 22:11:46 +03:00
80bdf4eba8 Merge branch 'main' into macros 2025-07-28 22:03:06 +03:00
bd8994bb37 Fix linking associated functions, fix other examples 2025-07-28 22:02:49 +03:00
2e153922f1 Start adding macros 2025-07-28 21:54:51 +03:00
89850d7b4f Change intrinsic alloca to malloc and actually use libc malloc 2025-07-28 21:22:15 +03:00
13be3e9c02 Namespace all functions, except those that are explicitly extern 2025-07-28 21:13:53 +03:00
beaba4e7de Mangle function names, except for user defined externs 2025-07-28 20:25:36 +03:00
e14efa2ea7 Update allocator to remove dynamic allocations from lists/structs 2025-07-28 19:52:49 +03:00
b643c13582 Use metadata instead of names for allocator identification 2025-07-28 19:22:03 +03:00
e412a2e1d7 Fix allocator 2025-07-28 19:04:37 +03:00
1b1a5934f5 Implement lexical scopes 2025-07-28 18:40:42 +03:00
61d3ea61ee Fix debug info 2025-07-28 18:20:00 +03:00
7ca8949e8c Start adding lexical scopes 2025-07-28 16:11:20 +03:00
a4e18af983 Add intrinsic bit-operators 2025-07-28 12:16:14 +03:00
49084ea0af Add AST -> MIR for bitwise-operations and or 2025-07-28 11:59:20 +03:00
dc360ef196 Implement importing of associated functions with types 2025-07-27 23:28:24 +03:00
a6a903a45d Allow borrows in associated function &self 2025-07-27 22:45:34 +03:00
676554b6a0 Improve deref parsing 2025-07-27 22:24:38 +03:00
f3471473a2 Test associated functions, cleanup codegen a bit 2025-07-27 20:04:54 +03:00
537167fe4f Add intrinsic associated functions 2025-07-27 19:55:28 +03:00
24f11a77d2 Add codegen for assoc functions 2025-07-27 18:32:17 +03:00
46668b7099 Fix a bunch of warnings 2025-07-27 18:11:18 +03:00
ab94bd7df0 Add AST -> MIR processing for associated functions 2025-07-27 03:08:34 +03:00
0196fb53ed Import binops while importing types as well 2025-07-26 13:18:55 +03:00
bf878c02a7 Fix struct field ordering mattering 2025-07-25 23:36:23 +03:00
307137d0d9 Fix a significant problem in how the typerefs aren't narrowed properly 2025-07-25 20:16:54 +03:00
6ee43d4012 Refactor stuff into codegen-module 2025-07-25 15:52:52 +03:00
8a32e66ba8 Refactor a bunch of stuff, produce compiling MIR 2025-07-04 21:30:40 +03:00
6d3d0fd03e Move reid to subproject 2025-06-24 17:17:15 +03:00