@@ -366,20 +366,22 @@ public struct VarDecl {
366
366
}
367
367
368
368
// See C++ VarDeclCarryingInst
369
- public protocol VarDeclInst {
369
+ public protocol VarDeclInstruction {
370
370
var varDecl : VarDecl ? { get }
371
371
}
372
372
373
- public protocol DebugVariableInst : VarDeclInst {
374
- var debugVariable : OptionalBridgedSILDebugVariable { get }
373
+ public protocol DebugVariableInstruction : VarDeclInstruction {
374
+ typealias DebugVariable = OptionalBridgedSILDebugVariable
375
+
376
+ var debugVariable : DebugVariable { get }
375
377
}
376
378
377
- final public class DebugValueInst : Instruction , UnaryInstruction , DebugVariableInst {
379
+ final public class DebugValueInst : Instruction , UnaryInstruction , DebugVariableInstruction {
378
380
public var varDecl : VarDecl ? {
379
381
VarDecl ( bridged: bridged. DebugValue_getDecl ( ) )
380
382
}
381
383
382
- public var debugVariable : OptionalBridgedSILDebugVariable {
384
+ public var debugVariable : DebugVariable {
383
385
return bridged. DebugValue_getVarInfo ( )
384
386
}
385
387
}
@@ -637,7 +639,7 @@ final public class DynamicFunctionRefInst : FunctionRefBaseInst {
637
639
final public class PreviousDynamicFunctionRefInst : FunctionRefBaseInst {
638
640
}
639
641
640
- final public class GlobalAddrInst : GlobalAccessInst , VarDeclInst {
642
+ final public class GlobalAddrInst : GlobalAccessInst , VarDeclInstruction {
641
643
public var varDecl : VarDecl ? {
642
644
VarDecl ( bridged: bridged. GlobalAddr_getDecl ( ) )
643
645
}
@@ -744,7 +746,7 @@ final public class SelectEnumInst : SingleValueInstruction {
744
746
public var enumOperand : Operand { operands [ 0 ] }
745
747
}
746
748
747
- final public class RefElementAddrInst : SingleValueInstruction , UnaryInstruction , VarDeclInst {
749
+ final public class RefElementAddrInst : SingleValueInstruction , UnaryInstruction , VarDeclInstruction {
748
750
public var instance : Value { operand. value }
749
751
public var fieldIndex : Int { bridged. RefElementAddrInst_fieldIndex ( ) }
750
752
@@ -979,14 +981,14 @@ final public class LinearFunctionInst: SingleValueInstruction, ForwardingInstruc
979
981
980
982
public protocol Allocation : SingleValueInstruction { }
981
983
982
- final public class AllocStackInst : SingleValueInstruction , Allocation , DebugVariableInst {
984
+ final public class AllocStackInst : SingleValueInstruction , Allocation , DebugVariableInstruction {
983
985
public var hasDynamicLifetime : Bool { bridged. AllocStackInst_hasDynamicLifetime ( ) }
984
986
985
987
public var varDecl : VarDecl ? {
986
988
VarDecl ( bridged: bridged. AllocStack_getDecl ( ) )
987
989
}
988
990
989
- public var debugVariable : OptionalBridgedSILDebugVariable {
991
+ public var debugVariable : DebugVariable {
990
992
return bridged. AllocStack_getVarInfo ( )
991
993
}
992
994
}
@@ -1018,13 +1020,13 @@ final public class AllocRefDynamicInst : AllocRefInstBase {
1018
1020
}
1019
1021
}
1020
1022
1021
- final public class AllocBoxInst : SingleValueInstruction , Allocation , DebugVariableInst {
1023
+ final public class AllocBoxInst : SingleValueInstruction , Allocation , DebugVariableInstruction {
1022
1024
1023
1025
public var varDecl : VarDecl ? {
1024
1026
VarDecl ( bridged: bridged. AllocBox_getDecl ( ) )
1025
1027
}
1026
1028
1027
- public var debugVariable : OptionalBridgedSILDebugVariable {
1029
+ public var debugVariable : DebugVariable {
1028
1030
return bridged. AllocBox_getVarInfo ( )
1029
1031
}
1030
1032
}
@@ -1053,9 +1055,9 @@ final public class DestructureTupleInst : MultipleValueInstruction, UnaryInstruc
1053
1055
1054
1056
final public class BeginApplyInst : MultipleValueInstruction , FullApplySite {
1055
1057
public var numArguments : Int { bridged. BeginApplyInst_numArguments ( ) }
1056
-
1058
+
1057
1059
public var singleDirectResult : Value ? { nil }
1058
-
1060
+
1059
1061
public var yieldedValues : Results {
1060
1062
Results ( inst: self , numResults: resultCount - 1 )
1061
1063
}
0 commit comments