Commit Graph

89 Commits

Author SHA1 Message Date
Janggun Lee
a1655246c9 Cleanup some formatting code, add tips 2025-02-27 12:54:15 +09:00
Janggun Lee
6f18d77861 Remove some deadcode and tqdm 2025-02-26 20:20:54 +09:00
Janggun Lee
0b01588b6d Fix testing code 2025-02-25 16:20:11 +09:00
Janggun Lee
72dadc608d Various quality-of-life improvements (ideas from @33577 )
* Very basic `hello_main.c`
* Big starting hint to `write_c`
* Better error messages on failed test
  * TODO: also improve it for asmgen, but not sure how to do it in a good way
2025-02-25 00:28:55 +09:00
Janggun Lee
fad9d02fea Prepare for Spring 2025. 2025-02-24 17:31:17 +09:00
Janggun Lee
a8e0aa5e69 Nits 2025-02-11 16:11:31 +09:00
Janggun Lee
00c64a5297 Format and stuff 2025-01-23 19:11:43 +09:00
Janggun Lee
fcb6ca2538 Update 2025-01-06 18:45:28 +09:00
Jeehoon Kang
099672d0b8 Bump 2024-05-08 03:31:34 +00:00
jungin.rhee
a02a928bf9 Update examples with new testcase 2023-03-16 20:33:22 +09:00
Minseong Jang
8df80203b8 Update assertion message 2023-02-13 15:09:31 +09:00
Janggun Lee
55ebcad347 Parse integral values, closes #289 2022-12-20 16:31:06 +09:00
Janggun Lee
c5946611a3 Bump Rust and add skeleton code for irgen. 2022-12-19 18:50:22 +09:00
Janggun Lee
094cbfdd2c Lots of improvements.
* Better script names and grammar fix.
* Bump Rust
* Enforce more lints.
* Improve few struct definitions by removing box.
* Many minor implementation improvements.
2022-11-21 15:27:04 +09:00
Minseong Jang
f39851625a Bump dependencies 2022-10-20 13:04:11 +09:00
Minseong Jang
e7edf89fb3 Bump dependencies 2022-09-12 10:51:55 +09:00
Janggun Lee
88bd64e423 Add fmt to kecc IR and Assembly (#7)
* Add fmt to kecc ir structs

* Add fmt for KECC asm
2022-08-02 10:14:37 +09:00
Minseong Jang
d2f7b9b465 Make opt_utils public 2022-06-02 21:38:24 +09:00
Minseong Jang
64124bb68d Change function name
`Instruction::is_pure` -> `Instruction::has_no_side_effects`
2022-05-02 19:31:25 +09:00
Minseong Jang
1d2e46cc81 Allow dead code in opt utils 2022-04-21 19:05:58 +09:00
Minseong Jang
3a36e47985 Forbid incompatible pointer conversion 2022-04-04 20:26:54 +09:00
Minseong Jang
2e11197a58 Add -fsanitize=float-divide-by-zero option 2022-04-01 02:31:12 +09:00
Minseong Jang
5264066a3c Fix interp call instruction
Check that dtype of args and phinodes of init block are compatible
2022-03-29 11:57:13 +09:00
Minseong Jang
4def8318f7 Fix ir interpreter 2022-03-28 15:27:35 +09:00
Minseong Jang
c4ec2c7881 Use -O0 instead of -O1 and -O2 2022-03-28 15:26:12 +09:00
Minseong Jang
271e95ab1d Support negative value in ir parser 2022-03-25 14:41:54 +09:00
Minseong Jang
6c2adf84ed Restrict global variable initializer form 2022-03-25 11:46:26 +09:00
Minseong Jang
b8c13d5b27 Fix ir interp 2022-03-25 00:58:06 +09:00
Minseong Jang
0b839020cf Bump Rust to 1.59.0 2022-02-28 09:57:16 +09:00
Minseong Jang
6f0df5a4b8 Modify comments for cargo doc 2022-02-27 22:39:21 +09:00
Minseong Jang
7aaae1b3e6 Fix interp 2022-02-23 23:07:07 +09:00
Minseong Jang
d1975502b6 Use clang instead of gcc 2022-02-23 23:05:27 +09:00
Minseong Jang
e1f6ac5df6 Remove #[allow(dead_code)] 2022-02-22 22:17:08 +09:00
Minseong Jang
fd1043e09b Update IR visualizer 2022-01-27 15:21:56 +09:00
Minseong Jang
99d0ff1311 Implement IR visualizer 2022-01-27 15:16:14 +09:00
Minseong Jang
126cfcb13d Update references 2022-01-25 22:58:46 +09:00
Minseong Jang
4902bd6d9f Update asm 2022-01-25 17:22:58 +09:00
Minseong Jang
a843992e8f Change Option<DataSize> to DataSize 2022-01-25 17:21:41 +09:00
Minseong Jang
1fb7e85d37 Update end-to-end test 2022-01-25 17:17:41 +09:00
Minseong Jang
724ffd2e6f Replace failure with thiserror 2022-01-25 09:14:55 +09:00
Minseong Jang
fca635529c Update dependencies 2021-12-31 16:30:54 +09:00
Jeehoon Kang
de3068854a Fix error 2021-06-21 18:54:57 +00:00
Jeehoon Kang
4535b2ef6f Update 2021-06-21 18:45:39 +00:00
Chunmyong Park
2d8d1e7fb4 Fix bugs 2020-07-03 12:02:26 +00:00
Chunmyong Park
87a17b2bb9 Add .zero directive 2020-07-03 07:59:47 +00:00
Chunmyong Park
1483614cad Set the range of the random number 2020-07-03 00:58:06 +00:00
Chunmyong Park
e4eec1e81d Update skeleton 2020-07-02 14:28:58 +00:00
Chunmyong Park
5395c1e9ba Fix grader 2020-07-02 10:50:47 +00:00
Chunmyong Park
d64e9f622e Update grader 2020-07-02 06:54:19 +00:00
Chunmyong Park
c3237276dc Expose ir::Value::try_from_initializer method 2020-06-27 09:38:38 +00:00