Ignore:
Timestamp:
May 6, 2016, 3:28:07 PM (3 years ago)
Author:
cameron
Message:

Refactor: move grep-specific code out of toolchain

File:
1 edited

Legend:

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

    r5025 r5033  
    88#define TOOLCHAIN_H
    99
    10 #include <re/re_re.h>
    1110#include <llvm/IR/Module.h>
    1211#include <llvm/ExecutionEngine/ExecutionEngine.h>
     12#include <llvm/Support/CommandLine.h>
    1313
     14namespace codegen {
     15const llvm::cl::OptionCategory * codegen_flags();
    1416
    15 Module * grepIRGen(std::string moduleName, re::RE * re_ast, bool isNameExpression = false);
     17// Command Parameters
     18extern char OptLevel;  // set from command line
     19extern int BlockSize;  // set from command line
     20extern int SegmentSize;  // set from command line
    1621
    17 ExecutionEngine * JIT_to_ExecutionEngine (Module * m);
     22}
    1823
    19 void icgrep_Linking(Module * m, ExecutionEngine * e);
     24llvm::ExecutionEngine * JIT_to_ExecutionEngine (llvm::Module * m);
    2025
    21 re::CC * getParsedCodePointSet();
    22 void setParsedCodePointSet();
    23 
    24 void initResult(std::vector<std::string> filenames);
    25 void PrintResult(bool CountOnly, std::vector<int> & total_CountOnly);
     26void ApplyObjectCache(llvm::ExecutionEngine * e);
    2627
    2728#endif
Note: See TracChangeset for help on using the changeset viewer.