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
64
64
65
65
* ** Parser** To print the AST after parsing:
66
66
67
- ``` bash
67
+ ``` sh
68
68
swiftc -dump-ast -O file.swift
69
69
```
70
70
71
71
* ** SILGen** To print the SIL immediately after SILGen:
72
72
73
- ``` bash
73
+ ``` sh
74
74
swiftc -emit-silgen -O file.swift
75
75
```
76
76
77
77
* ** Mandatory SIL passes** To print the SIL after the mandatory passes:
78
78
79
- ``` bash
79
+ ``` sh
80
80
swiftc -emit-sil -Onone file.swift
81
81
```
82
82
@@ -87,25 +87,25 @@ swiftc -emit-sil -Onone file.swift
87
87
* ** Performance SIL passes** To print the SIL after the complete SIL
88
88
optimization pipeline:
89
89
90
- ``` bash
90
+ ``` sh
91
91
swiftc -emit-sil -O file.swift
92
92
```
93
93
94
94
* ** IRGen** To print the LLVM IR after IR generation:
95
95
96
- ``` bash
96
+ ``` sh
97
97
swiftc -emit-ir -Xfrontend -disable-llvm-optzns -O file.swift
98
98
```
99
99
100
100
* ** LLVM passes** To print the LLVM IR after LLVM passes:
101
101
102
- ``` bash
102
+ ``` sh
103
103
swiftc -emit-ir -O file.swift
104
104
```
105
105
106
106
* ** Code generation** To print the final generated code:
107
107
108
- ``` bash
108
+ ``` sh
109
109
swiftc -S -O file.swift
110
110
```
111
111
You can’t perform that action at this time.
0 commit comments