Changeset 6155


Ignore:
Timestamp:
Sep 3, 2018, 2:34:31 PM (3 weeks ago)
Author:
nmedfort
Message:

Minor bug fix for wc

Location:
icGREP/icgrep-devel/icgrep
Files:
2 edited

Legend:

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

    r6067 r6155  
    400400, {Binding{b->getInt32Ty(), "fileDescriptor"}}
    401401// output scalars
    402 , {}
     402, {Binding{b->getSizeTy(), "fileItems"}}
    403403// internal scalars
    404 , {Binding{b->getIntNTy(codeUnitWidth)->getPointerTo(), "buffer"}
    405 ,  Binding{b->getSizeTy(), "fileItems"}})
     404, {Binding{b->getIntNTy(codeUnitWidth)->getPointerTo(), "buffer"}})
    406405, mCodeUnitWidth(codeUnitWidth)
    407406, mFileSizeFunction(nullptr) {
     
    436435// input scalar
    437436, {Binding{b->getInt8Ty(), "useMMap"}, Binding{b->getInt32Ty(), "fileDescriptor"}}
    438 , {}
     437// output scalars
     438, {Binding{b->getSizeTy(), "fileItems"}}
    439439// internal scalars
    440 , {Binding{b->getIntNTy(codeUnitWidth)->getPointerTo(), "buffer"},
    441    Binding{b->getSizeTy(), "fileItems"}})
     440, {Binding{b->getIntNTy(codeUnitWidth)->getPointerTo(), "buffer"}})
    442441, mCodeUnitWidth(codeUnitWidth)
    443442, mFileSizeFunction(nullptr) {
  • icGREP/icgrep-devel/icgrep/wc.cpp

    r6047 r6155  
    196196   
    197197    iBuilder->setKernel(mmapK);
    198     Value * const fileSize = iBuilder->getAccumulator("fileSize");
     198    Value * const fileSize = iBuilder->getAccumulator("fileItems");
    199199    iBuilder->setKernel(wck);
    200200    Value * const lineCount = iBuilder->getAccumulator("lineCount");
Note: See TracChangeset for help on using the changeset viewer.