| 1 |
//===----------------------------------------------------------------------===/ |
| 2 |
// Kaleidoscope with MCJIT |
| 3 |
//===----------------------------------------------------------------------===// |
| 4 |
|
| 5 |
The files in this directory are meant to accompany the second blog in a series of |
| 6 |
three blog posts that describe the process of porting the Kaleidoscope tutorial |
| 7 |
to use the MCJIT execution engine instead of the older JIT engine. |
| 8 |
|
| 9 |
The link of blog post- |
| 10 |
https://blog.llvm.org/posts/2013-07-29-kaleidoscope-performance-with-mcjit/ |
| 11 |
|
| 12 |
The source code in this directory demonstrates the second version of the |
| 13 |
program, now modified to implement a sort of 'lazy' compilation. |
| 14 |
|
| 15 |
The toy-jit.cpp file contains a version of the original JIT-based source code |
| 16 |
that has been modified to disable most stderr output for timing purposes. |
| 17 |
|
| 18 |
To build the program you will need to have 'clang++' and 'llvm-config' in your |
| 19 |
path. If you attempt to build using the LLVM 3.3 release, some minor |
| 20 |
modifications will be required. |
| 21 |
|
| 22 |
This directory also contains a Python script that may be used to generate random |
| 23 |
input for the program and test scripts to capture data for rough performance |
| 24 |
comparisons. |