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

Last change on this file since 5272 was 5267, checked in by nmedfort, 3 years ago

Code clean-up. Removed Pablo Call, SetIthBit? and Prototype.

File size: 992 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
10namespace llvm { class ExecutionEngine; }
11namespace llvm { class Module; }
12namespace llvm { namespace cl { class OptionCategory; } }
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
21extern int BufferSegments;
22extern int ThreadNum;
23#ifdef CUDA_ENABLED
24extern bool NVPTX;
25#endif
26}
27
28#ifdef CUDA_ENABLED
29void setNVPTXOption();
30void Compile2PTX (llvm::Module * m, std::string IRFilename, std::string PTXFilename);
31#endif
32
33bool AVX2_available();
34
35llvm::ExecutionEngine * JIT_to_ExecutionEngine (llvm::Module * m);
36
37void ApplyObjectCache(llvm::ExecutionEngine * e);
38
39#endif
Note: See TracBrowser for help on using the repository browser.