gingerBill
a463609e4c
If an entity is inserted into a scope already exists by the same name, it will not report as an error any more
2021-10-04 12:41:33 +01:00
gingerBill
647fee31f8
Correct offset_of_by_string
2021-10-03 12:34:01 +01:00
gingerBill
8af6b6fa18
Remove debug code
2021-10-03 12:32:51 +01:00
gingerBill
f48f06e7b7
Add offset_of_by_string
2021-10-03 12:32:04 +01:00
gingerBill
51b5a973e2
Allow constant string value for the field argument of offset_of
2021-10-03 12:24:54 +01:00
gingerBill
2bdae52fed
Add @(init) attribute for procedures, allowing for procedures to be called at startup
...
These procedures will be called after global variables have been initialized as normal
2021-10-03 11:53:32 +01:00
gingerBill
036fa5cb24
Correct ABI for windows with LLVM
2021-10-02 18:12:34 +01:00
gingerBill
81fe50d623
Add sizes to assert message
2021-10-02 17:48:09 +01:00
gingerBill
b9b9bd8612
Add message to assert; add sanity check for possible future behaviour
2021-10-02 17:44:24 +01:00
gingerBill
171a5d6476
Clean up struct_fields_index_by_increasing_offset
2021-10-02 17:43:48 +01:00
gingerBill
00671a59a0
Minor code cleanup for backend; add struct_fields_index_by_increasing_offset for future use
2021-10-02 17:22:56 +01:00
gingerBill
ebca0398a7
Remove need for alignment lb_struct_has_padding_prefix
2021-10-02 16:06:42 +01:00
gingerBill
444fedd8d4
Heavily improve the LLVM struct type generation to improve ABI
2021-10-02 15:45:46 +01:00
gingerBill
bd1e1c66f3
Merge pull request #1188 from krux02/minor-fix-3
...
fix #1187
2021-09-29 19:22:56 +01:00
gingerBill
f99bea12c7
Allow uintptr <-> [^]T
2021-09-29 16:36:05 +01:00
Jeroen van Rijn
6f04c61bdf
Fix -collection help typo.
2021-09-28 19:59:44 +02:00
gingerBill
6f872e04c8
Move redundant auto_cast error from -vet to -vet-extra
2021-09-28 12:24:51 +01:00
gingerBill
6fab93c4b3
Fix [^]u8 to cstring conversion
2021-09-25 21:11:54 +01:00
Jeroen van Rijn
f7bf55af4a
Merge pull request #1194 from Kelimion/define
...
Allow `-define:name=string`.
2021-09-25 09:56:51 -07:00
Jeroen van Rijn
2c055b0972
Allow -define:name=string.
...
Slightly rewrote `build_param_to_exact_value` parsing logic.
First, try to parse as a bool, then as an integer or float.
If both fail, treat the value as a string.
To force a string define for e.g. `true`, use `-define:name='true'`.
2021-09-25 18:11:30 +02:00
gingerBill
fa0d58f96e
Correct f64 -> u128/i128 generation
2021-09-25 15:38:56 +01:00
gingerBill
8c4197af38
Add #load_or(path_string, default_byte_slice)
2021-09-23 23:32:46 +01:00
gingerBill
374f98356c
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-09-23 23:25:26 +01:00
gingerBill
20529c6512
Minor simplification to #assert and #panic parsing
2021-09-23 23:25:13 +01:00
gingerBill
ea555c0ccd
Simplify directive parsing for expressions
2021-09-23 23:22:16 +01:00
Phil H
3ac13d2028
Correct levenshtein distance
2021-09-23 09:22:28 -07:00
Arne Döring
48f496f3b3
fix #1187
2021-09-22 03:03:01 +02:00
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