Ignore:
Timestamp:
Jan 14, 2017, 3:49:56 PM (2 years ago)
Author:
nmedfort
Message:

Changes working towards simplifying accessing stream elements + some modifications to simplify include / forward declarations within the CodeGen? library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/pipeline.cpp

    r5258 r5260  
    1414
    1515using namespace kernel;
     16using namespace parabix;
     17using namespace llvm;
     18
     19#if 0
    1620
    1721using BufferMap = std::unordered_map<StreamSetBuffer *, std::pair<KernelBuilder *, unsigned>>;
    1822
    19 
    20 static void createStreamBufferMap(BufferMap & bufferMap, std::vector<KernelBuilder *> kernels) {
     23static void createStreamBufferMap(BufferMap & bufferMap, const std::vector<KernelBuilder *> & kernels) {
    2124    for (auto k: kernels) {
    2225        auto outputSets = k->getStreamSetOutputBuffers();
     
    5760    return iBuilder->CreateUDiv(itemsToDo, iBuilder->getSize(iBuilder->getStride()));
    5861}
    59                                    
    60 
    61 
    62 Function * generateSegmentParallelPipelineThreadFunction(std::string name, IDISA::IDISA_Builder * iBuilder, std::vector<KernelBuilder *> kernels, Type * sharedStructType, int id) {
     62
     63#endif
     64
     65Function * generateSegmentParallelPipelineThreadFunction(std::string name, IDISA::IDISA_Builder * iBuilder, const std::vector<KernelBuilder *> & kernels, Type * sharedStructType, int id) {
    6366
    6467    Module * m = iBuilder->getModule();
     
    176179
    177180
    178 void generateSegmentParallelPipeline(IDISA::IDISA_Builder * iBuilder, std::vector<KernelBuilder *> kernels) {
     181void generateSegmentParallelPipeline(IDISA::IDISA_Builder * iBuilder, const std::vector<KernelBuilder *> & kernels) {
    179182   
    180183    unsigned threadNum = codegen::ThreadNum;
     
    231234}
    232235
    233 void generatePipelineParallel(IDISA::IDISA_Builder * iBuilder, std::vector<KernelBuilder *> kernels) {
     236void generatePipelineParallel(IDISA::IDISA_Builder * iBuilder, const std::vector<KernelBuilder *> & kernels) {
    234237 
    235238    Type * pthreadTy = iBuilder->getSizeTy();
     
    271274
    272275
    273 void generatePipelineLoop(IDISA::IDISA_Builder * iBuilder, std::vector<KernelBuilder *> kernels) {
     276void generatePipelineLoop(IDISA::IDISA_Builder * iBuilder, const std::vector<KernelBuilder *> & kernels) {
    274277    for (auto k : kernels) k->createInstance();
    275278    //BufferMap bufferMap;
Note: See TracChangeset for help on using the changeset viewer.