Commit Graph

1253 Commits (3a8490f7e95faeff6be9b65c93cd55c8dd11ed1e)

Author SHA1 Message Date
Andrew Kelley c715309bc5 Merge branch 'master' into ir-merge 2017-01-16 14:23:32 -05:00
Andrew Kelley 4cbeb87e83 fix handling of const values for 2d arrays 2017-01-16 12:42:46 -05:00
Andrew Kelley c7591736b4 fix array of enums. also render debug info for const vars 2017-01-16 01:44:47 -05:00
Andrew Kelley 3752e0c290 fix get_maybe_type not ensuring complete child type 2017-01-15 23:36:14 -05:00
Andrew Kelley d0b59f20ab fix llvm assertion failure for zero bits structs 2017-01-15 23:27:14 -05:00
Andrew Kelley 0b6cf0aa63 fix handling of invalid enumeration 2017-01-15 22:34:20 -05:00
Andrew Kelley 8106f9846a fix enum codegen and implement comptime switch var on enums 2017-01-15 22:16:39 -05:00
Andrew Kelley 0c1800a9c9 fix some stuff when llvm has assertions on 2017-01-13 17:33:19 -05:00
Andrew Kelley 83f1a6fae2 fix some bugs with structs 2017-01-13 16:24:13 -05:00
Andrew Kelley 652bfab3d0 fix crash when casting fn call arg 2017-01-12 18:10:18 -05:00
Andrew Kelley c793c534b8 fix use decl regression 2017-01-12 18:10:05 -05:00
Andrew Kelley 18f248b94d IR: fix array concatenation
all tests passing
2017-01-12 15:10:58 -05:00
Andrew Kelley d784705353 IR: implement macro for function aliasing function pointer 2017-01-12 03:15:06 -05:00
Andrew Kelley 76b1cbc2ea pass some parseh tests 2017-01-11 22:25:17 -05:00
Andrew Kelley 25a670d74e pass more tests 2017-01-11 19:09:17 -05:00
Andrew Kelley de9ecaf964 fix some tests 2017-01-11 18:23:19 -05:00
Andrew Kelley fc53708dc0 better error message for unable to eval const expr 2017-01-11 18:06:21 -05:00
Andrew Kelley 7493af5953 fix a few tests 2017-01-11 00:38:24 -05:00
Andrew Kelley fde276a3bf IR: implement error for missing or extra switch prongs 2017-01-10 16:28:49 -05:00
Andrew Kelley 430e33b869 partially fix parseh command 2017-01-10 15:39:52 -05:00
Andrew Kelley 8d27a02705 pass division by zero test 2017-01-08 22:35:31 -05:00
Andrew Kelley 6caf32195a pass unnecessary if statement test 2017-01-08 22:25:38 -05:00
Andrew Kelley 76d0e49e61 fix unable to eval const expr test case 2017-01-08 10:54:05 -05:00
Andrew Kelley e4bc8d22c2 fix some tests 2017-01-08 10:41:36 -05:00
Andrew Kelley 3ef447fa20 don't try to eval extern functions at compile time 2017-01-08 10:30:05 -05:00
Andrew Kelley 6b36aef306 pass conflicting variable name test 2017-01-07 14:27:38 -05:00
Andrew Kelley 090ff05054 add compile error for initializing struct with non struct type 2017-01-07 14:24:08 -05:00
Andrew Kelley cf62f02ba9 don't mark call instruction as generated
pass cast unreachable test
2017-01-06 02:04:27 -05:00
Andrew Kelley 23feafdef0 pass more tests
by removing assertion, fixing error column,
and updating expected message
2017-01-05 19:25:36 -05:00
Andrew Kelley 28403eaad0 pass more tests by updating expected error messages 2017-01-05 19:20:31 -05:00
Andrew Kelley 837cc467f7 pass array access compile error tests 2017-01-05 19:05:48 -05:00
Andrew Kelley e621ad014e pass cannot assign to constant test 2017-01-05 18:50:36 -05:00
Andrew Kelley 97e1054890 fix compiler rt 2017-01-05 04:20:07 -05:00
Andrew Kelley ed21be011a pass unreachable variable test 2017-01-05 04:03:25 -05:00
Andrew Kelley 438feebbcf pass undeclared identifier test 2017-01-05 04:01:11 -05:00
Andrew Kelley 3b5e26b7f7 self hosted tests import std library 2017-01-05 03:57:48 -05:00
Andrew Kelley ee09eb7f54 fix hash map implementation
standard library passes all tests now
2017-01-05 03:40:12 -05:00
Andrew Kelley 9d94c2ccd0 fix mul and sub overflow ops being rendered as addition 2017-01-05 03:29:50 -05:00
Andrew Kelley 349cd79fe4 containers created during eval get names for parameters 2017-01-05 03:22:00 -05:00
Andrew Kelley 27a633b32a fix mem.sliceAsInt regression 2017-01-05 01:23:59 -05:00
Andrew Kelley 6ec6589bd8 IR: pass MT19937_64 test 2017-01-05 00:59:37 -05:00
Andrew Kelley c32a060d4f IR: add unreachable code compiler error 2017-01-04 23:21:33 -05:00
Andrew Kelley 664b41af65 fix debug information for function pointers in structs 2017-01-04 01:56:21 -05:00
Andrew Kelley dbb1018ca6 IR: std library passes codegen 2016-12-31 19:48:17 -05:00
Andrew Kelley ff5120c584 IR: std makes it to codegen 2016-12-31 18:25:10 -05:00
Andrew Kelley 69132bdeda IR: progress toward compiling standard library
* comptime fn call
 * is_comptime doesn't count as an instruction dependency
 * update more std code to latest zig
2016-12-31 17:10:29 -05:00
Andrew Kelley 5f89393acb IR: implement binary not instruction 2016-12-31 02:23:39 -05:00
Andrew Kelley 2ccdaee101 IR: add error for goto jumping over variable declaration 2016-12-31 01:58:37 -05:00
Andrew Kelley 76fa6cdce3 eradicate use of zeroes in std 2016-12-31 01:31:23 -05:00
Andrew Kelley 29bb175f4f IR: handle phi instruction with 0 resulting incoming values 2016-12-30 18:47:54 -05:00