Commit Graph

6150 Commits

Author SHA1 Message Date
gingerBill
fa6109ca1e Properly dispose of LLVMTargetDataRef 2026-03-15 21:35:26 +00:00
gingerBill
38d7f45e64 Fix race condition with code_gen_module 2026-03-15 21:35:02 +00:00
gingerBill
2de214418c Fix LTO with debug info by passing -g 2026-03-15 21:29:54 +00:00
gingerBill
dc72e8210f Support proc(q: $Q) -> type_of(Q{}.data[0]) in return types 2026-03-15 21:28:58 +00:00
gingerBill
eecb67cb89 Implement fused nested slice chain optimizations src[a:b][c:d][e:f]... 2026-03-15 21:17:05 +00:00
gingerBill
6b2853d9f1 Improve matrix * vector code gen 2026-03-15 21:03:31 +00:00
gingerBill
12b06887a3 Remove dead code 2026-03-15 20:36:02 +00:00
gingerBill
f8f96905ae Fix typos 2026-03-15 20:27:14 +00:00
gingerBill
a56c3da149 Support select fast path for or_else 2026-03-15 20:02:48 +00:00
gingerBill
f70bceec84 Add optimization for improving side-effect-free use of a select for ternary if. 2026-03-15 19:58:57 +00:00
gingerBill
bb2e42faa6 More uses of SSA aggregation values 2026-03-15 19:49:26 +00:00
gingerBill
0dbda03890 Simplify slice creation as LLVM values 2026-03-15 19:40:57 +00:00
gingerBill
55b3ea7c2d Allow @(deprecated=<string>) on types 2026-03-15 18:58:48 +00:00
gingerBill
6fc80d9562 Correct write_type_to_canonical_string for "untyped" types 2026-03-15 18:33:20 +00:00
gingerBill
4b95e8a040 Add generic count of arrays to to doc-format 2026-03-15 18:18:02 +00:00
gingerBill
c4ae436ba6 Add This is a compiler error. Please report this. to all assertions. 2026-03-15 17:39:37 +00:00
gingerBill
70dd93db8f Correct case nil: handling for unions 2026-03-15 17:24:38 +00:00
gingerBill
c51391f8cb Fix #5129 2026-03-15 17:15:16 +00:00
gingerBill
0314c91a64 Add error message for foo := Foo{&foo} where the type of foo is not determined yet 2026-03-15 16:16:46 +00:00
gingerBill
c23d2793df Fix lb_convert_struct_index for FCD arrays 2026-03-15 15:45:29 +00:00
gingerBill
a0685f0511 Add intrinsics.likely and intrinsics.unlikely 2026-03-15 15:39:52 +00:00
gingerBill
2f8da5ec67 Add fixed capacity dynamic array to the doc-format 2026-03-15 11:55:04 +00:00
gingerBill
c6772dfd06 Merge branch 'master' into bill/fixed-capacity-dynamic-array 2026-03-15 11:41:01 +00:00
gingerBill
117e3a7b5a Merge branch 'master' of https://github.com/odin-lang/Odin 2026-03-15 10:34:01 +00:00
gingerBill
ca73cd395f Fix #6412 2026-03-15 10:33:52 +00:00
gingerBill
e40fdb8a31 Merge pull request #6372 from laytan/more-accurate-native-features
More accurate native features
2026-03-14 17:50:35 +00:00
gingerBill
0e6ea3884d General improves 2026-03-14 16:26:42 +00:00
Laytan Laats
f56ec37d1b fix type info of u16 could not be found 2026-03-13 20:43:03 +01:00
Laytan
af8853473a query host features instead of only host cpu for more accurate -microarch:native 2026-03-13 20:15:33 +01:00
Jeroen van Rijn
27667ce36b iff -> if and only if (⟺) 2026-03-13 11:54:15 +01:00
gingerBill
8e23c58620 Add intrinsics type_fixed_capacity_dynamic_array_len_offset and type_is_fixed_capacity_dynamic_array 2026-03-12 17:39:44 +00:00
Fredrik Vaeng Røtnes
b4405d01f8 Fix typo in error message for using statement
Change "It you do require..." to "If you do require..."
2026-03-12 16:37:05 +01:00
gingerBill
bc636e4b36 raddbg debug view for fixed capacity dynamic arrays 2026-03-12 12:56:00 +00:00
gingerBill
a6160770ff Support compound literals for fixed capacity dynamic arrays 2026-03-12 10:03:58 +00:00
gingerBill
8ff07d29be Fix parser position for fixed capacity dynamic arrays 2026-03-12 09:42:46 +00:00
Jeroen van Rijn
7a8b6d189e Merge pull request #6404 from botero-dev/android-platforms
Add support for other Android architectures
2026-03-11 22:34:25 +01:00
Andrés Botero
9df092759e Add support for other Android architectures 2026-03-11 15:37:37 -05:00
gingerBill
f1dbe9c242 [dynamic; N]T proof of concept: fixed capacity dynamic array (akin to small_array.Small_Array(N, T)) 2026-03-11 16:46:33 +00:00
gingerBill
b7bb7a1dc4 Use scope_reserve call directly 2026-03-11 14:22:36 +00:00
bymehul
763c8d3a42 Fix generic cycle deadlock in struct layout 2026-03-11 03:04:26 +05:30
bymehul
c9e55d3add fix: handle full-width bit_field literal masks 2026-03-10 23:21:19 +05:30
Krzesimir Nowak
7320f10de6 Fix tokenizer init 2026-03-08 12:09:12 +01:00
Jeroen van Rijn
6434bf4b65 Limit maximum exponent in parsing of float/integer literals 2026-03-07 12:38:04 +01:00
Franz Hoeltermann
b351b58ddc Fix #6270 2026-03-03 17:22:31 +01:00
Jeroen van Rijn
b80ffe6ad7 Merge pull request #6363 from odin-lang/bill/bit_set_rtti
Update `Type_Info_Bit_Set`
2026-03-03 13:48:37 +01:00
gingerBill
a5e1eb56ab Add explicit_underlying: bool RTTI field for bit_set; add runtime.type_info_underlying 2026-03-03 12:26:42 +00:00
Krzesimir Nowak
1f00da471c Make sure to assign proper comment as package docs
So far, the first comment found was marked as package docs, which
meant that for the following code, the TODO comment would be assigned
to the package declaration instead of the comment directly preceding
the package declaration.

    // TODO: drop after finished with refactoring
    #+ feature using-stmt
    // Package foo implements this and that.
    package foo
2026-03-02 21:26:04 +01:00
Krzesimir Nowak
b8f2daa5b2 Kill deprecated file tags
We had the recommended form of file tags for long enough. Also there
were some issues with the deprecated file tags - they were ignored if
the appeared after recommended file tags, and could possibly show up
in package docs.
2026-03-02 21:26:04 +01:00
Krzesimir Nowak
4ab536a85a Drop pointless code
Modifies a local variable after it was stored in an out parameter, so
this modification has no effect.
2026-03-02 21:24:59 +01:00
Jeroen van Rijn
a4ee06ca75 Merge pull request #6355 from louisnovy/fix-bit_set-parapoly-specialization
Fix bit_set parapoly specialization #6240
2026-03-02 12:59:48 +01:00