General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
Go to file
Andrew Kelley f0deef1d79 Sema: fix analyzeBlockBody logic
Previously, when a coercion needed to be inserted into a break
instruction, the `br` AIR instruction would be rewritten so that the
block operand was a sub-block that did the coercion. The problem is that
the sub-block itself was never added to the parent block, resulting in
the `br` instruction operand being a bad reference.

Now, the `br` AIR instruction that needs to have coercion instructions
added is replaced with the sub-block itself with type `noreturn`, and
then the sub-block has the coercion instructions and a new `br`
instruction that breaks from the original block.

LLVM backend needed to be fixed to lower `noreturn` blocks without
emitting an unused LLVM basic block.
2021-11-26 23:17:01 -07:00
.builds ci: update tarballs for LLVM 13 2021-10-01 16:07:42 -07:00
.github GitHub: slight change of wording on the proposal issue template 2021-10-06 17:20:54 -07:00
ci ci: add coverage for building stage2 for arm-linux-musleabihf 2021-11-21 19:50:20 -07:00
cmake fix the list of llvm libraries 2021-09-30 23:33:03 -07:00
deps Revert "Include dbg.h to third-party libs" 2020-10-03 21:29:29 -04:00
doc Minor rewording of "Shadowing" section within language reference 2021-10-23 02:57:20 -04:00
lib zig build: add each_lib_rpath property 2021-11-26 21:22:33 -07:00
src Sema: fix analyzeBlockBody logic 2021-11-26 23:17:01 -07:00
test Sema: fix analyzeBlockBody logic 2021-11-26 23:17:01 -07:00
tools zig cc: honor all -m and -mno- CPU feature flags 2021-11-26 19:59:33 -07:00
.gitattributes mark tsan as linguist-vendored 2021-06-25 12:46:23 +03:00
.gitignore std/build: change default install prefix to zig-out 2021-04-29 23:58:45 +02:00
build.zig add functionality to trace allocations 2021-10-31 14:16:59 +00:00
CMakeLists.txt Stage2: wasm - Implement the MIR pass (#10153) 2021-11-15 18:02:24 +01:00
CODE_OF_CONDUCT.md CODE_OF_CONDUCT: change Freenode to Libera.chat 2021-07-03 20:28:17 -04:00
CONTRIBUTING.md Adds tip about testing stdlib files to CONTRIBUTING.md (#9946) 2021-10-15 13:56:57 -04:00
LICENSE Tweak license in celebration of the upcoming 0.8.0 release :) 2021-05-31 14:12:20 -07:00
README.md readme: update introduction link 2021-02-19 16:38:04 -07:00

ZIG

A general-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

Resources

Installation

License

The ultimate goal of the Zig project is to serve users. As a first-order effect, this means users of the compiler, helping programmers to write better software. Even more important, however, are the end-users.

Zig is intended to be used to help end-users accomplish their goals. Zig should be used to empower end-users, never to exploit them financially, or to limit their freedom to interact with hardware or software in any way.

However, such problems are best solved with social norms, not with software licenses. Any attempt to complicate the software license of Zig would risk compromising the value Zig provides.

Therefore, Zig is available under the MIT (Expat) License, and comes with a humble request: use it to make software better serve the needs of end-users.

This project redistributes code from other projects, some of which have other licenses besides MIT. Such licenses are generally similar to the MIT license for practical purposes. See the subdirectories and files inside lib/ for more details.