diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-25 08:49:05 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-25 08:49:05 +0000 |
commit | 0076d94466748209a5b2b81b9b732b1eb309d8db (patch) | |
tree | abddb0fe69a2837a6e456a37923603e865f83b8c /llvm/test/CodeGen/PowerPC/vec_shift.ll | |
parent | a72e1af8bf7f79e768603ebec79776fba0424ef1 (diff) | |
download | bcm5719-llvm-0076d94466748209a5b2b81b9b732b1eb309d8db.tar.gz bcm5719-llvm-0076d94466748209a5b2b81b9b732b1eb309d8db.zip |
Add a minimal C interpreter example.
- Demonstrates how to build a standalone tool which loads source code using the
Driver and Frontend libraries, and then uses CodeGen and the JIT to actually
execute the code.
- Still more complicated than it should be, but hey its only 153 lines. :)
--
ddunbar@ozzy:tmp$ cat hello.c
#include <stdio.h>
int main() { printf("hello world\n"); return 0; }
ddunbar@ozzy:tmp$ clang-interpreter hello.c
hello world
--
llvm-svn: 97133
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/vec_shift.ll')
0 files changed, 0 insertions, 0 deletions