Ignore:
Timestamp:
Mar 1, 2017, 4:17:24 PM (2 years ago)
Author:
nmedfort
Message:

Progress on parenthesis matching example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep_engine.cpp

    r5348 r5353  
    466466    }
    467467#endif
    468     if (CPU_Only){
     468    if (CPU_Only) {
    469469        mainFn = cast<Function>(M->getOrInsertFunction("Main", resultTy, inputType, size_ty, size_ty, nullptr));
    470470        mainFn->setCallingConv(CallingConv::C);
     
    511511    if (CountOnly) {
    512512        icgrepK.generateKernel({&BasisBits}, {});
    513         if (pipelineParallel){
     513        if (pipelineParallel) {
    514514            generatePipelineParallel(iBuilder, {&mmapK, &s2pk, &icgrepK});
    515         } else if (segmentPipelineParallel){
     515        } else if (segmentPipelineParallel) {
    516516            generateSegmentParallelPipeline(iBuilder, {&mmapK, &s2pk, &icgrepK});
    517517        } else {
     
    540540            scanMatchK.setInitialArguments({iBuilder->CreateBitCast(inputStream, int8PtrTy), fileSize, fileIdx});
    541541           
    542             if (pipelineParallel){
    543                 generatePipelineParallel(iBuilder, {&mmapK, &s2pk, &icgrepK, linebreakK, &scanMatchK});
    544             } else if (segmentPipelineParallel){
    545                 generateSegmentParallelPipeline(iBuilder, {&mmapK, &s2pk, &icgrepK, linebreakK, &scanMatchK});
    546             }  else{
    547                 generatePipelineLoop(iBuilder, {&mmapK, &s2pk, &icgrepK, linebreakK, &scanMatchK});
    548             }
     542            if (pipelineParallel) {
     543                generatePipelineParallel(iBuilder, {&mmapK, &s2pk, &icgrepK, linebreakK, &scanMatchK});
     544            } else if (segmentPipelineParallel) {
     545                generateSegmentParallelPipeline(iBuilder, {&mmapK, &s2pk, &icgrepK, linebreakK, &scanMatchK});
     546            } else {
     547                generatePipelineLoop(iBuilder, {&mmapK, &s2pk, &icgrepK, linebreakK, &scanMatchK});
     548            }
    549549        }
    550550        iBuilder->CreateRetVoid();
Note: See TracChangeset for help on using the changeset viewer.