Ignore:
Timestamp:
Feb 14, 2017, 12:45:42 PM (2 years ago)
Author:
cameron
Message:

Simplify stream set access; better naming of access functions

File:
1 edited

Legend:

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

    r5310 r5317  
    2121    Value * codeUnitPack[packCount];
    2222    for (unsigned i = 0; i < packCount; i++) {
    23         Value * ptr = getInputStream("codeUnitStream", iBuilder->getInt32(0), iBuilder->getInt32(i));
    24         codeUnitPack[i] = iBuilder->CreateBlockAlignedLoad(ptr);
     23        codeUnitPack[i] = loadInputStreamPack("codeUnitStream", iBuilder->getInt32(0), iBuilder->getInt32(i));
    2524    }
    2625    for (unsigned j = 0; j < mCharClasses.size();  j++) {
     
    5655            theCCstream = iBuilder->simd_or(theCCstream, pack);
    5756        }
    58         Value * ptr = getOutputStream("ccStream", iBuilder->getInt32(j));
    59         iBuilder->CreateBlockAlignedStore(theCCstream, ptr);
     57        storeOutputStreamBlock("ccStream", iBuilder->getInt32(j), theCCstream);
    6058    }
    6159}
Note: See TracChangeset for help on using the changeset viewer.