| 1 |
//===----------------------------------------------------------------------===/ |
| 2 |
// Kaleidoscope with MCJIT |
| 3 |
//===----------------------------------------------------------------------===// |
| 4 |
|
| 5 |
The files in this directory are meant to accompany the third 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-08-02-object-caching-with-kaleidoscope/ |
| 11 |
|
| 12 |
The source code in this directory demonstrates the third version of the |
| 13 |
program, now modified to accept an input IR file on the command line and, |
| 14 |
optionally, to use a basic caching mechanism to store generated object images. |
| 15 |
|
| 16 |
The toy-jit.cpp file contains a version of the original JIT-based source code |
| 17 |
that has been modified to support the input IR file command line option. |
| 18 |
|
| 19 |
To build the program you will need to have 'clang++' and 'llvm-config' in your |
| 20 |
path. If you attempt to build using the LLVM 3.3 release, some minor |
| 21 |
modifications will be required. |
| 22 |
|
| 23 |
This directory also contains a Python script that may be used to generate random |
| 24 |
input for the program and test scripts to capture data for rough performance |
| 25 |
comparisons. Another Python script will split generated input files into |
| 26 |
definitions and function calls for the purpose of testing the IR input and |
| 27 |
caching facilities. |