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

    r5436 r5440  
    1212namespace kernel {
    1313
    14 class PrintableBits : public BlockOrientedKernel {
     14class PrintableBits final : public BlockOrientedKernel {
    1515public:
    1616    PrintableBits(const std::unique_ptr<kernel::KernelBuilder> & builder);
    17     virtual ~PrintableBits() {}
    1817private:
    19     void generateDoBlockMethod() override;
     18    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
    2019};
    2120
    22 class SelectStream : public BlockOrientedKernel {
     21class SelectStream final : public BlockOrientedKernel {
    2322public:
    2423    SelectStream(const std::unique_ptr<kernel::KernelBuilder> & builder, unsigned sizeInputStreamSet, unsigned streamIndex);
    25     virtual ~SelectStream() {}
    2624private:
    27     void generateDoBlockMethod() override;
     25    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
    2826    unsigned mSizeInputStreamSet;
    2927    unsigned mStreamIndex;
    3028};
    3129
    32 class PrintStreamSet : public BlockOrientedKernel {
     30class PrintStreamSet final : public BlockOrientedKernel {
    3331public:
    3432    PrintStreamSet(const std::unique_ptr<kernel::KernelBuilder> & builder, std::vector<std::string> && names, const unsigned minWidth = 16);
    35     virtual ~PrintStreamSet() {}
    3633private:
    37     void generateDoBlockMethod() override;
     34    void generateDoBlockMethod(const std::unique_ptr<kernel::KernelBuilder> & iBuilder) override;
    3835private:
    3936    const std::vector<std::string> mNames;
Note: See TracChangeset for help on using the changeset viewer.