Ignore:
Timestamp:
Feb 10, 2017, 1:48:34 PM (2 years ago)
Author:
nmedfort
Message:

Adjusted pablo compiler to use getInputStream and getOutputStream when accessing packed stream fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_kernel.h

    r5300 r5310  
    4646    }
    4747
    48     PabloKernel(IDISA::IDISA_Builder * builder, std::string kernelName);
    49    
    5048    PabloKernel(IDISA::IDISA_Builder * builder, std::string kernelName,                     
    51                     std::vector<Binding> && stream_inputs,
    52                     std::vector<Binding> && stream_outputs,
    53                     std::vector<Binding> && scalar_outputs);
     49                std::vector<Binding> stream_inputs = {},
     50                std::vector<Binding> stream_outputs = {},
     51                std::vector<Binding> scalar_parameters = {},
     52                std::vector<Binding> scalar_outputs = {});
    5453
    5554    virtual ~PabloKernel();
     
    6968    }
    7069   
    71     Var * getInputSet(std::string inputSetName);
     70    Var * getInputStreamVar(const std::string & inputSetName);
    7271
    7372    Var * getInput(const unsigned index) {
     
    8584    }
    8685   
    87     Var * getOutputSet(std::string inputSetName);
     86    Var * getOutputStreamVar(const std::string & inputSetName);
    8887   
    89     Var * getScalarOutput(std::string outputName);
     88    Var * getOutputScalarVar(const std::string & outputName);
    9089
    9190    Var * getOutput(const unsigned index) {
     
    119118    inline SymbolGenerator * getSymbolTable() const {
    120119        return mSymbolTable;
     120    }
     121
     122    void * operator new (std::size_t size) noexcept {
     123        return std::malloc(size);
    121124    }
    122125
Note: See TracChangeset for help on using the changeset viewer.