diff --git a/kotlin-native/HACKING.md b/kotlin-native/HACKING.md index 029dc5c724b..401335548f2 100644 --- a/kotlin-native/HACKING.md +++ b/kotlin-native/HACKING.md @@ -386,7 +386,7 @@ It is possible to dump LLVM IR after a particular compiler phase. kotlinc-native main.kt -Xsave-llvm-ir-after= -Xsave-llvm-ir-directory= ``` -`/out..ll` will contain LLVM IR after LLVM optimization pipeline. +`/out..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