[LLVM][Optimizations] Add verbose output
Verbose output allows to observe `-Xoverride-konan-properties` changes.
This commit is contained in:
committed by
Stanislav Erokhin
parent
431a7c9ba9
commit
f2861e5d11
+11
-1
@@ -110,7 +110,17 @@ private class LlvmPipelineConfiguration(context: Context) {
|
|||||||
internal fun runLlvmOptimizationPipeline(context: Context) {
|
internal fun runLlvmOptimizationPipeline(context: Context) {
|
||||||
val llvmModule = context.llvmModule!!
|
val llvmModule = context.llvmModule!!
|
||||||
val config = LlvmPipelineConfiguration(context)
|
val config = LlvmPipelineConfiguration(context)
|
||||||
|
context.log {
|
||||||
|
"""
|
||||||
|
Running LLVM optimizations with the following parameters:
|
||||||
|
target_triple: ${config.targetTriple}
|
||||||
|
cpu_model: ${config.cpuModel}
|
||||||
|
cpu_features: ${config.cpuFeatures}
|
||||||
|
optimization_level: ${config.optimizationLevel.value}
|
||||||
|
size_level: ${config.sizeLevel.value}
|
||||||
|
inline_threshold: ${config.customInlineThreshold ?: "default"}
|
||||||
|
""".trimIndent()
|
||||||
|
}
|
||||||
memScoped {
|
memScoped {
|
||||||
LLVMKotlinInitializeTargets()
|
LLVMKotlinInitializeTargets()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user