Ignore:
Timestamp:
Apr 8, 2017, 12:56:07 PM (2 years ago)
Author:
nmedfort
Message:

Bug fixes for object cache. Minor optimization of FunctionTypeBuilder?.

File:
1 edited

Legend:

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

    r5398 r5399  
    3030    using StreamPort = std::pair<Port, unsigned>;
    3131    using StreamMap = boost::container::flat_map<std::string, StreamPort>;
     32    using StreamSetBuffers = std::vector<parabix::StreamSetBuffer *>;
    3233public:
    3334   
     
    6566    // Create a module stub for the kernel, populated only with its Module ID.     
    6667    //
    67     std::unique_ptr<llvm::Module> createKernelStub();
     68    std::unique_ptr<llvm::Module> createKernelStub(const StreamSetBuffers & inputs, const StreamSetBuffers & outputs);
    6869   
    6970    // Create a module for the kernel, including the kernel state type declaration and
    7071    // the full implementation of all required methods.     
    7172    //
    72     std::unique_ptr<llvm::Module> createKernelModule(const std::vector<parabix::StreamSetBuffer *> & inputs, const std::vector<parabix::StreamSetBuffer *> & outputs);
    73    
    74     void setCallParameters(const std::vector<parabix::StreamSetBuffer *> & inputs, const std::vector<parabix::StreamSetBuffer *> & outputs);
     73    std::unique_ptr<llvm::Module> createKernelModule(const StreamSetBuffers & inputs, const StreamSetBuffers & outputs);
     74   
     75    void setCallParameters(const StreamSetBuffers & inputs, const StreamSetBuffers & outputs);
    7576
    7677    // Generate the Kernel to the current module (iBuilder->getModule()).
    7778    void generateKernel();
    78     void generateKernel(const std::vector<parabix::StreamSetBuffer *> & inputs, const std::vector<parabix::StreamSetBuffer *> & outputs);
     79    void generateKernel(const StreamSetBuffers & inputs, const StreamSetBuffers & outputs);
    7980   
    8081    void createInstance() override;
Note: See TracChangeset for help on using the changeset viewer.