Commit Graph

51 Commits

Author SHA1 Message Date
Ginger Bill
b593332942 Minimal Dependency Map: Only build what is needed 2016-09-27 15:28:44 +01:00
Ginger Bill
a31bab5aae Unicode file loading; push_allocator & push_context 2016-09-23 14:59:58 +01:00
Ginger Bill
59b0cf61ef fmt improvement; Minor refactoring 2016-09-19 23:59:26 +01:00
Ginger Bill
3b266b194f enum_to_string fix; enum count, min_value, max_value 2016-09-19 22:26:07 +01:00
Ginger Bill
9561dc33ce enum_to_string 2016-09-19 21:33:52 +01:00
Ginger Bill
bbc9739f5c Core library and Better name mangling for files 2016-09-19 11:51:21 +01:00
Ginger Bill
828095afd1 Better name mangler for SSA generation
TODO: Define better name mangling rules and allow for explicit name overload
2016-09-18 21:44:22 +01:00
Ginger Bill
eb424bb315 #import and #load
#import - imported entities will not get exported
#load   - loaded entities will get exported
2016-09-16 19:46:48 +01:00
Ginger Bill
807256dea4 ssa - alloca all variables at the very start 2016-09-15 18:58:29 +01:00
Ginger Bill
79f575ae8e #import "" as namespace 2016-09-14 19:35:13 +01:00
Ginger Bill
817ae643c5 Remove len(), cap() and replace with selectors; fix defer in match 2016-09-13 14:04:05 +01:00
Ginger Bill
687e78d5dd Some global init cleanup; volatile types 2016-09-12 12:05:38 +01:00
Ginger Bill
7ba13a18a3 Basic variadic print procedure 2016-09-07 19:23:00 +01:00
Ginger Bill
2c4193a242 any type 2016-09-07 15:15:10 +01:00
Ginger Bill
61fcfd6f3d Begin Type_Info
Missing stuff in records, procedures, and tuples
2016-09-07 14:03:17 +01:00
Ginger Bill
455820fc84 Speed up SSA generation and clang compilation 2016-09-05 18:42:42 +01:00
Ginger Bill
ae72b3c5bd Tagged unions memory layout change; begin demo 002 2016-09-04 22:50:17 +01:00
Ginger Bill
c2e3c3801a Type match statement for tagged unions 2016-09-04 16:16:17 +01:00
Ginger Bill
cdd8eadda1 Fix type system in SSA generation
Removes a lot of dodgy things
Still needs to be tested a lot and better refactored
2016-09-03 22:07:16 +01:00
Ginger Bill
7f884ed251 Start implementing Tagged Unions 2016-09-03 18:18:45 +01:00
Ginger Bill
fa09d805e2 Match statements; Type System change (Type_Record for all sum and product types) 2016-09-01 20:38:44 +01:00
Ginger Bill
0eaf7bd830 Begin "Everything's a namespace" 2016-08-30 00:04:14 +01:00
Ginger Bill
6bd898e552 Untagged (unsafe) unions and unambiguous in|postfix notation. 2016-08-24 15:06:36 +01:00
gingerBill
81c592b5e9 Integer Enumerations 2016-08-22 15:43:13 +01:00
gingerBill
a98e93f03f File Library and TypeDecl syntax change 2016-08-22 11:52:49 +01:00
gingerBill
680274b6f1 Implicit Context and #thread_local 2016-08-19 23:35:09 +01:00
Ginger Bill
745237459a Initial Demo001 code for tour of language 2016-08-19 15:35:48 +01:00
gingerBill
ddb15e73c0 Remove print(ln) and fix swizzle 2016-08-19 09:54:01 +01:00
gingerBill
6f9d11b381 Remove scalar*vector; swizzle; broadcast 2016-08-17 18:36:37 +01:00
gingerBill
c4fe2ace05 Fix Scoping of proc type decls 2016-08-17 12:04:17 +01:00
gingerBill
511f3744f6 Fix automatic pointer deref for structures in SSA 2016-08-17 11:18:38 +01:00
gingerBill
e8530ca883 Win32 Demo: OpenGL Context 2016-08-16 20:08:40 +01:00
gingerBill
2d49a61563 defer statements 2016-08-16 18:53:02 +01:00
gingerBill
5da6b74567 Compile with odin.exe and no run.bat
This is win32 only and requires CreateProcessA
2016-08-16 12:33:11 +01:00
gingerBill
6f7f82d877 Merge branch 'master' of http://git.handmadedev.org/gingerbill/Odin
# Conflicts:
#	examples/main.ll
#	examples/main.odin
#	examples/win32.odin
#	src/codegen/print_llvm.cpp
2016-08-16 11:43:21 +01:00
gingerBill
0dd17fe843 Win32 Window Test 2016-08-16 10:56:44 +01:00
gingerBill
50fd9548b9 Win32 test 2016-08-15 21:22:44 +01:00
gingerBill
dcbb2fcfbd Full Unicode Support 2016-08-15 15:02:45 +01:00
gingerBill
3ed75b22a3 string comparisons 2016-08-15 13:46:01 +01:00
gingerBill
0f48a7d299 #foreign "custom_name"; <N x i1> bugs (see test.ll and test2.ll) 2016-08-14 22:19:39 +01:00
gingerBill
0edae8c848 Vector index works with booleans now. 2016-08-14 19:37:47 +01:00
gingerBill
ee00236412 expr as type; {N}bool is still causing problems 2016-08-14 12:22:31 +01:00
gingerBill
c10b46af9f Compound Literals - struct, array, slice, vector 2016-08-12 17:21:34 +01:00
gingerBill
84f2bcd885 Nested Procedures 2016-08-11 22:05:09 +01:00
gingerBill
19cc77dad3 Code generation for procedure literals 2016-08-11 21:53:44 +01:00
gingerBill
4c467b118d copy(...) 2016-08-10 20:07:24 +01:00
gingerBill
153c27c755 Tuple support in codegen 2016-08-10 11:53:17 +01:00
gingerBill
c930841f83 f16/f128,u|i128, basic vector support. 2016-08-10 10:00:57 +01:00
gingerBill
ba238c569a Strings galore! 2016-08-05 21:07:25 +01:00
gingerBill
4a303b5c3e Minor refactor and basic library 2016-08-05 15:17:23 +01:00