0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/src
Andrew Kelley aecebf38ac stage2: progress towards ability to compile compiler-rt
* prepare compiler-rt to support being compiled by stage2
   - put in a few minor workarounds that will be removed later, such as
     using `builtin.stage2_arch` rather than `builtin.cpu.arch`.
   - only try to export a few symbols for now - we'll move more symbols
     over to the "working in stage2" section as they become functional
     and gain test coverage.
   - use `inline fn` at function declarations rather than `@call` with an
     always_inline modifier at the callsites, to avoid depending on the
     anonymous array literal syntax language feature (for now).
 * AIR: replace floatcast instruction with fptrunc and fpext for
   shortening and widening floating point values, respectively.
 * Introduce a new ZIR instruction, `export_value`, which implements
   `@export` for the case when the thing to be exported is a local
   comptime value that points to a function.
   - AstGen: fix `@export` not properly reporting ambiguous decl
     references.
 * Sema: handle ExportOptions linkage. The value is now available to all
   backends.
   - Implement setting global linkage as appropriate in the LLVM
     backend. I did not yet inspect the LLVM IR, so this still needs to
     be audited. There is already a pending task to make sure the alias
     stuff is working as intended, and this is related.
   - Sema almost handles section, just a tiny bit more code is needed in
     `resolveExportOptions`.
 * Sema: implement float widening and shortening for both `@floatCast`
   and float coercion.
   - Implement the LLVM backend code for this as well.
History 2021-09-21 23:21:07 -07:00
..
codegen stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
link stage2: free Sema's arena after generating machine code 2021-09-21 15:23:29 -07:00
stage1 stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
translate_c Address spaces: AstGen 2021-09-20 02:29:03 +02:00
Air.zig stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
AstGen.zig stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
BuiltinFn.zig saturating arithmetic builtins: add, sub, mul, shl (#9619) 2021-09-01 14:17:45 -04:00
Cache.zig Update all ensureCapacity calls to the relevant non-deprecated version 2021-09-19 13:52:56 +02:00
clang.zig translate-c: better codegen for pointer index by int literal 2021-08-03 08:38:15 +03:00
clang_options.zig rename src-self-hosted/ to src/ 2020-09-21 18:38:55 -07:00
clang_options_data.zig zig cc: support -S and -emit-llvm CLI parameters 2021-09-16 16:39:04 -07:00
codegen.zig stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
Compilation.zig stage2: free Sema's arena after generating machine code 2021-09-21 15:23:29 -07:00
config.zig.in add ast-check flag to zig fmt, fix found bugs 2021-06-14 00:16:40 +03:00
DepTokenizer.zig std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
empty.zig fix wrong entrypoint, undefined package, and wrong build option 2020-12-07 17:27:09 -07:00
glibc.zig Update all usages of mem.split/mem.tokenize for generic version 2021-08-06 02:01:47 -07:00
introspect.zig zig build: use ZIG_GLOBAL_CACHE_DIR 2021-03-25 22:05:21 -04:00
libc_installation.zig Fix libc file to check against compilation target instead of native (#9670) 2021-09-07 15:11:28 -04:00
libcxx.zig Update all ensureCapacity calls to the relevant non-deprecated version 2021-09-19 13:52:56 +02:00
libtsan.zig Update all ensureCapacity calls to the relevant non-deprecated version 2021-09-19 13:52:56 +02:00
libunwind.zig libunwind: fix unwinding through libunwind stack frames 2021-08-31 21:50:16 -04:00
link.zig stage2: free Sema's arena after generating machine code 2021-09-21 15:23:29 -07:00
Liveness.zig stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
main.zig stage2: extract ZIR printing code into print_zir.zig 2021-09-20 14:45:40 -07:00
mingw.zig Update all ensureCapacity calls to the relevant non-deprecated version 2021-09-19 13:52:56 +02:00
Module.zig stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
musl.zig Update all ensureCapacity calls to the relevant non-deprecated version 2021-09-19 13:52:56 +02:00
Package.zig Update all ensureCapacity calls to the relevant non-deprecated version 2021-09-19 13:52:56 +02:00
print_air.zig stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
print_env.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
print_targets.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
print_zir.zig stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
RangeSet.zig stage2: fix hashing and comparison design flaw with Value 2021-07-30 16:17:59 -07:00
register_manager.zig Get register_manager.zig tests to compile - use value '1' as mock Air.Inst.Index 2021-07-20 12:19:16 -07:00
Sema.zig stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
stage1.zig stage2: improvements towards zig test 2021-07-23 22:42:31 -07:00
target.zig Address Spaces: Yeet address space on function prototypes 2021-09-20 02:29:04 +02:00
test.zig Update all usages of mem.split/mem.tokenize for generic version 2021-08-06 02:01:47 -07:00
ThreadPool.zig std.Thread: fixup ThreadPool.zig 2021-06-30 21:49:00 -05:00
tracy.zig fix code broken from previous commit 2021-06-21 17:03:03 -07:00
translate_c.zig Update all ensureCapacity calls to the relevant non-deprecated version 2021-09-19 13:52:56 +02:00
type.zig stage2: free Sema's arena after generating machine code 2021-09-21 15:23:29 -07:00
TypedValue.zig stage2: comptime function with the same args is memoized 2021-08-21 20:47:42 -07:00
value.zig stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00
WaitGroup.zig organize std lib concurrency primitives and add RwLock 2021-01-14 20:41:37 -07:00
wasi_libc.zig wasi-libc: remove crt1.o as it's not WASI ABI compatible 2021-07-11 00:06:47 +02:00
windows_com.hpp compiling on mingw is now supported (#1542) 2018-09-18 00:13:17 -04:00
windows_sdk.cpp finalize windows_sdk paths based on snickler suggestions 2021-09-07 21:49:08 -06:00
windows_sdk.h fix regressed stage2 test harness 2020-09-21 21:14:01 -07:00
windows_sdk.zig stage2: update for new usingnamespace semantics 2021-09-01 17:54:07 -07:00
zig_clang.cpp translate-c: better codegen for pointer index by int literal 2021-08-03 08:38:15 +03:00
zig_clang.h translate-c: better codegen for pointer index by int literal 2021-08-03 08:38:15 +03:00
zig_clang_cc1_main.cpp fix to compile against 12.0.0-rc2 2021-02-25 19:41:30 -08:00
zig_clang_cc1as_main.cpp Update clang drivers 2020-12-16 12:18:14 +01:00
zig_clang_driver.cpp Fix argument forwarding to LLVM on Windows 2021-07-10 15:58:38 -04:00
zig_llvm-ar.cpp Fix argument forwarding to LLVM on Windows 2021-07-10 15:58:38 -04:00
zig_llvm.cpp Address Spaces: Implement in LLVM codegen 2021-09-20 02:29:04 +02:00
zig_llvm.h Address Spaces: Implement in LLVM codegen 2021-09-20 02:29:04 +02:00
Zir.zig stage2: progress towards ability to compile compiler-rt 2021-09-21 23:21:07 -07:00