Vexu
769d5a9c43
stage2: switch comptime execution
2020-10-30 15:58:13 +02:00
Vexu
7db17a2d89
stage2: redesign switchbr
...
Switchbr now only handles single item prongs.
Ranges and multi item prongs are checked with
condbrs after the switchbr.
2020-10-30 15:58:12 +02:00
Vexu
95467f3249
stage2: dump generated zir with --verbose-ir
2020-10-30 15:58:12 +02:00
Vexu
2020ca640e
stage2: switch emit zir
2020-10-30 15:58:12 +02:00
Vexu
a1d7f0053d
stage2: support imports inside packages
2020-10-30 15:58:11 +02:00
Vexu
8421b8a898
stage2: detect import outside file path
2020-10-30 15:58:11 +02:00
Andrew Kelley
245d98d32d
Merge pull request #6291 from pixelherodev/cbe_arithmetic
...
CBE: addition and subtraction
2020-10-17 01:00:38 -04:00
Jakub Konka
b5b25d38a8
Fix improper reuse of global symbols in MachO
...
Signed-off-by: Jakub Konka <kubkon@jakubkonka.com>
2020-10-07 20:34:40 +02:00
Noam Preil
7d69e1d84e
Rename variables in resolvePeerTypes for clarity
2020-10-07 02:36:04 -04:00
Noam Preil
de093879cc
Fix peer type resolution
2020-10-07 02:31:47 -04:00
Noam Preil
a2e1639d6d
Peer type resolution: comptime_int decay to other int
2020-10-06 15:09:57 -04:00
Noam Preil
9979719a9d
Stage2 peer type resolution: comptime_int + other_int_type
2020-10-06 15:09:56 -04:00
Vexu
6d3858dc8a
stage2: use directory handles for imports
2020-09-30 18:03:10 +03:00
Vexu
e246fe0f5b
stage2: detect changes in imported files
2020-09-30 17:00:55 +03:00
Vexu
7d910b024b
stage2: very basic imports
2020-09-30 16:59:08 +03:00
Vexu
20ae15917c
stage2: add import builtin stub
2020-09-30 16:56:45 +03:00
Andrew Kelley
412a2f966e
store stage1 flags in a trailing byte in the hash id symlink
...
When we get a cache hit for a stage1 compilation, we need to know about
some of the flags such as have_winmain or have_dllmain to know which
subsystem to infer during linking.
To do this, we append a hex-encoded byte into the intentionally-dangling
symlink which contains the cache hash digest rather than a filename. The
hex-encoded byte contains the flags we need to infer the subsystem
during linking.
2020-09-28 15:42:09 -07:00
Andrew Kelley
91a73a177b
stage2: building mingw-w64 and COFF LDD linking
...
still TODO is the task of creating import .lib files for DLLs on the fly
both for -lfoo and for e.g. `extern "kernel32"`
2020-09-28 00:06:06 -07:00
Andrew Kelley
528832bd3a
rename src-self-hosted/ to src/
2020-09-21 18:38:55 -07:00