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

fix index

Location:
icGREP/icgrep-devel/icgrep/kernels
Files:
4 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();
  • icGREP/icgrep-devel/icgrep/kernels/pipeline.h

    r5045 r5046  
    2828    PipelineBuilder(llvm::Module * m, IDISA::IDISA_Builder * b);
    2929
    30         ~PipelineBuilder();
     30    ~PipelineBuilder();
    3131
    32         void CreateKernels(pablo::PabloFunction * function, bool UTF_16, bool isNameExpression);
     32    void CreateKernels(pablo::PabloFunction * function, bool UTF_16, bool isNameExpression);
    3333    llvm::Function * ExecuteKernels(bool CountOnly, bool UTF_16);
    3434
  • icGREP/icgrep-devel/icgrep/kernels/s2p_kernel.cpp

    r5045 r5046  
    8080
    8181void generateS2P_16Kernel(Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder) {
    82         kBuilder->addInputStream(16, "unit_pack");
    83         for(unsigned i = 0; i < 16; i++) {
    84                 kBuilder->addOutputStream(1);
    85         }
    86         kBuilder->prepareFunction();
     82    kBuilder->addInputStream(16, "unit_pack");
     83    for(unsigned i = 0; i < 16; i++) {
     84            kBuilder->addOutputStream(1);
     85    }
     86    kBuilder->prepareFunction();
    8787
    8888    Value * ptr = kBuilder->getInputStream(0);
  • icGREP/icgrep-devel/icgrep/kernels/s2p_kernel.h

    r5045 r5046  
    1515
    1616    void generateS2PKernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
    17         void generateS2P_16Kernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
     17    void generateS2P_16Kernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
    1818    void generateS2P_idealKernel(llvm::Module *, IDISA::IDISA_Builder * iBuilder, KernelBuilder * kBuilder);
    1919
Note: See TracChangeset for help on using the changeset viewer.