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/source_kernel.h

    r5435 r5436  
    33
    44#include "kernel.h"
    5 namespace IDISA { class IDISA_Builder; }
     5namespace kernel { class KernelBuilder; }
    66
    77namespace kernel {
     
    1313class MMapSourceKernel final : public SegmentOrientedKernel {
    1414public:
    15     MMapSourceKernel(const std::unique_ptr<IDISA::IDISA_Builder> & iBuilder, unsigned blocksPerSegment = 1, unsigned codeUnitWidth = 8);
     15    MMapSourceKernel(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, unsigned blocksPerSegment = 1, unsigned codeUnitWidth = 8);
    1616    bool isCachable() const override { return true; }
    1717    bool moduleIDisSignature() const override { return true; }
     
    2929class ReadSourceKernel final : public SegmentOrientedKernel {
    3030public:
    31     ReadSourceKernel(const std::unique_ptr<IDISA::IDISA_Builder> & iBuilder, unsigned blocksPerSegment = 1, unsigned codeUnitWidth = 8);
     31    ReadSourceKernel(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, unsigned blocksPerSegment = 1, unsigned codeUnitWidth = 8);
    3232    bool isCachable() const override { return true; }
    3333    bool moduleIDisSignature() const override { return true; }
     
    4343class MemorySourceKernel final : public SegmentOrientedKernel {
    4444public:
    45     MemorySourceKernel(const std::unique_ptr<IDISA::IDISA_Builder> & iBuilder, llvm::Type * type, unsigned blocksPerSegment = 1, unsigned codeUnitWidth = 8);
     45    MemorySourceKernel(const std::unique_ptr<kernel::KernelBuilder> & iBuilder, llvm::Type * type, unsigned blocksPerSegment = 1, unsigned codeUnitWidth = 8);
    4646    bool moduleIDisSignature() const override { return true; }
    4747protected:
Note: See TracChangeset for help on using the changeset viewer.