Commit Graph

2676 Commits

Author SHA1 Message Date
gingerBill
daccfca11d Merge pull request #1166 from krux02/minor-fix-2
fix compiler crash in ast_end_token
2021-09-19 12:03:11 +01:00
gingerBill
505113ee2d Merge branch 'master' of https://github.com/odin-lang/Odin 2021-09-18 15:11:15 +01:00
gingerBill
71f2289c20 Fix #1174 2021-09-18 15:10:29 +01:00
gingerBill
6855538729 Merge branch 'master' into llvm-12.0.1-windows 2021-09-18 12:55:13 +01:00
gingerBill
05ac2002e0 Force file copy on odin strip-semicolon 2021-09-18 12:52:43 +01:00
gingerBill
3713f11461 Refactor init_tokenizer_with_data to file memory mapping (Windows only currently) 2021-09-18 11:58:27 +01:00
Jeroen van Rijn
0d12432d3f VS: Fix compilation using VS 2022. 2021-09-16 13:24:20 +02:00
Arne Döring
9772e3a40b spaces to tabs 2021-09-14 12:14:41 +02:00
Arne Döring
442c25bf82 fix crash for ast_end_token 2021-09-14 11:44:10 +02:00
gingerBill
526a42c6ca Remove custom alignment limit 2021-09-13 16:44:01 +01:00
gingerBill
8de728e3dc LLVM Code Generator: Add explicitly padding between fields in LLVM struct types 2021-09-13 16:40:24 +01:00
gingerBill
be68bf9f26 Only store field_index remove field_src_index (for the time being) 2021-09-13 11:29:46 +01:00
gingerBill
15c309b0b8 Make permanent_allocator() thread local 2021-09-13 01:39:41 +01:00
gingerBill
042dbda47f Replace many uses of heap_allocator() with permanent_allocator() 2021-09-13 01:30:30 +01:00
gingerBill
2d7aea79b9 Make TypeStructl.tags a pointer from a slice (reduce memory usage) 2021-09-13 01:23:37 +01:00
gingerBill
31ed4f15a8 Remove debug code 2021-09-13 01:14:31 +01:00
gingerBill
71bffd46dc Reduce size of Type 2021-09-13 01:14:17 +01:00
gingerBill
f5bc95eb34 More culling 2021-09-13 01:07:24 +01:00
gingerBill
fb8fa5217d Begin minimize Type size by replacing Array with Slice etc 2021-09-13 00:58:39 +01:00
gingerBill
3195fac92b Fix slice indices endianness 2021-09-12 16:47:17 +01:00
gingerBill
15921d032c Correct endianness on slicing 2021-09-12 16:45:57 +01:00
gingerBill
9e018b642e Fix typo 2021-09-11 17:32:06 +01:00
gingerBill
7260d3cecb Add intrinsics.prefetch_* procedures 2021-09-11 17:30:44 +01:00
gingerBill
c51c002ffa Update Windows to LLVM 12.0.1 2021-09-11 17:06:29 +01:00
gingerBill
a5b4b73544 Add error message for minimum required LLVM 2021-09-11 16:53:39 +01:00
gingerBill
e3359a2639 Prepare for LLVM 12.0.1 compatibility 2021-09-11 16:53:18 +01:00
gingerBill
e65e0b5db2 Add -strict-style-init-only 2021-09-09 11:06:19 +01:00
gingerBill
123db3a23d Fix typo 2021-09-08 14:55:07 +01:00
gingerBill
d29a0c6680 Add a minimum alignment on *nix for the compiler in heap_allocator_proc 2021-09-08 14:53:42 +01:00
gingerBill
76419383a8 Add some minor sanity checks to the compiler's heap_allocator_proc on Darwin 2021-09-08 14:45:53 +01:00
gingerBill
e0ee59084e Add calling convention "system" which is an alias for "stdcall" on Windows and "cdecl" on other platforms 2021-09-08 13:22:03 +01:00
gingerBill
d4f5ef046d Remove goto in favour of multiple exits 2021-09-08 11:58:01 +01:00
gingerBill
83bd7c73c4 Fix #1120 code generation 2021-09-08 11:49:07 +01:00
gingerBill
72508dbce3 Fix code gen bug for slicing multi pointers 2021-09-08 11:14:26 +01:00
gingerBill
0434281f73 Strip semicolons; Make odin strip-semicolon replace .. with ..= if used as a binary operator 2021-09-06 20:15:59 +01:00
gingerBill
97a1147537 Correct fix to heap_allocator_proc in compiler 2021-09-06 19:34:44 +01:00
gingerBill
b63d49aafa Merge pull request #1112 from odin-lang/optional-semicolons
Optional Semicolons
2021-09-06 19:29:08 +01:00
gingerBill
f5615b204c Minor fix to heap_allocator_proc in common_memory.cpp 2021-09-06 16:50:13 +01:00
gingerBill
2800d4b8d0 Merge branch 'master' into optional-semicolons 2021-09-06 16:46:57 +01:00
gingerBill
31f779f1a4 intrinsics.alloca now returns [^]u8 2021-09-06 15:45:05 +01:00
gingerBill
a3a891a7f4 Add intrinsics.is_package_imported(<string>) 2021-09-06 15:41:09 +01:00
gingerBill
773a766b83 Strip semicolon if followed by a } or ) on the same line 2021-08-31 23:47:20 +01:00
gingerBill
169e717021 Remove debug message 2021-08-31 22:49:18 +01:00
gingerBill
cd09068e33 Correct parsing rules for #assert directives for semicolons 2021-08-31 22:45:08 +01:00
gingerBill
2db6fea665 Remove dead code and add debug messages 2021-08-31 22:31:43 +01:00
gingerBill
b176af2742 Add semicolon stripping command: odin strip-semicolon, has the same parameters as odin check 2021-08-31 22:20:36 +01:00
gingerBill
1fff96e088 Make -insert-semicolon the default now 2021-08-31 21:13:53 +01:00
Jeroen van Rijn
27fd702692 Merge pull request #1111 from Kelimion/libtommath
Slim down LibTomMath compile.
2021-08-29 16:01:42 +02:00
Jeroen van Rijn
5c7cb393dc Slim down LibTomMath compile. 2021-08-29 15:54:56 +02:00
gingerBill
54b37573c9 Add intrinsics.syscall (for Linux and Darwin only) 2021-08-29 13:17:06 +01:00