OVERVIEW: Swift frontend USAGE: swift-frontend -frontend DEBUG/DEVELOPMENT OPTIONS: -compiler-assertions Enable internal self-checks while compiling MODES: -dump-ast Parse and type-check input file(s) and dump AST(s) -dump-parse Parse input file(s) and dump AST(s) -dump-pcm Dump debugging information about a precompiled Clang module -dump-scope-maps Parse and type-check input file(s) and dump the scope map(s) -dump-type-info Output YAML dump of fixed-size types from all imported modules -emit-assembly Emit assembly file(s) (-S) -emit-bc Emit LLVM BC file(s) -emit-imported-modules Emit a list of the imported modules -emit-irgen Emit LLVM IR file(s) before LLVM optimizations -emit-ir Emit LLVM IR file(s) after LLVM optimizations -emit-lowered-sil Emit lowered SIL file(s) -emit-object Emit object file(s) (-c) -emit-pcm Emit a precompiled Clang module from a module map -emit-polyglot-ast Parse the Objective-C input file and emit polyglot AST as JSON -emit-sibgen Emit serialized AST + raw SIL file(s) -emit-sib Emit serialized AST + canonical SIL file(s) -emit-silgen Emit raw SIL file(s) -emit-sil Emit canonical SIL file(s) -emit-supported-arguments Emit a JSON file including all supported compiler arguments -merge-modules Merge the input modules without otherwise processing them -parse Parse input file(s) -print-ast-decl Parse and type-check input file(s) and pretty print declarations from AST(s) -print-ast Parse and type-check input file(s) and pretty print AST(s) -resolve-imports Parse and resolve imports in input file(s) -scan-dependencies Scan dependencies of the given Swift sources -typecheck Parse and type-check input file(s) OPTIONS: -access-notes-path Specify YAML file to override attributes on Swift declarations in this module -allow-non-resilient-access Ensures all contents are generated besides exportable decls in the binary module, so non-resilient access can be allowed -allowable-client Module names that are allowed to import this module -api-diff-data-dir Load platform and version specific API migration data files from . Ignored if -api-diff-data-file is specified. -api-diff-data-file API migration data is from -application-extension-library Restrict code to those available for App Extension Libraries -application-extension Restrict code to those available for App Extensions -assert-config Specify the assert_configuration replacement. Possible values are Debug, Release, Unchecked, DisableReplacement. -autolink-library Add dependent library -backup-module-interface-path Directory of module interfaces as backups to those from SDKs -blocklist-file The path to a blocklist configuration file -cache-compile-job Enable compiler caching -cache-disable-replay Skip loading the compilation result from cache -cache-replay-prefix-map Remap paths when replaying outputs from cache -cas-backend-mode=native|casid|verify CASBackendMode for output kind -cas-backend Enable using CASBackend for object file output -cas-emit-casid-file Emit .casid file next to object file when CAS Backend is enabled -cas-path Path to CAS -cas-plugin-option =