source: trunk/lib_ir/gen/CMakeLists.txt @ 3977

Last change on this file since 3977 was 3977, checked in by linmengl, 5 years ago

Create a template system to generate lowering logic for v64i2 and the test cases.

File size: 582 bytes
Line 
1include_directories(${PROJECT_SOURCE_DIR})
2
3add_executable(test_llc test_llc.cpp llc_func_optimized.o)
4
5add_custom_command(
6  OUTPUT llc_func_optimized.o llc_func_optimized.bc
7  COMMAND ${LLVM_OPT} -O3 ${LLVM_SSE_FLAGS} llc_func.ll -o llc_func_optimized.bc
8  COMMAND ${LLVM_LLC} -O3 ${LLVM_SSE_FLAGS} -filetype=obj llc_func_optimized.bc
9  DEPENDS llc_func.ll)
10
11add_custom_command(
12  OUTPUT llc_func.ll test_llc.cpp
13  COMMAND python ${CMAKE_CURRENT_SOURCE_DIR}/gen.py
14  DEPENDS llc_func.pytemplate.ll test_llc.pytemplate.cpp gen.py)
15
16add_test(
17  NAME ctest_llc
18  COMMAND ./test_llc)
Note: See TracBrowser for help on using the repository browser.