xo-jit: incorporate kaleidoscope jit for codegen
This commit is contained in:
parent
0c7b1e03d7
commit
fa0104422f
5 changed files with 319 additions and 11 deletions
12
example/ex_kaleidoscope4/CMakeLists.txt
Normal file
12
example/ex_kaleidoscope4/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# xo-jit/example/ex1/CMakeLists.txt
|
||||
|
||||
set(SELF_EXE xo_kaleidoscope4)
|
||||
set(SELF_SRCS ex_kaleidoscope4.cpp)
|
||||
|
||||
if (XO_ENABLE_EXAMPLES)
|
||||
xo_add_executable(${SELF_EXE} ${SELF_SRCS})
|
||||
xo_self_dependency(${SELF_EXE} xo_jit)
|
||||
#xo_dependency(${SELF_EXE} xo_expression)
|
||||
endif()
|
||||
|
||||
# end CMakeLists.txt
|
||||
16
example/ex_kaleidoscope4/ex_kaleidoscope4.cpp
Normal file
16
example/ex_kaleidoscope4/ex_kaleidoscope4.cpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/** ex_kaleidoscop4.cpp **/
|
||||
|
||||
#include "xo/jit/KaleidoscopeJit.hpp"
|
||||
#include <iostream>
|
||||
|
||||
int
|
||||
main() {
|
||||
using std::cerr;
|
||||
using std::endl;
|
||||
|
||||
auto jit = xo::jit::KaleidoscopeJIT::Create();
|
||||
|
||||
cerr << "created kaleidoscope jit successfully" << endl;
|
||||
}
|
||||
|
||||
/** end ex_kaleidoscope4.cpp **/
|
||||
Loading…
Add table
Add a link
Reference in a new issue