Commit Graph

6677 Commits

Author SHA1 Message Date
gingerBill
307604381a Merge pull request #7333 from corleypc/constmerge-fix
Reenables LLVMSetUnnamedAddress for global constants merging
2026-08-17 12:33:39 +02:00
Jeroen van Rijn
0b7b8ba4a2 Set console codepage to utf-8 (on Windows), and restore old one on exit
Avoid mojibake.
2026-08-16 16:16:35 +02:00
Jeroen van Rijn
889ad95c7e Merge pull request #7342 from kalsprite/alpha
quat/cmplx nan cmp & accessors
2026-08-16 12:31:55 +02:00
Jeroen van Rijn
7aa805e22a Merge pull request #7343 from kalsprite/rune_unsigned_mapping
intrinsics.type_integer_to_unsigned(rune) returns f16
2026-08-16 12:28:59 +02:00
Jeroen van Rijn
3eeda58634 Merge pull request #7344 from kalsprite/simd_builtin_diagnostics
simd: enforce the `#simd` construction rules and stop two crashes
2026-08-16 12:17:39 +02:00
Jeroen van Rijn
94528dde45 Merge branch 'master' into pr/7345 2026-08-16 11:19:48 +02:00
Jeroen van Rijn
78b9c31a10 Merge pull request #7346 from kalsprite/bit_set_subset_folding
fix `bit_set` subset/superset constant folding
2026-08-16 11:05:30 +02:00
kalsprite
f7b734c82b deinterleave -> shuffle 2026-08-16 00:24:09 -07:00
kalsprite
95c4004239 switch to shuffle intrinsic since #simd is pow2 2026-08-16 00:16:21 -07:00
kalsprite
d52aff5c4b impl riffle for llvm<=20 fallback on interleave 2026-08-15 23:53:54 -07:00
kalsprite
a7029ef7b6 bitset subset 2026-08-15 23:25:13 -07:00
kalsprite
885e12d21d and-not fold 2026-08-15 23:06:35 -07:00
kalsprite
5f0251fec2 5791,6748 2026-08-15 22:44:52 -07:00
kalsprite
e53fc6a879 simd [?] type fix; count recovery 2026-08-15 22:23:15 -07:00
kalsprite
69fb453e51 redecl type; pairwise guard 2026-08-15 22:02:06 -07:00
kalsprite
0243398b19 swizzle arg guard 2026-08-15 21:52:07 -07:00
kalsprite
4ceba928c7 fix swizzle and shuffle max size bypass 2026-08-15 21:28:43 -07:00
kalsprite
b2f2b653c5 add pow2 guard on interleave 2026-08-15 21:18:36 -07:00
kalsprite
e699d2185e simd diagnostics 2026-08-15 21:07:17 -07:00
kalsprite
ae742cb9f3 rune unsigned mapping 2026-08-15 20:53:03 -07:00
kalsprite
4cf4607c8b fix #5964 2026-08-15 20:41:22 -07:00
kalsprite
1658e2d841 fix typo on cmplx -> quat 2026-08-15 20:13:25 -07:00
kalsprite
617293c5f0 quat/cmplx nan cmp 2026-08-15 20:08:27 -07:00
Michael Tesař
b17c10162d Fix bit_set upper endpoint representability check 2026-08-16 00:30:42 +02:00
Jeroen van Rijn
5787cbc68b Fix backend support for #unroll on [dynamic]T 2026-08-15 21:34:58 +02:00
corley
de9d6d7dcc Reenables LLVMSetUnnamedAddress for global constants folding 2026-08-14 23:12:25 +03:00
FourteenBrush
02adbc11e3 Fix oob for zero arg #load_directory 2026-08-13 12:51:42 +02:00
kalsprite
939802e713 fix bitfield intrinsic 2026-08-12 19:23:41 -07:00
gingerBill
fa342bb540 Merge pull request #7292 from kalsprite/sysv_source_type
amd64/arm64: classify aggregates from the source type
2026-08-12 19:43:29 +02:00
Mihail Moskov
6a81351de3 fixes float to 128-bit int/uint conversion 2026-08-12 19:25:46 +03:00
Mihail Moskov
6dda0198f0 fixes f32 to 64-bit int/uint conversion 2026-08-12 16:02:49 +03:00
gingerBill
8632a240fd Merge pull request #7313 from kalsprite/matrix_type_hint
check_matrix_type_hint: require the element type and layout to match
2026-08-12 13:25:25 +02:00
gingerBill
6f5f02f63b Merge pull request #7312 from kalsprite/enum_array_negative_count
check enumerated array length
2026-08-12 13:23:24 +02:00
gingerBill
76f3f4b2a3 Merge pull request #7311 from kalsprite/enum_array_blank_index
hoist if stmt in enumerated_array
2026-08-12 13:23:11 +02:00
gingerBill
9be450331a Merge pull request #7310 from kalsprite/matrix_mul_limit
matrix: enforce the element limit on multiplication and on overflowing dimensions
2026-08-12 13:22:39 +02:00
gingerBill
ff30f74fcf Merge pull request #7308 from kalsprite/extract_lsbs_limit
simd_extract_lsbs/_msbs: reject a lane count that exceeds the bit_set limit
2026-08-12 13:21:59 +02:00
gingerBill
c629f923b3 Merge pull request #7307 from kalsprite/endian_partition
types: make the three endianness predicates partition
2026-08-12 13:21:37 +02:00
gingerBill
abd6ce0519 Merge pull request #7301 from kalsprite/endian_wording
correct the endianness guard messages
2026-08-12 13:21:05 +02:00
gingerBill
dcbd6b6a3d Merge pull request #7297 from kalsprite/constant_guards
intrinsics: fix guards combining two required conditions with &&
2026-08-12 13:20:51 +02:00
gingerBill
eb9c7d471a Merge pull request #7296 from kalsprite/comparable_unspecialized
type_is_comparable: false for an unspecialized polymorphic record
2026-08-12 13:20:28 +02:00
gingerBill
9cd3e68afc Merge pull request #7295 from kalsprite/const_truncation
bound constant arguments before range-checking them
2026-08-12 13:20:01 +02:00
gingerBill
98524caece Merge pull request #7294 from kalsprite/byte_swap_untyped
fix byte swap on untyped int-like untyped types
2026-08-12 13:09:29 +02:00
gingerBill
01cd94cb6c Merge pull request #7293 from kalsprite/bitfield_offset_not_found
bit_field: diagnose a missing field name in type_field_bit_offset / type_field_bit_size
2026-08-12 13:09:16 +02:00
gingerBill
d4d0436a09 Merge pull request #7314 from kalsprite/max_field_align
struct layout: apply #max_field_align
2026-08-12 11:30:35 +02:00
kalsprite
c61cf7d684 dont clear value on ok 2026-08-11 23:37:41 -07:00
kalsprite
586f87c0e1 apply max field align 2026-08-11 23:15:29 -07:00
kalsprite
f053a40359 check_matrix_type_hint: require the element type and layout to match 2026-08-11 23:07:07 -07:00
kalsprite
419050f82a fix four more guards using && where they need || 2026-08-11 22:52:33 -07:00
kalsprite
3f7d961bf6 check enumerated array length 2026-08-11 22:39:12 -07:00
kalsprite
0dbd55168f hoist if stmt 2026-08-11 22:25:44 -07:00