Changeset 5437 for icGREP


Ignore:
Timestamp:
May 7, 2017, 6:10:55 PM (2 years ago)
Author:
nmedfort
Message:

Minor correction to prevent editd from caching the pattern kernel.

Location:
icGREP/icgrep-devel/icgrep
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/editd/editd.cpp

    r5436 r5437  
    161161public:
    162162    PatternKernel(const std::unique_ptr<kernel::KernelBuilder> & b, const std::vector<std::string> & patterns);
    163     bool isCachable() const override { return true; }
    164163protected:
    165164    void generatePabloMethod() override;
     
    244243    PreprocessKernel(const std::unique_ptr<kernel::KernelBuilder> & b);
    245244    bool isCachable() const override { return true; }
     245    bool moduleIDisSignature() const override { return true; }
    246246protected:
    247247    void generatePabloMethod() override;
  • icGREP/icgrep-devel/icgrep/pablo/pablo_kernel.h

    r5436 r5437  
    4444        return false;
    4545    }
    46 
    47     PabloKernel(const std::unique_ptr<kernel::KernelBuilder> & builder, std::string kernelName,
    48                 std::vector<Binding> stream_inputs = {},
    49                 std::vector<Binding> stream_outputs = {},
    50                 std::vector<Binding> scalar_parameters = {},
    51                 std::vector<Binding> scalar_outputs = {});
    5246
    5347    virtual ~PabloKernel();
     
    123117    }
    124118
     119    String * makeName(const llvm::StringRef & prefix) const;
     120
     121    Integer * getInteger(const int64_t value) const;
     122
    125123protected:
     124
     125    PabloKernel(const std::unique_ptr<kernel::KernelBuilder> & builder, std::string kernelName,
     126                std::vector<Binding> stream_inputs = {},
     127                std::vector<Binding> stream_outputs = {},
     128                std::vector<Binding> scalar_parameters = {},
     129                std::vector<Binding> scalar_outputs = {});
    126130
    127131    virtual void generatePabloMethod() = 0;
    128132
    129     String * makeName(const llvm::StringRef & prefix) const;
    130 
    131     Integer * getInteger(const int64_t value) const;
     133private:
    132134
    133135    // A custom method for preparing kernel declarations is needed,
Note: See TracChangeset for help on using the changeset viewer.