Ignore:
Timestamp:
May 10, 2017, 4:26:11 PM (2 years ago)
Author:
nmedfort
Message:

Large refactoring step. Removed IR generation code from Kernel (formally KernelBuilder?) and moved it into the new KernelBuilder? class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/source_kernel.h

    r5436 r5440  
    1717    bool moduleIDisSignature() const override { return true; }
    1818protected:
    19     void linkExternalMethods() override;
    20     void generateInitializeMethod() override;
    21     void generateDoSegmentMethod() override;
    22     void generateFinalizeMethod() override;
     19    void linkExternalMethods(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
     20    void generateInitializeMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
     21    void generateDoSegmentMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
     22    void generateFinalizeMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
    2323protected:
    2424    const unsigned          mSegmentBlocks;
     
    3333    bool moduleIDisSignature() const override { return true; }
    3434protected:
    35     void generateInitializeMethod() override;
    36     void generateDoSegmentMethod() override;
    37     void generateFinalizeMethod() override;
     35    void generateInitializeMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
     36    void generateDoSegmentMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
     37    void generateFinalizeMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
    3838private:
    3939    unsigned mSegmentBlocks;
     
    4646    bool moduleIDisSignature() const override { return true; }
    4747protected:
    48     void generateInitializeMethod() override;
    49     void generateDoSegmentMethod() override;
     48    void generateInitializeMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
     49    void generateDoSegmentMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
    5050private:
    5151    unsigned mSegmentBlocks;
Note: See TracChangeset for help on using the changeset viewer.