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

Last change on this file since 5127 was 5108, checked in by cameron, 3 years ago

AVX2 checking via getHostCPUFeatures

File size: 744 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
24bool AVX2_available();
25
26llvm::ExecutionEngine * JIT_to_ExecutionEngine (llvm::Module * m);
27
28void ApplyObjectCache(llvm::ExecutionEngine * e);
29
30#endif
Note: See TracBrowser for help on using the repository browser.