Add CompilerPhase and corresponding compiler keys

This commit is contained in:
Georgy Bronnikov
2018-10-16 17:55:16 +03:00
parent ecba313223
commit 32640750ee
35 changed files with 642 additions and 80 deletions
@@ -41,6 +41,27 @@ object CommonConfigurationKeys {
@JvmField
val METADATA_VERSION = CompilerConfigurationKey.create<BinaryVersion>("metadata version")
@JvmField
val LIST_PHASES = CompilerConfigurationKey.create<Boolean>("list names of backend phases")
@JvmField
val DISABLED_PHASES = CompilerConfigurationKey.create<Set<String>>("disable backend phases")
@JvmField
val PHASES_TO_DUMP_STATE_BEFORE = CompilerConfigurationKey.create<Set<String>>("backend phases where we dump compiler state before the phase")
@JvmField
val PHASES_TO_DUMP_STATE_AFTER = CompilerConfigurationKey.create<Set<String>>("backend phases where we dump compiler state after the phase")
@JvmField
val PHASES_TO_DUMP_STATE = CompilerConfigurationKey.create<Set<String>>("backend phases where we dump compiler state both before and after the phase")
@JvmField
val VERBOSE_PHASES = CompilerConfigurationKey.create<Set<String>>("verbose backend phases")
@JvmField
val PROFILE_PHASES = CompilerConfigurationKey.create<Boolean>("profile backend phase execution")
}
var CompilerConfiguration.languageVersionSettings: LanguageVersionSettings