source: icGREP/icgrep-devel/icgrep/pablo/pablo_toolchain.h @ 5202

Last change on this file since 5202 was 5202, checked in by nmedfort, 2 years ago

Initial work on adding types to PabloAST and mutable Var objects.

File size: 818 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 PABLO_TOOLCHAIN_H
8#define PABLO_TOOLCHAIN_H
9
10#include <pablo/function.h>
11#include <llvm/Support/CommandLine.h>
12
13namespace pablo {
14   
15enum PabloDebugFlags {
16    PrintOptimizedREcode, PrintCompiledCCcode, PrintCompiledREcode, DumpTrace, PrintUnloweredCode
17};
18
19enum PabloCompilationFlags {
20    DisableSimplification, EnableCodeMotion, 
21    EnableMultiplexing, EnableLowering, EnablePreDistribution, EnablePostDistribution, EnablePrePassScheduling
22};
23   
24const cl::OptionCategory * pablo_toolchain_flags();
25
26bool DebugOptionIsSet(PabloDebugFlags flag);
27
28void pablo_function_passes(PabloFunction * function);
29
30}
31#endif
Note: See TracBrowser for help on using the repository browser.