blob: eaf272bb550057af3c47b9cd6231dc2b79fdfff1 [file] [log] [blame]
Andreas Gampe0b9203e2015-01-22 20:39:27 -08001/*
2 * Copyright (C) 2015 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef ART_COMPILER_DEX_DEX_FLAGS_H_
18#define ART_COMPILER_DEX_DEX_FLAGS_H_
19
20namespace art {
21
22// Suppress optimization if corresponding bit set.
23enum OptControlVector {
24 kLoadStoreElimination = 0,
25 kLoadHoisting,
26 kSuppressLoads,
27 kNullCheckElimination,
28 kClassInitCheckElimination,
29 kGlobalValueNumbering,
30 kLocalValueNumbering,
31 kPromoteRegs,
32 kTrackLiveTemps,
33 kSafeOptimizations,
34 kBBOpt,
35 kSuspendCheckElimination,
36 kMatch,
37 kPromoteCompilerTemps,
38 kBranchFusing,
39 kSuppressExceptionEdges,
40 kSuppressMethodInlining,
41};
42
43// Force code generation paths for testing.
44enum DebugControlVector {
45 kDebugVerbose,
46 kDebugDumpCFG,
47 kDebugSlowFieldPath,
48 kDebugSlowInvokePath,
49 kDebugSlowStringPath,
50 kDebugSlowTypePath,
51 kDebugSlowestFieldPath,
52 kDebugSlowestStringPath,
53 kDebugExerciseResolveMethod,
54 kDebugVerifyDataflow,
55 kDebugShowMemoryUsage,
56 kDebugShowNops,
57 kDebugCountOpcodes,
58 kDebugDumpCheckStats,
59 kDebugShowSummaryMemoryUsage,
60 kDebugShowFilterStats,
61 kDebugTimings,
62 kDebugCodegenDump
63};
64
65} // namespace art
66
67#endif // ART_COMPILER_DEX_DEX_FLAGS_H_