Ignore:
Timestamp:
May 3, 2016, 5:53:12 PM (3 years ago)
Author:
xuedongx
Message:

If '-c', ignore the scanmatch kernel.

File:
1 edited

Legend:

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

    r5017 r5025  
    1717class GrepEngine {
    1818    typedef void (*GrepFunctionType)(char * byte_data, size_t filesize, const int fileIdx, uint64_t finalLineUnterminated);
     19    typedef int64_t (*GrepFunctionType_CountOnly)(char * byte_data, size_t filesize, const int fileIdx, uint64_t finalLineUnterminated);
    1920public:
    2021
     
    2324    ~GrepEngine();
    2425 
    25     void grepCodeGen(std::string moduleName, re::RE * re_ast, bool isNameExpression = false);
     26    void grepCodeGen(std::string moduleName, re::RE * re_ast, bool CountOnly, bool isNameExpression = false);
    2627   
    27     void doGrep(const std::string & fileName, const int fileIdx);
     28    void doGrep(const std::string & fileName, const int fileIdx, bool CountOnly, std::vector<int> & total_CountOnly);
    2829   
    2930    re::CC *  grepCodepoints();
     
    3435
    3536    GrepFunctionType mGrepFunction;
    36    
     37    GrepFunctionType_CountOnly mGrepFunction_CountOnly;
     38
    3739    bool mIsNameExpression;
    3840    llvm::ExecutionEngine * mEngine;
Note: See TracChangeset for help on using the changeset viewer.