aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.hpp
AgeCommit message (Collapse)Author
2020-04-01zig cc properly handles -S flag and .ll, .bc extensionsAndrew Kelley
2020-02-10stage1: memory/report overhaulMichael Dusan
- split util_base.hpp from util.hpp - new namespaces: `mem` and `heap` - new `mem::Allocator` interface - new `heap::CAllocator` impl with global `heap::c_allocator` - new `heap::ArenaAllocator` impl - new `mem::TypeInfo` extracts names without RTTI - name extraction is enabled w/ ZIG_ENABLE_MEM_PROFILE=1 - new `mem::List` takes explicit `Allocator&` parameter - new `mem::HashMap` takes explicit `Allocator&` parameter - add Codegen.pass1_arena and use for all `ZigValue` allocs - deinit Codegen.pass1_arena early in `zig_llvm_emit_output()`
2019-10-07generated docs: show doc comments on functionsAndrew Kelley
2019-09-09fix bad LLVM IR when for target expr needs to be spilledAndrew Kelley
Also reduce the size of ZigVar in memory by making the name a `const char *` rather than a `Buf`.
2019-07-15fix build on windowsAndrew Kelley
2019-06-16stage1: check for null in buf_len and buf_ptrShawn Landden
follow up for f4b8850002d5
2019-04-17stage1 assertions always on, and have stack tracesAndrew Kelley
2019-02-28struct types get fully qualified namesAndrew Kelley
and function symbol names become fully qualified
2019-02-26breaking changes to the way targets work in zigAndrew Kelley
* CLI: `-target [name]` instead of `--target-*` args. This matches clang's API. * `builtin.Environ` renamed to `builtin.Abi` - likewise `builtin.environ` renamed to `builtin.abi` * stop hiding the concept of sub-arch. closes #1526 * `zig targets` only shows available targets. closes #438 * include all targets in readme, even those that don't print with `zig targets` but note they are Tier 4 * refactor target.cpp and make the naming conventions more consistent * introduce the concept of a "default C ABI" for a given OS/Arch combo. As a rule of thumb, if the system compiler is clang or gcc then the default C ABI is the gnu ABI.
2018-11-19Crash fixes and small improvements to inline asm. (#1756)Sahnvour
* codegen: LLVMConstInlineAsm is deprecated. * codegen: replace commas in asm constraint strings by pipes as required by LLVM. * ir: enforce usage of '=' constraint modifier for inline assembly outputs. Others are not currently supported and this was just asserted alter in `ir_render_asm`. * asm: forbid comptime_int/floats as inputs in favor of explicitely sized constants. Fixes a crash due to comptime_int/floats having no type_ref. * asm: handle inputs with integers of <8 or non power of 2 bitsize. We widen them to the next highest power of two.
2018-09-09basic compiler id hash workingAndrew Kelley
2018-09-04port std.os.path.resolve to stage1Andrew Kelley
2017-09-13fix up msvc stuff to make it work on linux and macos tooAndrew Kelley
2017-09-11Add support for MSVCJonathan Marler
2017-04-10fix some -Wconversion errorsAndrew Kelley
2016-09-19use size_t for indexesAndrew Kelley
protect against incorrect copies in debug mode
2016-05-07link: don't put -l in front of .a or .so filesAndrew Kelley
2016-01-28parseh recognizes C enumsAndrew Kelley
2015-12-03parseh command, parses a C .h file and produces extern declsAndrew Kelley
2015-12-01colored error messages that tell the source fileAndrew Kelley
2015-11-30factor analysis code out of codegenJosh Wolfe
2015-11-29ability to generate shared library and h fileAndrew Kelley
2015-11-25fix the remaining TODOs in the sourceAndrew Kelley
2015-11-25fix invalid memory writeAndrew Kelley
2015-11-24debug information for functionsAndrew Kelley
2015-11-24fix not using subtarget featuresAndrew Kelley
2015-11-23semantic analysis checks for multiple definitions of functionsAndrew Kelley
2015-11-06generated parser understands tuplesAndrew Kelley
2015-11-03parser generator beginningsAndrew Kelley
2015-11-02building part of the hello world ASTAndrew Kelley
2015-11-01tokenizing hello.zigAndrew Kelley
2015-08-23some half done thing I forgot about ¯\_(ツ)_/¯Andrew Kelley
2015-08-05preprocessor runs onceAndrew Kelley
2015-08-05preprocessor detects #include directivesAndrew Kelley