Commit Graph

78 Commits

Author SHA1 Message Date
cfreksen
669e8627c8
Update README. 2017-11-09 16:41:03 +01:00
cfreksen
3ddab21f72
Update setup files. 2017-11-09 15:36:28 +01:00
cfreksen
cea1cece13
Add support for print from runtime.c. 2017-11-09 15:32:29 +01:00
cfreksen
8afdf563b3
Consider empty structs to be of size 1. 2017-11-09 14:37:40 +01:00
cfreksen
bef14dfa24
Add support for allocRecord and initArray from runtime.c. 2017-11-09 14:37:34 +01:00
cfreksen
53ee6d3ef6
Minor fix to an error message. 2017-11-09 13:13:34 +01:00
cfreksen
ced2c41bc6
Include the script in setup.py. 2017-10-31 20:15:39 +01:00
cfreksen
559b178728
Use a script in the bin folder to start the emulator. 2017-10-31 20:03:16 +01:00
cfreksen
4281442960
Improve some import statements. 2017-10-31 19:52:53 +01:00
cfreksen
e7638887fd
Move emulator back into package directory. 2017-10-31 19:52:08 +01:00
cfreksen
072d704439
Use readme as long description in setup.py. 2017-10-31 17:35:50 +01:00
cfreksen
7e577886a0
Fix typos in readme. 2017-10-31 10:23:49 +01:00
cfreksen
ee9a36af85
Expand readme a bit. 2017-10-31 10:18:12 +01:00
cfreksen
fa57a727c1
Move emulator.py into root directory. 2017-10-30 17:44:26 +01:00
cfreksen
90d99170ab
Fix typo in readme. 2017-10-30 17:36:56 +01:00
cfreksen
5f90fc381b
Add symlink to README.org. 2017-10-30 17:25:00 +01:00
cfreksen
99d9caa932
Use file extension on README. 2017-10-30 17:21:06 +01:00
cfreksen
e5c8522995
Fix typo in an error message. 2017-10-30 17:09:56 +01:00
cfreksen
457559458e
Add readme. 2017-10-30 17:09:16 +01:00
cfreksen
fed8e65afc
Add WIP setup.py file. 2017-10-30 05:30:46 +01:00
cfreksen
2834576683
Update gitignore to ignore files generated by setuptools. 2017-10-30 05:27:35 +01:00
cfreksen
7373d2cdc5
Add setuptools to requirements. 2017-10-30 05:25:53 +01:00
cfreksen
967f382bad
Rename llvm_emulator.py to emulator.py. 2017-10-30 05:04:44 +01:00
cfreksen
ffbdb98528
Move python files into a subdirectory. 2017-10-30 02:54:33 +01:00
cfreksen
3e809a9c30
Add blank lines to printout in auto-mode. 2017-10-30 02:36:10 +01:00
cfreksen
5198d44417
Implement more or less proper user interaction. 2017-10-30 02:31:29 +01:00
cfreksen
d63c5c1d05
Move some of the scaffolding into a more permanent function. 2017-10-30 01:55:57 +01:00
cfreksen
0536c7e683
Implement encoding LLVM strings. 2017-10-30 01:32:35 +01:00
cfreksen
7cd2560956
Implement global identifiers. 2017-10-30 01:09:36 +01:00
cfreksen
6f64647852
Update oper2s. 2017-10-30 00:58:21 +01:00
cfreksen
4d0d13359b
Fix small bug around null in parser. 2017-10-30 00:57:58 +01:00
cfreksen
397c144bba
Allocate globals. 2017-10-30 00:47:50 +01:00
cfreksen
2008b63919
Improve stringification of llvm AST nodes. 2017-10-30 00:47:20 +01:00
cfreksen
b6dafa24f1
Allow capital letters in hex escapes. 2017-10-30 00:15:07 +01:00
cfreksen
89439593e4
Handle getelementptr. 2017-10-30 00:00:56 +01:00
cfreksen
5fc3e23ae5
Improve presentation. 2017-10-30 00:00:35 +01:00
cfreksen
14d9215ac4
Fix missing module qualifier bug. 2017-10-29 22:31:52 +01:00
cfreksen
6398047e64
Try to solve the halting problem. 2017-10-29 22:31:07 +01:00
cfreksen
ce61eb151e
Handle load/store with null. 2017-10-29 22:03:31 +01:00
cfreksen
7deddce45d
Handle more types for Alloca. 2017-10-29 22:00:18 +01:00
cfreksen
5f7a5bf26c
Implement load. 2017-10-29 21:40:26 +01:00
cfreksen
f04d22c27e
Add size check to Store. 2017-10-29 21:34:12 +01:00
cfreksen
1dc258d26f
Rename field in ll.Load. 2017-10-29 21:33:29 +01:00
cfreksen
4fca74304a
Implement store. 2017-10-29 21:23:57 +01:00
cfreksen
dc1c38fbe2
Add Store case to insn2s. 2017-10-29 21:21:43 +01:00
cfreksen
46f5bf9fc7
Rename memory to heap. 2017-10-29 21:21:25 +01:00
cfreksen
6b6dd9cf68
Use more explicite garbage placholder value. 2017-10-29 21:10:22 +01:00
cfreksen
13017ef95b
Add alloca (for simple types). 2017-10-29 21:08:14 +01:00
cfreksen
648c718843
Add missing insn cases as TODOs. 2017-10-29 20:44:17 +01:00
cfreksen
0aa427ac02
Add function calls. 2017-10-29 20:39:58 +01:00