aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
AgeCommit message (Collapse)Author
2016-12-18IR: fix codegen of ref instructionAndrew Kelley
2016-12-18IR: phi instruction handles unreachable values correctlyAndrew Kelley
2016-12-18IR: fix err variable in ErrOkOr instructionAndrew Kelley
2016-12-18IR: basic support for implicit casting to const pointerAndrew Kelley
2016-12-17IR: consolidate Ref and PrefixOpAddressOf instructionsAndrew Kelley
2016-12-17IR: fix switching on enumAndrew Kelley
2016-12-17IR: add more instructionsAndrew Kelley
* MaybeWrap * TestErr * UnwrapErrCode * UnwrapErrPayload * ErrUnionTypeChild * ErrWrapCode * ErrWrapPayload
2016-12-13IR: implement the rest of the builtin functionsAndrew Kelley
* returnAddress * frameAddress * addWithOverflow * subWithOverflow * mulWithOverflow * shlWithOverflow * alignOf
2016-12-13IR: implement breakpoint builtinAndrew Kelley
2016-12-12IR: implement memberCount builtinAndrew Kelley
2016-12-12IR: implement memcpy, memset, and slice expressionAndrew Kelley
2016-12-11IR: implement alloca builtinAndrew Kelley
2016-12-11IR: implement intType builtinAndrew Kelley
and int type field access and fix compile time bool not
2016-12-11IR: implement truncate builtinAndrew Kelley
2016-12-11IR: implement divExact builtinAndrew Kelley
2016-12-11IR: implement fence and cmpxchg builtinsAndrew Kelley
2016-12-11IR: implement embedFile builtinAndrew Kelley
2016-12-11IR: fix implementation of parsehAndrew Kelley
libc hello world works now
2016-12-10IR: support error union typeAndrew Kelley
2016-12-08IR: omit debug safety checks in for loop codegenAndrew Kelley
2016-12-08IR: a bunch of fixes and some additionsAndrew Kelley
* add errorName builtin function * add assertion for generated memcopy being on correct types * respect handle_is_ptr for constant values * fix return codegen to respect sret semantics * remove ArrayLen IR instruction; we already have StructFieldPtr with "len" field * fix gen_const_val for pointers inside aggregates
2016-12-07IR: add compileError builtin fnAndrew Kelley
2016-12-07IR: add minValue, maxValue, and negationAndrew Kelley
2016-12-07delete unused builtin function stuffAndrew Kelley
2016-12-05remove the boolean argument from setFnTestAndrew Kelley
2016-12-05IR: implement break and continueAndrew Kelley
2016-12-05IR: implement generic function callsAndrew Kelley
2016-12-04IR: compile time function evaluationAndrew Kelley
2016-12-04IR: re-organize where state goes to prepare for genericsAndrew Kelley
* Rip out legacy code for generics * put scope in instruction instead of AST nodes * separate top level decl stuff from AST nodes - remove the assumption that there is a 1:1 correspondence between an output instruction and an AST node - This way we won't have to clone AST nodes for generics.
2016-12-01rewrite scope implementationAndrew Kelley
* now there are not extra unused hash tables * each variable declaration opens a new scope inside a function
2016-12-01rename BlockContext to ScopeAndrew Kelley
2016-11-28IR: function call porting progressAndrew Kelley
also implemented container init generics is still todo
2016-11-27IR: add ref instructionAndrew Kelley
2016-11-26IR: support import builtin functionAndrew Kelley
2016-11-26IR: add error for non static const on switch case rangeAndrew Kelley
2016-11-26IR: switch expression works with numbersAndrew Kelley
2016-11-24IR: generating a switch statementAndrew Kelley
2016-11-21IR: implement setFnVisible builtinAndrew Kelley
2016-11-21IR: fix codegen for arraysAndrew Kelley
2016-11-21IR: implement ctz and clz builtinsAndrew Kelley
2016-11-21IR: support unwrap maybe operationAndrew Kelley
2016-11-20IR: support sizeOf builtinAndrew Kelley
2016-11-19IR: implement compileVar builtin and moreAndrew Kelley
* implicit array to slice cast * fix if statements at global scope * implement array type IR
2016-11-18IR: more maybe type supportAndrew Kelley
2016-11-18IR: correctly codegening memset and memcpyAndrew Kelley
2016-11-18IR: support setDebugSafety builtin functionAndrew Kelley
2016-11-18IR: inline assembly workingAndrew Kelley
2016-11-17IR: pointers to constants don't copy dataAndrew Kelley
2016-11-13IR: add assembly instructionAndrew Kelley
2016-11-13IR handles global variables correctlyAndrew Kelley