Changeset 5047


Ignore:
Timestamp:
Jun 11, 2016, 9:38:04 PM (3 years ago)
Author:
cameron
Message:

Kernel interfaces initial check-in

Location:
icGREP/icgrep-devel/icgrep
Files:
2 added
2 edited

Legend:

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

    r5045 r5047  
    4141# Let's suppose we want to build a JIT compiler with support for
    4242# binary code (no interpreter):
    43 llvm_map_components_to_libnames(REQ_LLVM_LIBRARIES mcjit native IRReader) # ipo
     43llvm_map_components_to_libnames(REQ_LLVM_LIBRARIES mcjit native IRReader Linker) # ipo
    4444
    4545message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION} in ${LLVM_ROOT_DIR}")
     
    5959SET(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)
    6060SET(PABLO_SRC ${PABLO_SRC} pablo/pablo_compiler.cpp pablo/carry_manager.cpp pablo/carry_data.cpp )
    61 SET(PABLO_SRC ${PABLO_SRC} kernels/s2p_kernel.cpp kernels/kernel.cpp kernels/instance.cpp)
     61SET(PABLO_SRC ${PABLO_SRC} kernels/s2p_kernel.cpp kernels/kernel.cpp kernels/instance.cpp kernels/streamset.cpp kernels/interface.cpp)
    6262SET(PABLO_SRC ${PABLO_SRC} pablo/analysis/pabloverifier.cpp)
    6363SET(PABLO_SRC ${PABLO_SRC} pablo/optimizers/pablo_simplifier.cpp pablo/optimizers/codemotionpass.cpp)
  • icGREP/icgrep-devel/icgrep/kernels/streamset.cpp

    r5044 r5047  
    3434    if (mSegmentSize == 0) return
    3535        iBuilder->CreateGEP(getStreamSetBlockType(), mStreamSetBufferPtr, {blockNo});
    36     Value * offset = iBuilder->CreateURem(blockNo, iBuilder->getInt32(mSegmentSize));
     36    Value * offset = iBuilder->CreateURem(blockNo, iBuilder->getInt64(mSegmentSize));
    3737    return iBuilder->CreateGEP(getStreamSetBlockType(), mStreamSetBufferPtr, {offset});
    3838}
Note: See TracChangeset for help on using the changeset viewer.