Ignore:
Timestamp:
Mar 10, 2016, 4:10:02 PM (4 years ago)
Author:
nmedfort
Message:

Some fixes for threading and kernel builder.

File:
1 edited

Legend:

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

    r4967 r4968  
    1313
    1414
    15 typedef void (*main_fcn_T)(char * byte_data, int filesize, const char* filename, uint64_t finalLineUnterminated);
    16 
    1715namespace llvm { class raw_ostream; }
    1816
    1917class GrepEngine {
     18    typedef void (*GrepFunctionType)(char * byte_data, int filesize, const char* filename, uint64_t finalLineUnterminated);
    2019public:
    2120
    2221    GrepEngine() {}
     22
     23    ~GrepEngine();
    2324 
    2425    void grepCodeGen(std::string moduleName, re::RE * re_ast, bool isNameExpression = false);
     
    2728   
    2829    re::CC *  grepCodepoints();
    29 
    30     ~GrepEngine() {
    31       delete mEngine;
    32     }
    3330   
    3431private:
     
    3633    bool finalLineIsUnterminated(char * fileBuffer, int fileSize) const;
    3734
    38     main_fcn_T mMainFcn;
     35    GrepFunctionType mMainFcn;
    3936   
    4037    bool mIsNameExpression;
Note: See TracChangeset for help on using the changeset viewer.