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

    r5435 r5436  
    109109protected:
    110110
    111     KernelBuilder(llvm::Module * const module, unsigned registerWidth, unsigned blockWidth, unsigned stride)
    112     : IDISA::IDISA_Builder(module, registerWidth, blockWidth, stride) {
     111    KernelBuilder(llvm::LLVMContext & C, unsigned registerWidth, unsigned blockWidth, unsigned stride)
     112    : IDISA::IDISA_Builder(C, registerWidth, blockWidth, stride) {
    113113
    114114    }
     
    126126};
    127127
    128 template <class IBuilder>
    129 class KernelBuilderImpl final : public KernelBuilder, public IBuilder {
     128template <class SpecifiedArchitectureBuilder>
     129class KernelBuilderImpl final : public KernelBuilder, public SpecifiedArchitectureBuilder {
    130130public:
    131     KernelBuilderImpl(llvm::Module * const module, unsigned registerWidth, unsigned blockWidth, unsigned stride)
    132     : IDISA::IDISA_Builder(module, registerWidth, blockWidth, stride)
    133     , KernelBuilder(module, registerWidth, blockWidth, stride)
    134     , IBuilder(module, registerWidth, blockWidth, stride) {
     131    KernelBuilderImpl(llvm::LLVMContext & C, unsigned registerWidth, unsigned blockWidth, unsigned stride)
     132    : IDISA::IDISA_Builder(C, registerWidth, blockWidth, stride)
     133    , KernelBuilder(C, registerWidth, blockWidth, stride)
     134    , SpecifiedArchitectureBuilder(C, registerWidth, blockWidth, stride) {
    135135
    136136    }
Note: See TracChangeset for help on using the changeset viewer.