Ignore:
Timestamp:
May 7, 2017, 4:34:48 PM (2 years ago)
Author:
nmedfort
Message:

Continued refactoring work. PabloKernel? now abstract base type with a 'generatePabloMethod' hook to generate Pablo code.

File:
1 edited

Legend:

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

    r5435 r5436  
    11#include "p2s_kernel.h"
    2 #include "IR_Gen/idisa_builder.h"  // for IDISA_Builder
    3 #include "llvm/IR/Constant.h"      // for Constant
    4 #include "llvm/IR/Constants.h"     // for ConstantInt
    5 #include "llvm/IR/DerivedTypes.h"  // for PointerType, VectorType
    6 #include "llvm/IR/Function.h"      // for Function, Function::arg_iterator
    7 #include <llvm/IR/Module.h>
     2//#include "llvm/IR/Constant.h"      // for Constant
     3//#include "llvm/IR/Constants.h"     // for ConstantInt
     4//#include "llvm/IR/DerivedTypes.h"  // for PointerType, VectorType
     5//#include "llvm/IR/Function.h"      // for Function, Function::arg_iterator
     6//#include <llvm/IR/Module.h>
    87#include <kernels/streamset.h>
     8#include <kernels/kernel_builder.h>
     9
    910namespace llvm { class Value; }
    1011
     
    146147}
    147148
    148 P2SKernel::P2SKernel(const std::unique_ptr<IDISA::IDISA_Builder> & iBuilder)
     149P2SKernel::P2SKernel(const std::unique_ptr<kernel::KernelBuilder> & iBuilder)
    149150: BlockOrientedKernel("p2s",
    150151              {Binding{iBuilder->getStreamSetTy(8, 1), "basisBits"}},
     
    153154}
    154155
    155 P2SKernelWithCompressedOutput::P2SKernelWithCompressedOutput(const std::unique_ptr<IDISA::IDISA_Builder> & iBuilder)
     156P2SKernelWithCompressedOutput::P2SKernelWithCompressedOutput(const std::unique_ptr<kernel::KernelBuilder> & iBuilder)
    156157: BlockOrientedKernel("p2s_compress",
    157158              {Binding{iBuilder->getStreamSetTy(8, 1), "basisBits"}, Binding{iBuilder->getStreamSetTy(1, 1), "deletionCounts"}},
     
    160161}
    161162
    162 P2S16Kernel::P2S16Kernel(const std::unique_ptr<IDISA::IDISA_Builder> & iBuilder)
     163P2S16Kernel::P2S16Kernel(const std::unique_ptr<kernel::KernelBuilder> & iBuilder)
    163164: BlockOrientedKernel("p2s_16",
    164165              {Binding{iBuilder->getStreamSetTy(16, 1), "basisBits"}},
     
    168169
    169170
    170 P2S16KernelWithCompressedOutput::P2S16KernelWithCompressedOutput(const std::unique_ptr<IDISA::IDISA_Builder> & b)
     171P2S16KernelWithCompressedOutput::P2S16KernelWithCompressedOutput(const std::unique_ptr<kernel::KernelBuilder> & b)
    171172: BlockOrientedKernel("p2s_16_compress",
    172173              {Binding{b->getStreamSetTy(16, 1), "basisBits"}, Binding{b->getStreamSetTy(1, 1), "deletionCounts"}},
Note: See TracChangeset for help on using the changeset viewer.