blob: d6c232f2ceef84660e205ad4e9482352294ae77a [file] [log] [blame]
Karl Schimpf8d7abae2014-07-07 14:50:30 -07001//===- subzero/src/IceClFlags.h - Cl Flags for translation ------*- C++ -*-===//
2//
3// The Subzero Code Generator
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file declares command line flags controlling translation.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef SUBZERO_SRC_ICECLFLAGS_H
15#define SUBZERO_SRC_ICECLFLAGS_H
16
Karl Schimpf5ee234a2014-09-12 10:41:40 -070017#include "IceTypes.def"
18
Karl Schimpf8d7abae2014-07-07 14:50:30 -070019namespace Ice {
20
Karl Schimpf5ee234a2014-09-12 10:41:40 -070021// TODO(stichnot) Move more command line flags into ClFlags.
Karl Schimpf8d7abae2014-07-07 14:50:30 -070022class ClFlags {
23public:
24 ClFlags()
25 : DisableInternal(false), SubzeroTimingEnabled(false),
Jim Stichnoth989a7032014-08-08 10:13:44 -070026 DisableTranslation(false), DisableGlobals(false),
Jan Voung8acded02014-09-22 18:02:25 -070027 FunctionSections(false), UseIntegratedAssembler(false),
28 UseSandboxing(false), DumpStats(false), DefaultGlobalPrefix(""),
29 DefaultFunctionPrefix("") {}
Karl Schimpf8d7abae2014-07-07 14:50:30 -070030 bool DisableInternal;
31 bool SubzeroTimingEnabled;
32 bool DisableTranslation;
Jim Stichnoth206833c2014-08-07 10:58:05 -070033 bool DisableGlobals;
Jim Stichnoth989a7032014-08-08 10:13:44 -070034 bool FunctionSections;
Jan Voung8acded02014-09-22 18:02:25 -070035 bool UseIntegratedAssembler;
Jim Stichnothbfb03e52014-08-26 10:29:05 -070036 bool UseSandboxing;
Jim Stichnoth18735602014-09-16 19:59:35 -070037 bool DumpStats;
Karl Schimpf5ee234a2014-09-12 10:41:40 -070038 IceString DefaultGlobalPrefix;
39 IceString DefaultFunctionPrefix;
Karl Schimpf8d7abae2014-07-07 14:50:30 -070040};
Jim Stichnoth989a7032014-08-08 10:13:44 -070041
42} // end of namespace Ice
Karl Schimpf8d7abae2014-07-07 14:50:30 -070043
44#endif // SUBZERO_SRC_ICECLFLAGS_H