Ignore:
Timestamp:
Jan 16, 2017, 9:55:26 AM (9 months ago)
Author:
cameron
Message:

Move responsibility for ProducedItemCount? into doSegment unless overridden

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/radix64.cpp

    r5260 r5261  
    4242// a continous buffer for the full segment (number of blocks).
    4343
     44   
     45expand3_4Kernel::expand3_4Kernel(IDISA::IDISA_Builder * iBuilder) :
     46    KernelBuilder(iBuilder, "expand3_4",
     47                  {Binding{iBuilder->getStreamSetTy(1, 8), "sourceStream"}},
     48                  {Binding{iBuilder->getStreamSetTy(1, 8), "expandedStream"}},
     49                  {}, {}, {}) {
     50        setDoBlockUpdatesProducedItemCountsAttribute(true);
     51    }
     52   
     53   
    4454void expand3_4Kernel::generateDoSegmentMethod() const {
    4555    IDISA::IDISA_Builder::InsertPoint savePoint = iBuilder->saveIP();
     
    465475}
    466476
     477   
     478radix64Kernel::radix64Kernel(IDISA::IDISA_Builder * iBuilder) :
     479    KernelBuilder(iBuilder, "radix64",
     480                  {Binding{iBuilder->getStreamSetTy(1, 8), "expandedStream"}},
     481                  {Binding{iBuilder->getStreamSetTy(1, 8), "radix64stream"}},
     482                  {}, {}, {}) {
     483        setDoBlockUpdatesProducedItemCountsAttribute(true);
     484}
     485   
    467486void radix64Kernel::generateDoBlockMethod() const {
    468487    auto savePoint = iBuilder->saveIP();
     
    481500}
    482501
     502base64Kernel::base64Kernel(IDISA::IDISA_Builder * iBuilder) :
     503    KernelBuilder(iBuilder, "base64",
     504                  {Binding{iBuilder->getStreamSetTy(1, 8), "radix64stream"}},
     505                  {Binding{iBuilder->getStreamSetTy(1, 8), "base64stream"}},
     506                  {}, {}, {}) {
     507        setDoBlockUpdatesProducedItemCountsAttribute(true);
     508    }
     509   
    483510
    484511void base64Kernel::generateDoBlockLogic(Value * self, Value * blockNo) const {       
Note: See TracChangeset for help on using the changeset viewer.