Ignore:
Timestamp:
Aug 1, 2014, 5:27:53 PM (5 years ago)
Author:
linmengl
Message:

seperate s2p_ideal from s2p.ll, since it won't compile on SSE2 machine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib_ir/CMakeLists.txt

    r3939 r3945  
    4848  DEPENDS s2p_optimized.bc)
    4949
     50# a little bit tricky here, on USE_AVX2, we need to append s2p_ideal.ll to s2p.ll
     51# in order to have function s2p_ideal
     52if (USE_AVX2)
     53  message("---- Concat s2p.ll with s2p_ideal.ll")
     54  add_custom_command(
     55    OUTPUT s2p.ll
     56    COMMAND cp ${PROJECT_SOURCE_DIR}/s2p.ll .
     57    COMMAND cat ${PROJECT_SOURCE_DIR}/s2p_ideal.ll >> s2p.ll
     58    DEPENDS ${PROJECT_SOURCE_DIR}/s2p.ll ${PROJECT_SOURCE_DIR}/s2p_ideal.ll)
     59
     60else (USE_AVX2)
     61  add_custom_command(
     62    OUTPUT s2p.ll
     63    COMMAND cp ${PROJECT_SOURCE_DIR}/s2p.ll .
     64    DEPENDS ${PROJECT_SOURCE_DIR}/s2p.ll)
     65
     66endif (USE_AVX2)
     67
    5068# compile s2p.ll, and make sure test_s2p depends on it.
    5169add_custom_command(
    5270  OUTPUT  s2p_optimized.o s2p_optimized.bc
    53   COMMAND ${LLVM_OPT} -O3 -std-compile-opts ${LLVM_SSE_FLAGS} ${PROJECT_SOURCE_DIR}/s2p.ll -o s2p_optimized.bc
     71  COMMAND ${LLVM_OPT} -O3 -std-compile-opts ${LLVM_SSE_FLAGS} s2p.ll -o s2p_optimized.bc
    5472  COMMAND ${LLVM_LLC} -O3 ${LLVM_SSE_FLAGS} -filetype=obj s2p_optimized.bc
    55   DEPENDS ${PROJECT_SOURCE_DIR}/s2p.ll)
     73  DEPENDS s2p.ll)
    5674
    5775add_test(
Note: See TracChangeset for help on using the changeset viewer.