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

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

Add segment pipeline parallel strategy. Move ballot function to IDISA NVPTX.

File size: 975 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;
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.