Ignore:
Timestamp:
Oct 1, 2016, 12:03:14 PM (3 years ago)
Author:
cameron
Message:

Kernel/pipeline progress: sychronize with logicalSegmentNo

File:
1 edited

Legend:

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

    r5165 r5174  
    1616
    1717const std::string blockNoScalar = "blockNo";
     18const std::string logicalSegmentNoScalar = "logicalSegNo";
     19const std::string processedItemCount = "processedItemCount";
     20const std::string producedItemCount = "producedItemCount";
     21const std::string terminationSignal = "terminationSignal";
    1822const std::string basePtrSuffix = "_basePtr";
    1923const std::string blkMaskSuffix = "_blkMask";
     
    4751
    4852    Value * getBlockNo(Value * self);
    49 
     53    virtual llvm::Value * getLogicalSegmentNo(llvm::Value * kernelInstance) override;
     54    virtual llvm::Value * getProcessedItemCount(llvm::Value * kernelInstance) override;
     55    virtual llvm::Value * getProducedItemCount(llvm::Value * kernelInstance) override;
     56    virtual llvm::Value * getTerminationSignal(llvm::Value * kernelInstance) override;
     57   
    5058   
    5159protected:
     
    6674    // doBlock calls.
    6775    virtual void generateDoBlockMethod() = 0;
    68    
     76    virtual void generateDoBlockLogic(Value * self, Value * blockNo);
     77
    6978    // Each kernel builder subtypre must also specify the logic for processing the
    7079    // final block of stream data, if there is any special processing required
     
    106115
    107116    void setBlockNo(Value * self, Value * newFieldVal);
    108        
     117    virtual void setLogicalSegmentNo(llvm::Value * self, Value * newFieldVal);
     118    virtual void setProcessedItemCount(llvm::Value * self, Value * newFieldVal);
     119    virtual void setProducedItemCount(llvm::Value * self, Value * newFieldVal);
     120    virtual void setTerminationSignal(llvm::Value * self, Value * newFieldVal);
     121   
     122   
    109123protected:
    110124
Note: See TracChangeset for help on using the changeset viewer.