Ignore:
Timestamp:
Jun 9, 2016, 4:15:48 PM (3 years ago)
Author:
xuedongx
Message:

fix index

File:
1 edited

Legend:

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

    r5045 r5046  
    4040    mICgrepKernel = new KernelBuilder(iBuilder, "icgrep", codegen::SegmentSize);
    4141    mScanMatchKernel = new KernelBuilder(iBuilder, "scanMatch", codegen::SegmentSize);
    42         if (UTF_16) {
    43                 generateS2P_16Kernel(mMod, iBuilder, mS2PKernel);
    44         }
    45         else {
    46                 generateS2PKernel(mMod, iBuilder, mS2PKernel);
    47         }
     42    if (UTF_16) {
     43        generateS2P_16Kernel(mMod, iBuilder, mS2PKernel);
     44    }
     45    else {
     46        generateS2PKernel(mMod, iBuilder, mS2PKernel);
     47    }
    4848    generateScanMatch(mMod, iBuilder, 64, mScanMatchKernel, isNameExpression);
    4949    pablo_function_passes(function);
     
    208208
    209209    Value * remainingByte = iBuilder->CreateZExt(remainingBytes, iBuilder->getIntNTy(mBlockSize));
    210         Value * remainingUnit = iBuilder->CreateLShr(remainingByte, ConstantInt::get(iBuilder->getIntNTy(mBlockSize), 1));
     210    Value * remainingUnit = iBuilder->CreateLShr(remainingByte, ConstantInt::get(iBuilder->getIntNTy(mBlockSize), 1));
    211211    Value * EOFmark = iBuilder->CreateShl(ConstantInt::get(iBuilder->getIntNTy(mBlockSize), 1), UTF_16 ? remainingUnit : remainingByte);
    212         icGrepInstance->setInternalState("EOFmark", iBuilder->CreateBitCast(EOFmark, mBitBlockType));
     212    icGrepInstance->setInternalState("EOFmark", iBuilder->CreateBitCast(EOFmark, mBitBlockType));
    213213
    214214    icGrepInstance->CreateDoBlockCall();
Note: See TracChangeset for help on using the changeset viewer.