File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -64,19 +64,19 @@ Here is how to dump the IR after the main phases of the Swift compiler
6464
6565* ** Parser** To print the AST after parsing:
6666
67- ``` bash
67+ ``` sh
6868swiftc -dump-ast -O file.swift
6969```
7070
7171* ** SILGen** To print the SIL immediately after SILGen:
7272
73- ``` bash
73+ ``` sh
7474swiftc -emit-silgen -O file.swift
7575```
7676
7777* ** Mandatory SIL passes** To print the SIL after the mandatory passes:
7878
79- ``` bash
79+ ``` sh
8080swiftc -emit-sil -Onone file.swift
8181```
8282
@@ -87,25 +87,25 @@ swiftc -emit-sil -Onone file.swift
8787* ** Performance SIL passes** To print the SIL after the complete SIL
8888 optimization pipeline:
8989
90- ``` bash
90+ ``` sh
9191swiftc -emit-sil -O file.swift
9292```
9393
9494* ** IRGen** To print the LLVM IR after IR generation:
9595
96- ``` bash
96+ ``` sh
9797swiftc -emit-ir -Xfrontend -disable-llvm-optzns -O file.swift
9898```
9999
100100* ** LLVM passes** To print the LLVM IR after LLVM passes:
101101
102- ``` bash
102+ ``` sh
103103swiftc -emit-ir -O file.swift
104104```
105105
106106* ** Code generation** To print the final generated code:
107107
108- ``` bash
108+ ``` sh
109109swiftc -S -O file.swift
110110```
111111
You can’t perform that action at this time.
0 commit comments