1*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===/ 2*9880d681SAndroid Build Coastguard Worker// Kaleidoscope with MCJIT 3*9880d681SAndroid Build Coastguard Worker//===----------------------------------------------------------------------===// 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard WorkerThe files in this directory are meant to accompany the first in a series of 6*9880d681SAndroid Build Coastguard Workerthree blog posts that describe the process of porting the Kaleidoscope tutorial 7*9880d681SAndroid Build Coastguard Workerto use the MCJIT execution engine instead of the older JIT engine. 8*9880d681SAndroid Build Coastguard Worker 9*9880d681SAndroid Build Coastguard WorkerWhen the blog post is ready this file will be updated with a link to the post. 10*9880d681SAndroid Build Coastguard Worker 11*9880d681SAndroid Build Coastguard WorkerThe source code in this directory demonstrates the third version of the 12*9880d681SAndroid Build Coastguard Workerprogram, now modified to accept an input IR file on the command line and, 13*9880d681SAndroid Build Coastguard Workeroptionally, to use a basic caching mechanism to store generated object images. 14*9880d681SAndroid Build Coastguard Worker 15*9880d681SAndroid Build Coastguard WorkerThe toy-jit.cpp file contains a version of the original JIT-based source code 16*9880d681SAndroid Build Coastguard Workerthat has been modified to support the input IR file command line option. 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard WorkerThis directory contain a Makefile that allow the code to be built in a 19*9880d681SAndroid Build Coastguard Workerstandalone manner, independent of the larger LLVM build infrastructure. To build 20*9880d681SAndroid Build Coastguard Workerthe program you will need to have 'clang++' and 'llvm-config' in your path. If 21*9880d681SAndroid Build Coastguard Workeryou attempt to build using the LLVM 3.3 release, some minor modifications will 22*9880d681SAndroid Build Coastguard Workerbe required. 23*9880d681SAndroid Build Coastguard Worker 24*9880d681SAndroid Build Coastguard WorkerThis directory also contains a Python script that may be used to generate random 25*9880d681SAndroid Build Coastguard Workerinput for the program and test scripts to capture data for rough performance 26*9880d681SAndroid Build Coastguard Workercomparisons. Another Python script will split generated input files into 27*9880d681SAndroid Build Coastguard Workerdefinitions and function calls for the purpose of testing the IR input and 28*9880d681SAndroid Build Coastguard Workercaching facilities.