[K2] Document KMP implementation in the K2 Compiler

Add comprehensive documentation explaining the implementation and
functions of the Kotlin multiplatform (KMP) support in the K2 Compiler.
This commit is contained in:
Simon Ogorodnik
2023-09-15 17:34:01 +02:00
committed by Space Team
parent 04c0cc5a5c
commit 024e94a479
12 changed files with 661 additions and 0 deletions
@@ -19,6 +19,13 @@ import org.jetbrains.kotlin.ir.util.*
data class IrActualizedResult(val actualizedExpectDeclarations: List<IrDeclaration>)
/**
* IrActualizer is responsible for performing actualization.
*
* The main action is the replacement of references to expect declarations with corresponding actuals on the IR level.
*
* See `/docs/fir/k2_kmp.md`
*/
object IrActualizer {
fun actualize(
mainFragment: IrModuleFragment,