source: icGREP/icgrep-devel/icgrep/toolchain.h @ 5063

Last change on this file since 5063 was 5033, checked in by cameron, 3 years ago

Refactor: move grep-specific code out of toolchain

File size: 720 bytes
Line 
1/*
2 *  Copyright (c) 2015 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef TOOLCHAIN_H
8#define TOOLCHAIN_H
9
10#include <llvm/IR/Module.h>
11#include <llvm/ExecutionEngine/ExecutionEngine.h>
12#include <llvm/Support/CommandLine.h>
13
14namespace codegen {
15const llvm::cl::OptionCategory * codegen_flags();
16
17// Command Parameters
18extern char OptLevel;  // set from command line
19extern int BlockSize;  // set from command line
20extern int SegmentSize;  // set from command line
21
22}
23
24llvm::ExecutionEngine * JIT_to_ExecutionEngine (llvm::Module * m);
25
26void ApplyObjectCache(llvm::ExecutionEngine * e);
27
28#endif
Note: See TracBrowser for help on using the repository browser.