aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
AgeCommit message (Collapse)Author
2016-04-14move more tests to self-hosted landAndrew Kelley
2016-04-13fix evaluating generic functions in wrong contextAndrew Kelley
2016-04-12eval: ability to eval more thingsAndrew Kelley
2016-04-12eval: support more node typesAndrew Kelley
2016-04-10fix crash when casting undefined to sliceAndrew Kelley
also fix crash having to do with runtime allocated stack memory
2016-04-09goto: jumping out of scope runs defersAndrew Kelley
see #44
2016-04-09add @breakpoint()Andrew Kelley
2016-04-09re-introduce gotoAndrew Kelley
see #44
2016-04-09fix debug symbols regression after llvm 3.8.0Andrew Kelley
2016-04-09implement @err_name builtin functionAndrew Kelley
2016-04-08fix crash when passing empty string to functionAndrew Kelley
2016-04-08update cat example, refactor stdAndrew Kelley
partial implementation of @err_name
2016-04-06support simple generic functionsAndrew Kelley
2016-03-08update to llvm 3.8.0Andrew Kelley
2016-03-01c_void is provided outside of C importsAndrew Kelley
2016-03-01rewrite how importing worksAndrew Kelley
* Introduce the concept of packages. Closes #3 * Add support for error notes. * Introduce `@import` and `@c_import` builtin functions and remove the `import` and `c_import` top level declarations. * Introduce the `use` top level declaration. * Add `--check-unused` parameter to perform semantic analysis and codegen on all top level declarations, not just exported ones and ones referenced by exported ones. * Delete the root export node and add `--library` argument.
2016-02-16rename 'environ' to 'env_type'Andrew Kelley
environ appears to clash with another symbol in mingw land
2016-02-16update bootstrap to work for macos tooAndrew Kelley
* Directives can have arbitrary expressions as parameters * Fix switch statement not generating code sometimes * Rename "main" fn in bootstrap.zig to "zig_user_main" to avoid name collisions * codegen: fix badref when unreachable is last thing in an expression * support #condition directive on exported functions
2016-02-15first pass at linking on macosAndrew Kelley
2016-02-15handle libc include path and libc lib path differentlyAndrew Kelley
2016-02-13respect link order in source codeAndrew Kelley
2016-02-13add @ctz, @clz and compiler_rt implementationAndrew Kelley
2016-02-12c integer size takes into account architecture and OSAndrew Kelley
2016-02-12add @compile_var("environ")Andrew Kelley
2016-02-11add @compile_var("os") and @compile_var("arch")Andrew Kelley
2016-02-11ability to cross compileAndrew Kelley
hello_libc.zig can produce a windows build
2016-02-10add "targets" command to list architectures, oses, abisAndrew Kelley
2016-02-09if statements can be const expr evaluatedAndrew Kelley
also introduce error for unnecessary if statement but if the condition depends on a compile variable, then the if statement is OK
2016-02-09fix -dynamic-linker arg to ld when not overriddenAndrew Kelley
2016-02-09std: fix parse_u64 implementation and add testAndrew Kelley
also codegen implement comparision with pure errors
2016-02-09fix build with GCCAndrew Kelley
2016-02-08support overriding the dynamic linker argument to ldAndrew Kelley
2016-02-08support static linking against libcAndrew Kelley
2016-02-07remove ptr field access of arraysAndrew Kelley
use &array[0] instead
2016-02-07implement @const_evalAndrew Kelley
closes #73
2016-02-07add debug info for loop variablesAndrew Kelley
closes #112
2016-02-06implement %defer and ?deferAndrew Kelley
see #110
2016-02-06codegen: return respects unconditional deferAndrew Kelley
See #110
2016-02-06simple unconditional defer supportAndrew Kelley
See #110
2016-02-05parsing code for defer and moreAndrew Kelley
* disable goto and label support see #44 * refactor the way block contexts work
2016-02-05add nonnull to functions with pointer return typeAndrew Kelley
2016-02-05codegen: use gen_index for nonnull attributeAndrew Kelley
also put nonnull on sret params closes #82
2016-02-05Added code for generating nonnull attributesrealazthat
2016-02-04switch trap in debug mode when no prong foundAndrew Kelley
2016-02-04support variable in switch expression prongsAndrew Kelley
See #43
2016-02-04no namespace required when switching on enumAndrew Kelley
See #43
2016-02-04codegen: fix switch expressions for enums with payloadsAndrew Kelley
2016-02-04fix debug info for bool typeAndrew Kelley
2016-02-04ability to explicitly cast bool to intAndrew Kelley
2016-02-04for loop supports break and continueAndrew Kelley
See #51