Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 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 COMPILER_OPTIONS_KEY |
| 18 | #error "Please #define COMPILER_OPTIONS_KEY before #including this file" |
| 19 | #define COMPILER_OPTIONS_KEY(...) // Don't display errors in this file in IDEs. |
| 20 | #endif |
| 21 | |
| 22 | // This file defines the list of keys for CompilerOptionsMap. |
| 23 | // These can be used with CompilerOptionsMap.Get/Set/etc, once that template class has been |
| 24 | // instantiated. |
| 25 | // |
| 26 | // Column Descriptions: |
| 27 | // <<Type>> <<Key Name>> (<<Default Value>>) |
| 28 | // |
| 29 | // Default values are only used by Map::GetOrDefault(K<T>). |
| 30 | // If a default value is omitted here, T{} is used as the default value, which is |
| 31 | // almost-always the value of the type as if it was memset to all 0. |
| 32 | // |
| 33 | // Please keep the columns aligned if possible when adding new rows. |
| 34 | // |
| 35 | |
| 36 | // Parse-able keys from the command line. |
| 37 | |
| 38 | // TODO: Add type parser. |
| 39 | COMPILER_OPTIONS_KEY (std::string, CompilerFilter) |
| 40 | COMPILER_OPTIONS_KEY (Unit, PIC) |
| 41 | COMPILER_OPTIONS_KEY (unsigned int, HugeMethodMaxThreshold) |
| 42 | COMPILER_OPTIONS_KEY (unsigned int, LargeMethodMaxThreshold) |
| 43 | COMPILER_OPTIONS_KEY (unsigned int, SmallMethodMaxThreshold) |
| 44 | COMPILER_OPTIONS_KEY (unsigned int, TinyMethodMaxThreshold) |
| 45 | COMPILER_OPTIONS_KEY (unsigned int, NumDexMethodsThreshold) |
| 46 | COMPILER_OPTIONS_KEY (unsigned int, InlineMaxCodeUnitsThreshold) |
| 47 | COMPILER_OPTIONS_KEY (bool, GenerateDebugInfo) |
| 48 | COMPILER_OPTIONS_KEY (bool, GenerateMiniDebugInfo) |
| 49 | COMPILER_OPTIONS_KEY (bool, GenerateBuildID) |
| 50 | COMPILER_OPTIONS_KEY (Unit, Debuggable) |
Nicolas Geoffray | acc56ac | 2018-10-09 08:45:24 +0100 | [diff] [blame^] | 51 | COMPILER_OPTIONS_KEY (Unit, Baseline) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 52 | COMPILER_OPTIONS_KEY (double, TopKProfileThreshold) |
| 53 | COMPILER_OPTIONS_KEY (bool, AbortOnHardVerifierFailure) |
Andreas Gampe | f39208f | 2017-10-19 15:06:59 -0700 | [diff] [blame] | 54 | COMPILER_OPTIONS_KEY (bool, AbortOnSoftVerifierFailure) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 55 | COMPILER_OPTIONS_KEY (std::string, DumpInitFailures) |
| 56 | COMPILER_OPTIONS_KEY (std::string, DumpCFG) |
| 57 | COMPILER_OPTIONS_KEY (Unit, DumpCFGAppend) |
| 58 | // TODO: Add type parser. |
| 59 | COMPILER_OPTIONS_KEY (std::string, RegisterAllocationStrategy) |
| 60 | COMPILER_OPTIONS_KEY (ParseStringList<','>, VerboseMethods) |
Andreas Gampe | cac31ad | 2017-11-06 20:01:17 -0800 | [diff] [blame] | 61 | COMPILER_OPTIONS_KEY (bool, DeduplicateCode, true) |
Nicolas Geoffray | 8d72832 | 2018-01-18 22:44:32 +0000 | [diff] [blame] | 62 | COMPILER_OPTIONS_KEY (Unit, CountHotnessInCompiledCode) |
Nicolas Geoffray | 2d8801f | 2017-11-28 15:50:07 +0000 | [diff] [blame] | 63 | COMPILER_OPTIONS_KEY (Unit, DumpTimings) |
Vladimir Marko | 2da52b0 | 2018-05-08 16:31:34 +0100 | [diff] [blame] | 64 | COMPILER_OPTIONS_KEY (Unit, DumpPassTimings) |
Nicolas Geoffray | 2d8801f | 2017-11-28 15:50:07 +0000 | [diff] [blame] | 65 | COMPILER_OPTIONS_KEY (Unit, DumpStats) |
Andreas Gampe | 097f34c | 2017-08-23 08:57:51 -0700 | [diff] [blame] | 66 | |
| 67 | #undef COMPILER_OPTIONS_KEY |