Ignore:
Timestamp:
Aug 20, 2017, 10:19:39 PM (2 years ago)
Author:
cameron
Message:

Automatic expansion of dynamic buffers in pipeline

File:
1 edited

Legend:

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

    r5599 r5615  
    2626class Kernel : public KernelInterface {
    2727    friend class KernelBuilder;
     28public:
     29    enum class Port { Input, Output };
    2830protected:
    2931    using KernelMap = boost::container::flat_map<std::string, unsigned>;
    30     enum class Port { Input, Output };
    3132    using StreamPort = std::pair<Port, unsigned>;
    3233    using StreamMap = boost::container::flat_map<std::string, StreamPort>;
     
    8687    void bindPorts(const StreamSetBuffers & inputs, const StreamSetBuffers & outputs);
    8788
     89    StreamPort getStreamPort(const std::string & name) const;
     90   
    8891    llvm::Module * makeModule(const std::unique_ptr<KernelBuilder> & idb);
    8992
     
    189192
    190193    void callGenerateFinalizeMethod(const std::unique_ptr<KernelBuilder> & idb);
    191 
    192     StreamPort getStreamPort(const std::string & name) const;
    193194
    194195    const parabix::StreamSetBuffer * getInputStreamSetBuffer(const std::string & name) const {
     
    420421};
    421422
     423void applyOutputBufferExpansions(const std::unique_ptr<KernelBuilder> & kb,
     424                                 std::vector<llvm::Value *> inputAvailable,
     425                                 llvm::Value * doFinal);
     426   
     427   
    422428
    423429}
Note: See TracChangeset for help on using the changeset viewer.