You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/SwiftOptions/Options.swift
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -187,6 +187,7 @@ extension Option {
187
187
publicstaticletdisableDiagnosticPasses:Option=Option("-disable-diagnostic-passes",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't run diagnostic passes")
188
188
publicstaticletdisableDynamicActorIsolation:Option=Option("-disable-dynamic-actor-isolation",.flag, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Disable dynamic actor isolation checks")
189
189
publicstaticletdisableEmitGenericClassRoTList:Option=Option("-disable-emit-generic-class-ro_t-list",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable emission of a section with references to class_ro_t of generic class patterns")
190
+
publicstaticletdisableEmitTypeMallocForCoroFrame:Option=Option("-disable-emit-type-malloc-for-coro-frame",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable emitting typed malloc for coroutine frame allocation")
190
191
publicstaticletdisableExperimentalClangImporterDiagnostics:Option=Option("-disable-experimental-clang-importer-diagnostics",.flag, attributes:[.helpHidden,.frontend,.noDriver,.moduleInterface], helpText:"Disable experimental diagnostics when importing C, C++, and Objective-C libraries")
191
192
publicstaticletdisableExperimentalFeature:Option=Option("-disable-experimental-feature",.separate, attributes:[.frontend,.moduleInterface], helpText:"Disable an experimental feature")
publicstaticletdisableLayoutStringValueWitnesses:Option=Option("-disable-layout-string-value-witnesses",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable layout string based value witnesses")
215
216
publicstaticletdisableLegacyTypeInfo:Option=Option("-disable-legacy-type-info",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Completely disable legacy type layout")
216
217
publicstaticletdisableLifetimeDependenceDiagnostics:Option=Option("-disable-lifetime-dependence-diagnostics",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable lifetime dependence diagnostics for Nonescapable types.")
218
+
publicstaticletdisableLlvmMergeFunctionsPass:Option=Option("-disable-llvm-merge-functions-pass",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable the MergeFunctionPass LLVM IR pass")
217
219
publicstaticletdisableLlvmOptzns:Option=Option("-disable-llvm-optzns",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't run LLVM optimization passes")
218
220
publicstaticletdisableLlvmValueNames:Option=Option("-disable-llvm-value-names",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't add names to local values in LLVM IR")
219
221
publicstaticletdisableLlvmVerify:Option=Option("-disable-llvm-verify",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Don't run the LLVM IR verifier.")
@@ -425,6 +427,7 @@ extension Option {
425
427
publicstaticletenableDeterministicCheck:Option=Option("-enable-deterministic-check",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Check compiler output determinism by running it twice")
426
428
publicstaticletenableDynamicReplacementChaining:Option=Option("-enable-dynamic-replacement-chaining",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable chaining of dynamic replacements")
427
429
publicstaticletenableEmitGenericClassRoTList:Option=Option("-enable-emit-generic-class-ro_t-list",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable emission of a section with references to class_ro_t of generic class patterns")
430
+
publicstaticletenableEmitTypeMallocForCoroFrame:Option=Option("-enable-emit-type-malloc-for-coro-frame",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enable emitting typed malloc for coroutine frame allocation")
publicstaticletenableAsyncDemotion:Option=Option("-enable-experimental-async-demotion",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Enables an optimization pass to demote async functions.")
430
433
publicstaticletenableExperimentalAsyncTopLevel:Option=Option("-enable-experimental-async-top-level",.flag, attributes:[.helpHidden,.frontend,.noDriver,.moduleInterface], helpText:"Enable experimental concurrency in top-level code")
@@ -516,6 +519,7 @@ extension Option {
516
519
publicstaticletexperimentalHermeticSealAtLink:Option=Option("-experimental-hermetic-seal-at-link",.flag, attributes:[.helpHidden,.frontend], helpText:"Library code can assume that all clients are visible at linktime, and aggressively strip unused code")
517
520
publicstaticletexperimentalLazyTypecheck:Option=Option("-experimental-lazy-typecheck",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Type-check lazily as needed to produce requested outputs")
518
521
publicstaticletexperimentalPackageBypassResilience:Option=Option("-experimental-package-bypass-resilience",.flag, attributes:[.frontend], helpText:"Deprecated; has no effect")
522
+
publicstaticletExperimentalPackageCMOAbortOnDeserializationFail:Option=Option("-experimental-package-cmo-abort-on-deserialization-fail",.flag, attributes:[.frontend], helpText:"Abort if a deserialization error is found while package optimization is enabled")
519
523
publicstaticletExperimentalPackageCMO:Option=Option("-experimental-package-cmo",.flag, attributes:[.frontend], helpText:"Deprecated; use -package-cmo instead")
520
524
publicstaticletexperimentalPackageInterfaceLoad:Option=Option("-experimental-package-interface-load",.flag, attributes:[.helpHidden,.frontend], helpText:"Enables loading a package interface if in the same package specified with package-name")
521
525
publicstaticletExperimentalPerformanceAnnotations:Option=Option("-experimental-performance-annotations",.flag, attributes:[.helpHidden,.frontend], helpText:"Deprecated, has no effect")
@@ -524,7 +528,6 @@ extension Option {
524
528
publicstaticletexperimentalPrintFullConvention:Option=Option("-experimental-print-full-convention",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"When emitting a module interface or SIL, emit additional @convention arguments, regardless of whether they were written in the source. Also requires -use-clang-function-types to be enabled.")
525
529
publicstaticletexperimentalSerializeDebugInfo:Option=Option("-experimental-serialize-debug-info",.flag, attributes:[.helpHidden,.frontend], helpText:"Enables seriailzation/deserialization of debug scopes")
526
530
publicstaticletexperimentalSkipAllFunctionBodies:Option=Option("-experimental-skip-all-function-bodies",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Skip type-checking function bodies and all SIL generation")
527
-
publicstaticletExperimentalSkipDeserializationChecksForPackageCMO:Option=Option("-experimental-skip-deserialization-checks-for-package-cmo",.flag, attributes:[.frontend], helpText:"Skip deserialization checks for package-cmo; use only for experimental purposes")
528
531
publicstaticletexperimentalSkipNonExportableDecls:Option=Option("-experimental-skip-non-exportable-decls",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Skip decls that are not exported to clients")
529
532
publicstaticletexperimentalSkipNonInlinableFunctionBodiesWithoutTypes:Option=Option("-experimental-skip-non-inlinable-function-bodies-without-types",.flag, attributes:[.helpHidden,.frontend], helpText:"Skip work on non-inlinable function bodies that do not declare nested types")
530
533
publicstaticletexperimentalSkipNonInlinableFunctionBodies:Option=Option("-experimental-skip-non-inlinable-function-bodies",.flag, attributes:[.helpHidden,.frontend], helpText:"Skip type-checking and SIL generation for non-inlinable function bodies")
@@ -644,6 +647,7 @@ extension Option {
644
647
publicstaticletL:Option=Option("-L",.joinedOrSeparate, attributes:[.frontend,.doesNotAffectIncrementalBuild,.argumentIsPath], helpText:"Add directory to library link search path", group:.linkerOption)
645
648
publicstaticletl:Option=Option("-l",.joinedOrSeparate, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Specifies a library which should be linked against", group:.linkerOption)
646
649
publicstaticletmergeModules:Option=Option("-merge-modules",.flag, attributes:[.frontend,.noDriver], helpText:"Merge the input modules without otherwise processing them", group:.modes)
650
+
publicstaticletmergeableSymbols:Option=Option("-mergeable-symbols",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Emit symbol definitions as mergeable (linkonce_odr)")
647
651
publicstaticletmigrateKeepObjcVisibility:Option=Option("-migrate-keep-objc-visibility",.flag, attributes:[.frontend,.noInteractive], helpText:"When migrating, add '@objc' to declarations that would've been implicitly visible in Swift 3")
648
652
publicstaticletmigratorUpdateSdk:Option=Option("-migrator-update-sdk",.flag, attributes:[.frontend,.noInteractive], helpText:"Does nothing. Temporary compatibility flag for Xcode.")
649
653
publicstaticletmigratorUpdateSwift:Option=Option("-migrator-update-swift",.flag, attributes:[.frontend,.noInteractive], helpText:"Does nothing. Temporary compatibility flag for Xcode.")
@@ -821,10 +825,10 @@ extension Option {
821
825
publicstaticletsilUnrollThreshold:Option=Option("-sil-unroll-threshold",.separate, attributes:[.helpHidden,.frontend,.noDriver], metaVar:"<250>", helpText:"Controls the aggressiveness of loop unrolling")
822
826
publicstaticletsilVerifyAll:Option=Option("-sil-verify-all",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Verify SIL after each transform")
823
827
publicstaticletsilVerifyNone:Option=Option("-sil-verify-none",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Completely disable SIL verification")
824
-
publicstaticletskipImportInPublicInterface:Option=Option("-skip-import-in-public-interface",.separate, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Skip the import statement corresponding to a module name when printing the public interface.")
825
828
publicstaticletskipInheritedDocs:Option=Option("-skip-inherited-docs",.flag, attributes:[.helpHidden,.frontend,.noInteractive,.supplementaryOutput], helpText:"Skip emitting doc comments for members inherited through classes or default implementations")
826
829
publicstaticletskipProtocolImplementations:Option=Option("-skip-protocol-implementations",.flag, attributes:[.helpHidden,.frontend,.noInteractive,.supplementaryOutput], helpText:"Skip emitting symbols that are implementations of protocol requirements or inherited from protocol extensions")
827
830
publicstaticletskipSynthesizedMembers:Option=Option("-skip-synthesized-members",.flag, attributes:[.noDriver], helpText:"Skip members inherited through classes or default implementations")
831
+
publicstaticletsolverDisableShrink:Option=Option("-solver-disable-shrink",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable the shrink phase of expression type checking")
828
832
publicstaticletsolverDisableSplitter:Option=Option("-solver-disable-splitter",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Disable the component splitter phase of expression type checking")
829
833
publicstaticletsolverExpressionTimeThresholdEQ:Option=Option("-solver-expression-time-threshold=",.joined, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Expression type checking timeout, in seconds")
830
834
publicstaticletsolverMemoryThreshold:Option=Option("-solver-memory-threshold",.separate, attributes:[.helpHidden,.frontend,.doesNotAffectIncrementalBuild], helpText:"Set the upper bound for memory consumption, in bytes, by the constraint solver")
@@ -835,9 +839,10 @@ extension Option {
835
839
publicstaticletstaticExecutable:Option=Option("-static-executable",.flag, helpText:"Statically link the executable")
836
840
publicstaticletstaticStdlib:Option=Option("-static-stdlib",.flag, attributes:[.doesNotAffectIncrementalBuild], helpText:"Statically link the Swift standard library")
837
841
publicstaticlet`static`:Option=Option("-static",.flag, attributes:[.frontend,.noInteractive,.moduleInterface], helpText:"Make this module statically linkable and make the output of -emit-library a static library.")
838
-
publicstaticletstatsOutputDir:Option=Option("-stats-output-dir",.separate, attributes:[.helpHidden,.frontend,.argumentIsPath,.cacheInvariant], helpText:"Directory to write unified compilation-statistics files to")
842
+
publicstaticletstatsOutputDir:Option=Option("-stats-output-dir",.separate, attributes:[.helpHidden,.frontend,.argumentIsPath], helpText:"Directory to write unified compilation-statistics files to")
839
843
publicstaticletstrictConcurrency:Option=Option("-strict-concurrency=",.joined, attributes:[.frontend,.doesNotAffectIncrementalBuild], helpText:"Specify the how strict concurrency checking will be. The value may be 'minimal' (most 'Sendable' checking is disabled), 'targeted' ('Sendable' checking is enabled in code that uses the concurrency model, or 'complete' ('Sendable' and other checking is enabled for all code in the module)")
840
844
publicstaticletstrictImplicitModuleContext:Option=Option("-strict-implicit-module-context",.flag, attributes:[.helpHidden,.frontend], helpText:"Enable the strict forwarding of compilation context to downstream implicit module dependencies")
publicstaticletsupplementaryOutputFileMap:Option=Option("-supplementary-output-file-map",.separate, attributes:[.frontend,.noDriver,.cacheInvariant], helpText:"Specify supplementary outputs in a file rather than on the command line")
842
847
publicstaticletsuppressRemarks:Option=Option("-suppress-remarks",.flag, attributes:[.frontend], helpText:"Suppress all remarks")
843
848
publicstaticletsuppressStaticExclusivitySwap:Option=Option("-suppress-static-exclusivity-swap",.flag, attributes:[.helpHidden,.frontend,.noDriver], helpText:"Suppress static violations of exclusive access with swap()")
0 commit comments