[K/N][IR] Renamed PreInlineLowering to TypeOfLowering
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ private val annotationImplementationPhase = createFileLoweringPhase(
|
||||
)
|
||||
|
||||
private val lowerBeforeInlinePhase = createFileLoweringPhase(
|
||||
::PreInlineLowering,
|
||||
::TypeOfLowering,
|
||||
name = "LowerBeforeInline",
|
||||
description = "Special operations processing before inlining"
|
||||
)
|
||||
|
||||
+1
-2
@@ -9,7 +9,6 @@ import org.jetbrains.kotlin.backend.common.DeclarationTransformer
|
||||
import org.jetbrains.kotlin.backend.common.lower.*
|
||||
import org.jetbrains.kotlin.backend.common.lower.inline.*
|
||||
import org.jetbrains.kotlin.backend.konan.*
|
||||
import org.jetbrains.kotlin.backend.konan.serialization.KonanIrLinker
|
||||
import org.jetbrains.kotlin.ir.declarations.IrFile
|
||||
import org.jetbrains.kotlin.ir.declarations.IrFunction
|
||||
import org.jetbrains.kotlin.ir.deepCopyWithVariables
|
||||
@@ -73,7 +72,7 @@ internal class NativeInlineFunctionResolver(override val context: Context, val g
|
||||
private fun lower(function: IrFunction, irFile: IrFile, functionIsCached: Boolean) {
|
||||
val body = function.body ?: return
|
||||
|
||||
PreInlineLowering(context).lower(body, function, irFile)
|
||||
TypeOfLowering(context).lower(body, function, irFile)
|
||||
|
||||
ArrayConstructorLowering(context).lower(body, function)
|
||||
|
||||
|
||||
+1
-6
@@ -21,12 +21,7 @@ import org.jetbrains.kotlin.ir.expressions.IrExpression
|
||||
import org.jetbrains.kotlin.ir.util.file
|
||||
import org.jetbrains.kotlin.ir.visitors.IrElementTransformer
|
||||
|
||||
/**
|
||||
* This pass runs before inlining and performs the following additional transformations over some operations:
|
||||
* - Assertion call removal.
|
||||
* - First phase of typeOf intrinsic lowering.
|
||||
*/
|
||||
internal class PreInlineLowering(val context: Context) : BodyLoweringPass {
|
||||
internal class TypeOfLowering(val context: Context) : BodyLoweringPass {
|
||||
override fun lower(irBody: IrBody, container: IrDeclaration) = lower(irBody, container, container.file)
|
||||
|
||||
fun lower(irBody: IrBody, container: IrDeclaration, irFile: IrFile) {
|
||||
Reference in New Issue
Block a user