xo-jit: incorporate kaleidoscope jit for codegen

This commit is contained in:
Roland Conybeare 2024-06-15 13:17:14 -04:00
commit fa0104422f
5 changed files with 319 additions and 11 deletions

View 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

View 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 **/