Ignore:
Timestamp:
Mar 22, 2016, 5:14:05 PM (3 years ago)
Author:
nmedfort
Message:

First attempt at dynamic segment size intergration.

File:
1 edited

Legend:

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

    r4984 r4986  
    103103        finalLineUnterminated = 1;
    104104   
    105     mMainFcn(mFileBuffer, mFileSize, mFileName.c_str(), finalLineUnterminated);
     105    mGrepFunction(mFileBuffer, mFileSize, mFileName.c_str(), finalLineUnterminated);
    106106
    107107
     
    127127    pipelineBuilder.CreateKernels(function, isNameExpression);
    128128
    129     pipelineBuilder.ExecuteKernels();
     129    llvm::Function * grepIR = pipelineBuilder.ExecuteKernels();
    130130
    131     llvm::Function * main_IR = M->getFunction("Main");
    132131    mEngine = JIT_to_ExecutionEngine(M);
    133132   
     
    139138    delete idb;
    140139
    141     mMainFcn = reinterpret_cast<GrepFunctionType>(mEngine->getPointerToFunction(main_IR));
     140    mGrepFunction = reinterpret_cast<GrepFunctionType>(mEngine->getPointerToFunction(grepIR));
    142141}
    143142
     
    152151    if(finalLineIsUnterminated(mFileBuffer, mFileSize))
    153152        finalLineUnterminated = 1;   
    154     mMainFcn(mFileBuffer, mFileSize, mFileName.c_str(), finalLineUnterminated);
     153    mGrepFunction(mFileBuffer, mFileSize, mFileName.c_str(), finalLineUnterminated);
    155154
    156155    return getParsedCodePointSet();
Note: See TracChangeset for help on using the changeset viewer.