Stefano Sanfilippo
|
22f4c334b7
|
Adding command line options parser
|
2015-03-10 14:36:32 +01:00 |
|
Stefano Sanfilippo
|
04e031a6a0
|
Adding minimal test case for dead basic block optimization.
|
2015-03-10 13:33:34 +01:00 |
|
Stefano Sanfilippo
|
ba5dbde1ea
|
Build distributable packages with CPack
|
2015-03-10 13:32:43 +01:00 |
|
Stefano Sanfilippo
|
c9c0e72bec
|
Add install rules to CMake build scripts.
|
2015-03-10 13:31:02 +01:00 |
|
Stefano Sanfilippo
|
d8e13b54fe
|
Adding supercazzola version of mandebrot.mc
|
2015-03-10 01:41:58 +01:00 |
|
Stefano Sanfilippo
|
6e20935a1b
|
Grouping source files under src/ directory.
|
2015-03-10 01:28:43 +01:00 |
|
Stefano Sanfilippo
|
8b355d8003
|
Adding a turtle graphics example with an external module.
|
2015-03-10 01:21:45 +01:00 |
|
Stefano Sanfilippo
|
4df447f23e
|
Adding support for declaration of external modules as .mm files.
|
2015-03-10 00:52:51 +01:00 |
|
Stefano Sanfilippo
|
ef0e1be751
|
Convenience ctor for Id from std::string.
|
2015-03-10 00:48:28 +01:00 |
|
Stefano Sanfilippo
|
f35332cf89
|
Enable simple optimizations.
|
2015-03-09 22:48:10 +01:00 |
|
Stefano Sanfilippo
|
f28172e9f2
|
Adding a Mandelbrot set plotter example.
|
2015-03-09 22:38:16 +01:00 |
|
Stefano Sanfilippo
|
cf241951a0
|
Ensure that basic blocks in loops and branches are well formed.
|
2015-03-09 22:04:10 +01:00 |
|
Stefano Sanfilippo
|
ec76d2a21d
|
Use Pointer<...> in BitcodeEmitter.hpp instead of unique_ptr
|
2015-03-09 22:03:07 +01:00 |
|
Stefano Sanfilippo
|
dc5fffbddc
|
Cast the expression before deducing truth value in isTrue()
|
2015-03-09 21:41:11 +01:00 |
|
Stefano Sanfilippo
|
2d58363c50
|
Ext or trunc for integers types, not bitcast.
|
2015-03-09 14:26:25 +01:00 |
|
Stefano Sanfilippo
|
1f4fec77b3
|
Fix error reporting in FunctionPrototype bitcode emitter.
|
2015-03-09 13:58:43 +01:00 |
|
Stefano Sanfilippo
|
ea94de076d
|
Force return type of main to int in CppEmitter.
|
2015-03-09 13:52:34 +01:00 |
|
Stefano Sanfilippo
|
e46ddfcd80
|
Fixing error message for parameter number mismatch in function call.
|
2015-03-09 13:43:22 +01:00 |
|
Stefano Sanfilippo
|
12ea83a4af
|
Make sure vectors are not empty when calling back().
|
2015-03-09 13:35:33 +01:00 |
|
Stefano Sanfilippo
|
0c3702ea34
|
Single ret point in functions, so that a ret is always in the codepath.
|
2015-03-09 12:33:10 +01:00 |
|
Stefano Sanfilippo
|
3278f12028
|
Assert that the value returned by FunctionPrototype bitcode emitter is a llvm::Function.
|
2015-03-09 12:04:08 +01:00 |
|
Stefano Sanfilippo
|
408df71461
|
Move factorial.mcc to factorial.mc
|
2015-03-09 01:23:59 +01:00 |
|
Stefano Sanfilippo
|
4037a76c6b
|
Implicitly cast return expressions to the return type of the function.
|
2015-03-09 01:11:13 +01:00 |
|
Stefano Sanfilippo
|
eca4769534
|
Fixing naming issue in runtime.
|
2015-03-09 01:02:50 +01:00 |
|
Stefano Sanfilippo
|
be503447b3
|
Fix bug in codegen for functions with multiple parameters.
Prior to this, all mutable param variables would be bound to the same parameter.
|
2015-03-09 01:02:24 +01:00 |
|
Stefano Sanfilippo
|
3ffdcf4b88
|
Using C for standard library, since it can't depend on lib(std)c++.
|
2015-03-08 22:18:21 +01:00 |
|
Stefano Sanfilippo
|
95d189e244
|
Use target_compile_options function in CMake script.
|
2015-03-08 22:10:34 +01:00 |
|
Stefano Sanfilippo
|
8d511f46f4
|
Expand documentation on the Monicelli standard library.
|
2015-03-08 21:52:29 +01:00 |
|
Stefano Sanfilippo
|
0531ec531a
|
Removing unneeded dependency on LLVM JIT.
|
2015-03-08 21:45:06 +01:00 |
|
Stefano Sanfilippo
|
79c4303219
|
Using PointerSet for modules in monicelli::Program.
|
2015-03-08 21:37:46 +01:00 |
|
Stefano Sanfilippo
|
04cd095e41
|
Removing leading __ from Monicelli type definitions.
|
2015-03-08 21:37:29 +01:00 |
|
Stefano Sanfilippo
|
711f693f55
|
Renaming monicelli::plist to monicelli::plist_of
|
2015-03-08 21:27:24 +01:00 |
|
Stefano Sanfilippo
|
b2e7a11b7a
|
Introducing boost::ptr_vector and boost::ptr_unordered_set.
This is an easy way to increase the uniformity of the API.
|
2015-03-08 21:03:23 +01:00 |
|
Stefano Sanfilippo
|
19a0c656f2
|
Refactoring == and hash() operators for nodes that need them.
|
2015-03-08 21:01:27 +01:00 |
|
Stefano Sanfilippo
|
83a3813dd4
|
Updating readme.
|
2015-03-08 13:56:06 +01:00 |
|
Stefano Sanfilippo
|
6f69bf603d
|
Add license block where missing.
|
2015-03-08 13:29:34 +01:00 |
|
Stefano Sanfilippo
|
7a456884ae
|
Use CMake release mode.
|
2015-03-08 13:27:39 +01:00 |
|
Stefano Sanfilippo
|
b5196b1776
|
Replace hardcoded stdlib prototypes with a module registry.
|
2015-03-08 13:25:59 +01:00 |
|
Stefano Sanfilippo
|
3aade87599
|
Splitting a parser rule for function prototype.
|
2015-03-08 12:52:38 +01:00 |
|
Stefano Sanfilippo
|
e933e75c85
|
Removing leftover forward decl of __Monicelli_main
|
2015-03-08 12:48:13 +01:00 |
|
Stefano Sanfilippo
|
4f4ab480a3
|
Moving system functions names to BitcodeEmitter.cpp
|
2015-03-08 12:47:52 +01:00 |
|
Stefano Sanfilippo
|
b1aff41ce9
|
Moving convertAndStore to preamble of BitcodeEmitter.cpp
|
2015-03-08 12:47:15 +01:00 |
|
Stefano Sanfilippo
|
9d2413857d
|
Using %g format for printing floating point numbers.
|
2015-03-08 12:34:51 +01:00 |
|
Stefano Sanfilippo
|
519a7f7510
|
Use Type::CHAR instead of Type::BOOL for stdlib functions.
This is because C has no int1 type.
|
2015-03-08 12:29:13 +01:00 |
|
Stefano Sanfilippo
|
83a331a9af
|
Adding stdlib target to CMake, migrating runtime to C++.
|
2015-03-08 12:19:06 +01:00 |
|
Stefano Sanfilippo
|
8656d5c761
|
Get rid of __Monicelli_main and directly call main()
|
2015-03-08 12:04:46 +01:00 |
|
Stefano Sanfilippo
|
be60adb510
|
Minor cosmetic fixes (splitting lines, beautify error message).
|
2015-03-08 11:29:26 +01:00 |
|
Stefano Sanfilippo
|
f933cc3163
|
Extracting a FunctionPrototype node.
This will allow more flexibility in defining externed functions.
|
2015-03-08 11:25:41 +01:00 |
|
Stefano Sanfilippo
|
3f19125574
|
Output object file in current directory.
|
2015-03-07 19:56:47 +01:00 |
|
Stefano Sanfilippo
|
35d3dbce75
|
Add implicit ret void after main in bitcode.
|
2015-03-07 19:44:49 +01:00 |
|