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

Last change on this file since 5151 was 5151, checked in by lindanl, 3 years ago

Add NVPTX Arch to the framework. Fix directory bug in make check.

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