Changeset 5070 for icGREP/icgrep-devel


Ignore:
Timestamp:
Jun 22, 2016, 7:48:23 AM (3 years ago)
Author:
cameron
Message:

Further wc clean-up.

File:
1 edited

Legend:

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

    r5069 r5070  
    138138
    139139
    140 
    141 class wcPipelineBuilder {
    142 public:
    143     wcPipelineBuilder(llvm::Module * m, IDISA::IDISA_Builder * b);
    144    
    145     ~wcPipelineBuilder();
    146    
    147     llvm::Function * ExecuteKernels(pablo::PabloFunction * function);
    148    
    149 private:
    150     llvm::Module *                      mMod;
    151     IDISA::IDISA_Builder *              iBuilder;
    152     llvm::Type *                        mBitBlockType;
    153     int                                 mBlockSize;
    154 };
    155 
    156 
    157 using namespace pablo;
    158 using namespace kernel;
    159 
    160 
    161 Function * wcPipeline(Module * mMod, IDISA::IDISA_Builder * iBuilder, PabloFunction * function) {
     140Function * wcPipeline(Module * mMod, IDISA::IDISA_Builder * iBuilder, pablo::PabloFunction * function) {
    162141    Type * mBitBlockType = iBuilder->getBitBlockType();
    163142    unsigned mBlockSize = iBuilder->getBitBlockWidth();
     
    166145   
    167146    pablo_function_passes(function);
    168     PabloKernel  wck(iBuilder, "wc", function, {"lineCount", "wordCount", "charCount"});
     147    pablo::PabloKernel  wck(iBuilder, "wc", function, {"lineCount", "wordCount", "charCount"});
    169148    wck.prepareKernel();
    170149    wck.generateKernel();
Note: See TracChangeset for help on using the changeset viewer.