Changeset 5590


Ignore:
Timestamp:
Aug 2, 2017, 1:15:58 PM (4 months ago)
Author:
xuedongx
Message:

bug fix and setName for kernel for future use

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

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep_engine.cpp

    r5585 r5590  
    346346        StreamSetBuffer * CharClasses = grepDriver->addBuffer(make_unique<CircularBuffer>(idb, idb->getStreamSetTy(charclasses[i].size()), segmentSize * bufferSegments));
    347347        kernel::Kernel * ccK = grepDriver->addKernelInstance(make_unique<kernel::CharClassesKernel>(idb, charclasses[i]));
     348        ccK->setName("cc" + std::to_string(i));
    348349        grepDriver->makeKernelCall(ccK, {BasisBits}, {CharClasses});
    349350        StreamSetBuffer * MatchResults = grepDriver->addBuffer(make_unique<CircularBuffer>(idb, idb->getStreamSetTy(1, 1), segmentSize * bufferSegments));
  • icGREP/icgrep-devel/icgrep/kernels/interface.h

    r5522 r5590  
    9393    }
    9494       
     95    void setName(std::string newName) { mKernelName = newName; }
     96
    9597    virtual bool isCachable() const = 0;
    9698
     
    195197    llvm::StructType *                      mKernelStateType;
    196198    unsigned                                mLookAheadPositions;
    197     const std::string                       mKernelName;
     199    std::string                             mKernelName;
    198200    std::vector<llvm::Value *>              mInitialArguments;
    199201    std::vector<Binding>                    mStreamSetInputs;
Note: See TracChangeset for help on using the changeset viewer.