Update HACKING.md

This commit is contained in:
Sergey Bogolepov
2023-01-26 17:49:06 +02:00
committed by GitHub
parent 294014a85d
commit f5d4984274
+1 -1
View File
@@ -386,7 +386,7 @@ It is possible to dump LLVM IR after a particular compiler phase.
kotlinc-native main.kt -Xsave-llvm-ir-after=<PhaseName> -Xsave-llvm-ir-directory=<PATH>
```
`<PATH>/out.<PhaseName>.ll` will contain LLVM IR after LLVM optimization pipeline.
`<PATH>/out.<PhaseName>.ll` will contain LLVM IR after given phase.
Passing `Codegen` phase allows to get LLVM IR right after translation from Kotlin Backend IR, and
`BitcodeOptimization` phase allows to see the result of LLVM optimization pipeline. The list of phases that support LLVM IR dumping is constantly changing, so check out compiler sources