Ignore:
Timestamp:
May 6, 2016, 3:28:07 PM (3 years ago)
Author:
cameron
Message:

Refactor: move grep-specific code out of toolchain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/CMakeLists.txt

    r5032 r5033  
    66# The version number.
    77set (icgrep_VERSION_MAJOR 1)
    8 set (icgrep_VERSION_MINOR 0)
     8set (icgrep_VERSION_MINOR 5)
    99
    1010option(ENABLE_MULTIPLEXING "Compiling the Multiplexing Module")
     
    5555SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DUSE_BOOST")
    5656
     57SET(IDISA_SRC IDISA/idisa_builder.cpp IDISA/idisa_avx_builder.cpp IDISA/idisa_i64_builder.cpp IDISA/idisa_sse_builder.cpp IDISA/idisa_target.cpp)
     58
    5759SET(PABLO_SRC pablo/pabloAST.cpp pablo/ps_if.cpp pablo/ps_while.cpp pablo/function.cpp pablo/codegenstate.cpp pablo/builder.cpp pablo/symbol_generator.cpp pablo/printer_pablos.cpp pablo/pablo_toolchain.cpp pablo/passes/flattenif.cpp)
    58 SET(PABLO_SRC ${PABLO_SRC} pablo/pablo_compiler.cpp pablo/carry_manager.cpp pablo/carry_data.cpp IDISA/idisa_builder.cpp IDISA/idisa_avx_builder.cpp IDISA/idisa_i64_builder.cpp IDISA/idisa_sse_builder.cpp IDISA/idisa_target.cpp)
     60SET(PABLO_SRC ${PABLO_SRC} pablo/pablo_compiler.cpp pablo/carry_manager.cpp pablo/carry_data.cpp )
    5961SET(PABLO_SRC ${PABLO_SRC} kernels/s2p_kernel.cpp kernels/kernel.cpp kernels/instance.cpp)
    6062SET(PABLO_SRC ${PABLO_SRC} pablo/analysis/pabloverifier.cpp)
     
    7173add_library(UCDlib UCD/unicode_set.cpp UCD/ucd_compiler.cpp UCD/PropertyObjects.cpp UCD/resolve_properties.cpp UCD/UnicodeNameData.cpp)
    7274
     75add_library(CodeGen object_cache.cpp util/ispc.cpp ${IDISA_SRC})
     76
    7377# add the executable
    74 target_link_libraries (PabloADT ${REQ_LLVM_LIBRARIES})
     78target_link_libraries (PabloADT CodeGen ${REQ_LLVM_LIBRARIES})
    7579target_link_libraries (CCADT PabloADT)
    7680target_link_libraries (UCDlib RegExpADT PabloADT CCADT)
     
    108112ENDIF()
    109113
    110 add_executable(icgrep icgrep.cpp toolchain.cpp grep_engine.cpp object_cache.cpp kernels/pipeline.cpp kernels/scanmatchgen.cpp ${PRECOMPILED_FILES})
    111 add_executable(casefold casefold.cpp kernels/p2s_kernel.cpp kernels/stdout_kernel.cpp kernels/casefold_pipeline.cpp)
    112 add_executable(u8u16 u8u16.cpp kernels/p2s_kernel.cpp kernels/stdout_kernel.cpp kernels/u8u16_pipeline.cpp kernels/deletion.cpp)
    113 add_executable(symtbl symboltable.cpp grep_engine.cpp kernels/pipeline.cpp kernels/scanmatchgen.cpp kernels/symboltablepipeline.cpp kernels/stdout_kernel.cpp toolchain.cpp grep_engine.cpp object_cache.cpp ${PRECOMPILED_FILES})
    114 add_executable(wc wc.cpp ${PRECOMPILED_FILES})
     114add_executable(icgrep icgrep.cpp toolchain.cpp grep_engine.cpp kernels/pipeline.cpp kernels/scanmatchgen.cpp ${PRECOMPILED_FILES})
     115add_executable(casefold casefold.cpp toolchain.cpp kernels/p2s_kernel.cpp kernels/stdout_kernel.cpp kernels/casefold_pipeline.cpp)
     116add_executable(u8u16 u8u16.cpp toolchain.cpp kernels/p2s_kernel.cpp kernels/stdout_kernel.cpp kernels/u8u16_pipeline.cpp kernels/deletion.cpp)
     117add_executable(symtbl symboltable.cpp toolchain.cpp kernels/symboltablepipeline.cpp kernels/stdout_kernel.cpp grep_engine.cpp kernels/pipeline.cpp kernels/scanmatchgen.cpp ${PRECOMPILED_FILES})
     118add_executable(wc wc.cpp toolchain.cpp)
    115119
    116120IF(ENABLE_PREGENERATED_UCD_FUNCTIONS)
     
    130134target_link_libraries(wc ${Boost_LIBRARIES})
    131135
    132 target_link_libraries (icgrep UCDlib PabloADT RegExpCompiler CCADT ${REQ_LLVM_LIBRARIES})
    133 target_link_libraries (symtbl UCDlib PabloADT RegExpCompiler CCADT ${REQ_LLVM_LIBRARIES})
    134 target_link_libraries (casefold UCDlib PabloADT RegExpCompiler CCADT ${REQ_LLVM_LIBRARIES})
    135 target_link_libraries (u8u16 UCDlib PabloADT RegExpCompiler CCADT ${REQ_LLVM_LIBRARIES})
    136 target_link_libraries (wc UCDlib PabloADT RegExpCompiler CCADT ${REQ_LLVM_LIBRARIES})
     136target_link_libraries (icgrep UCDlib PabloADT RegExpCompiler CCADT CodeGen ${REQ_LLVM_LIBRARIES})
     137target_link_libraries (symtbl UCDlib PabloADT RegExpCompiler CCADT CodeGen ${REQ_LLVM_LIBRARIES})
     138target_link_libraries (casefold UCDlib PabloADT RegExpCompiler CCADT CodeGen ${REQ_LLVM_LIBRARIES})
     139target_link_libraries (u8u16 UCDlib PabloADT RegExpCompiler CCADT CodeGen ${REQ_LLVM_LIBRARIES})
     140target_link_libraries (wc UCDlib PabloADT RegExpCompiler CCADT CodeGen ${REQ_LLVM_LIBRARIES})
    137141
    138142IF(ENABLE_MULTIPLEXING)
Note: See TracChangeset for help on using the changeset viewer.