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

    r5435 r5436  
    1212
    1313namespace IDISA { class IDISA_Builder; }
     14namespace kernel { class KernelBuilder; }
    1415
    1516// Processing rate attributes are required for all stream set bindings for a kernel.
     
    137138        mInitialArguments.swap(args);
    138139    }
     140
    139141    llvm::Value * getInstance() const {
    140142        return mKernelInstance;
     
    149151    }
    150152
    151     IDISA::IDISA_Builder * getBuilder() const {
     153    kernel::KernelBuilder * getBuilder() const {
    152154        return iBuilder;
    153155    }
    154156
    155     void setBuilder(IDISA::IDISA_Builder * const builder) {
    156         iBuilder = builder;
     157    void setBuilder(const std::unique_ptr<kernel::KernelBuilder> & builder) {
     158        iBuilder = builder.get();
    157159    }
    158160
     
    210212protected:
    211213   
    212     IDISA::IDISA_Builder *                  iBuilder;
     214    kernel::KernelBuilder *                 iBuilder;
    213215    llvm::Module *                          mModule;
    214216
Note: See TracChangeset for help on using the changeset viewer.