Veikka Tuominen
|
ee9fc54cd0
|
TypedValue: fix handling of tuples represented as empty_struct_value
|
2022-12-08 22:21:49 +02:00 |
|
Veikka Tuominen
|
dff32a2cd7
|
Sema: resolve lazy values in analyzeMinMax
Closes #13797
|
2022-12-07 14:48:24 +02:00 |
|
Andrew Kelley
|
1310ef7577
|
disable failing behavior tests with -ofmt=c -target x86_64-windows
and enable CI checks for the C backend on Windows.
|
2022-12-07 04:01:04 -05:00 |
|
Andrew Kelley
|
c8aba15c22
|
remove references to stage1 in behavior tests
Good riddance.
|
2022-12-06 19:06:48 -07:00 |
|
Andrew Kelley
|
b7b905d227
|
add behavior test for while(true) not needing else unreachable
closes #707
|
2022-12-06 17:57:27 -07:00 |
|
Andrew Kelley
|
518392d6fe
|
disable CBE behavior tests that are not passing in release modes
|
2022-12-04 15:57:40 -07:00 |
|
Jacob Young
|
e3b8658e65
|
cbe: add forward declarations for optionals and error unions
Arrays will have to wait for type rewrite.
|
2022-12-03 21:58:18 -05:00 |
|
Jacob Young
|
6d1292552e
|
cbe: implement function alignment
|
2022-12-03 08:40:08 -05:00 |
|
Jacob Young
|
ec3116f573
|
cbe: fix zero-bit struct field pointer
|
2022-12-03 08:40:08 -05:00 |
|
Jacob Young
|
7fb6eb3d14
|
cbe: implement multiple exports of a symbols
|
2022-12-03 08:21:03 -05:00 |
|
Jacob Young
|
81c271cc62
|
cbe: don't emit extern decls that are already exported
|
2022-12-03 08:21:03 -05:00 |
|
Andrew Kelley
|
610d604f5b
|
Merge pull request #13748 from jacobly0/c-unaligned
cbe: use memcpy for underaligned loads and stores
|
2022-12-03 02:18:07 -05:00 |
|
Jacob Young
|
e1216077f0
|
cbe: add support for constraint modifiers specified after a colon
This translates `%[name:mod]` to `%mod[name]` for C.
|
2022-12-02 22:21:24 -05:00 |
|
Jacob Young
|
fdedd62365
|
cbe: use memcpy for underaligned loads and stores
|
2022-12-02 22:21:24 -05:00 |
|
Veikka Tuominen
|
0e38cc16d5
|
Sema: fix comparisons between lazy and runtime values
Closes #12498
|
2022-12-03 00:09:23 +02:00 |
|
Veikka Tuominen
|
7f9e841f74
|
Sema: do not forcibly canonicalize unresolved pointer element type
Closes #13308
|
2022-12-03 00:09:23 +02:00 |
|
Andrew Kelley
|
4071b22454
|
Merge pull request #13715 from Vexu/cbe
cbe bug fixes and improvements
|
2022-12-01 17:38:11 -05:00 |
|
Veikka Tuominen
|
6ded2d2adb
|
cbe: disable failing behavior test on aarch64
|
2022-12-01 12:18:10 +02:00 |
|
Veikka Tuominen
|
d0edaabf9d
|
Value: fix elemValueAdvanced for optional payloads
Closes #13707
|
2022-12-01 11:49:06 +02:00 |
|
Luuk de Gram
|
090deae41d
|
wasm: enable behavior tests for packed structs
|
2022-11-30 21:01:09 +01:00 |
|
Veikka Tuominen
|
11ec7109c3
|
cbe: do not memcpy identical integer types when bitcasting
|
2022-11-30 17:11:06 +02:00 |
|
Veikka Tuominen
|
15cc83e27a
|
cbe: reduce amount of temporary locals
|
2022-11-30 17:11:06 +02:00 |
|
Veikka Tuominen
|
f4afeb3ffd
|
AstGen: fix incorrect handling of source cursor with shift builtins
Closes #13714
|
2022-11-30 17:11:06 +02:00 |
|
Veikka Tuominen
|
2dcac348e5
|
cbe: implement packed unions
|
2022-11-30 15:14:33 +02:00 |
|
Veikka Tuominen
|
1a1a5702ab
|
cbe: correctly handle pointers to zero bit error union payloads
|
2022-11-30 15:14:33 +02:00 |
|
Veikka Tuominen
|
4def9c4a9b
|
cbe: operand of address of operator must be an lvalue
|
2022-11-30 15:14:33 +02:00 |
|
Veikka Tuominen
|
6310186d52
|
cbe: cast pointer switch target to int
|
2022-11-30 15:14:33 +02:00 |
|
Veikka Tuominen
|
8af5648015
|
Sema: make inferred allocs always mutable
Const allocs don't make any sense, make_ptr_const handles making
the pointers not mutable.
|
2022-11-30 15:14:33 +02:00 |
|
Veikka Tuominen
|
63ae7899ae
|
cbe: ensure test and tagName function names are unique
|
2022-11-30 15:14:33 +02:00 |
|
Andrew Kelley
|
deda6b5146
|
LLVM: fix canElideLoad behavior with loops
closes #13546
|
2022-11-30 00:20:49 -05:00 |
|
Veikka Tuominen
|
6f5a438946
|
AstGen: unstack block scope when creating opaque type
Closes #13697
|
2022-11-29 21:44:08 +02:00 |
|
Veikka Tuominen
|
6f9c7e33b9
|
llvm: implement union_init for packed unions
Closes #13664
|
2022-11-29 15:47:02 +02:00 |
|
Jakub Konka
|
870872dd63
|
aarch64-windows: skip failing floatop behavior test
|
2022-11-28 18:10:51 -05:00 |
|
Jakub Konka
|
07bf4de6a9
|
aarch64-windows: skip failing align behavior test
|
2022-11-28 18:10:51 -05:00 |
|
Veikka Tuominen
|
304e828088
|
Merge pull request #13637 from Vexu/stage2-fixes
Stage2 bug fixes
|
2022-11-26 22:03:49 +02:00 |
|
Veikka Tuominen
|
71937f75d8
|
Sema: correctly detect union target in zirSwitchBlock
Closes #13655
|
2022-11-26 18:05:27 +02:00 |
|
Veikka Tuominen
|
72fa8d4880
|
Sema: fix overflow arithmetic with runtime vectors
It should return a a vector of bools for compatibility with scalar
operands and stage1 until #10248 can be implemented.
Closes #13201
|
2022-11-26 18:05:27 +02:00 |
|
Andrew Kelley
|
30eb2a1753
|
Merge pull request #13627 from Vexu/tuple-decls
Implement tuple type declarations
|
2022-11-25 18:06:09 -05:00 |
|
Veikka Tuominen
|
8eea73fb92
|
add tests for tuple declarations
|
2022-11-23 22:16:31 +02:00 |
|
Andrew Kelley
|
4ec27a4e25
|
C backend: implement vector reduce and overflow intrinsics
|
2022-11-22 23:33:58 -07:00 |
|
Veikka Tuominen
|
98b3734b67
|
Sema: prioritize Value.variable over OPV when resolving const value
Closes #12275
|
2022-11-20 20:25:12 +02:00 |
|
Veikka Tuominen
|
510b891d27
|
Sema: handle opt_payload in beginComptimePtrLoad
|
2022-11-20 20:25:11 +02:00 |
|
Veikka Tuominen
|
0616d2966a
|
Sema: allow coercing typed undefined to int
Closes #13556
|
2022-11-20 20:25:11 +02:00 |
|
Andrew Kelley
|
0697883d01
|
extract C backend behavior tests with vectors
No functional change. Separates various float operations behavior tests
from the ones that test vectors.
|
2022-11-19 01:29:51 -05:00 |
|
kkHAIKE
|
ea590ece4b
|
Sema: optimize compare comptime float with int
|
2022-11-18 22:06:49 +02:00 |
|
Stevie Hryciw
|
04f3067a79
|
run zig fmt on everything checked by CI
|
2022-11-18 19:22:42 +00:00 |
|
Veikka Tuominen
|
28cbe5e92a
|
Sema+llvm: improve handling of namespace-like unions
Closes #13557
|
2022-11-16 01:13:35 +02:00 |
|
Veikka Tuominen
|
fe6249348f
|
Sema: ensure comptime reference to function points to original decl
This prevents sema from creating new decls for the functions and
passing them to the backends as non-function decls.
Closes #12501
|
2022-11-16 01:12:54 +02:00 |
|
Veikka Tuominen
|
2cfa7165e7
|
Sema: do not re-evaluate type of non-generic inline call parameters
Closes #13491
|
2022-11-16 01:12:27 +02:00 |
|
Veikka Tuominen
|
87cf2783eb
|
llvm: check that tuple fields have runtime bits
Just checking that they aren't comptime isn't enough for `@Type` constructed tuples.
Closes #13531
|
2022-11-12 15:41:29 +02:00 |
|