@@ -39,11 +39,11 @@ public class Instruction : ListNode, CustomStringConvertible, Hashable {
39
39
final public var description : String {
40
40
SILNode_debugDescription ( bridgedNode) . takeString ( )
41
41
}
42
-
42
+
43
43
final public var operands : OperandArray {
44
44
return OperandArray ( opArray: SILInstruction_getOperands ( bridged) )
45
45
}
46
-
46
+
47
47
fileprivate var resultCount : Int { 0 }
48
48
fileprivate func getResult( index: Int ) -> Value { fatalError ( ) }
49
49
@@ -184,7 +184,7 @@ final public class StoreInst : Instruction {
184
184
public var destinationOperand : Operand { return operands [ 1 ] }
185
185
public var source : Value { return sourceOperand. value }
186
186
public var destination : Value { return destinationOperand. value }
187
-
187
+
188
188
// must match with enum class StoreOwnershipQualifier
189
189
public enum StoreOwnership : Int {
190
190
case unqualified = 0 , initialize = 1 , assign = 2 , trivial = 3
@@ -210,7 +210,7 @@ final public class EndAccessInst : Instruction, UnaryInstruction {
210
210
final public class EndBorrowInst : Instruction , UnaryInstruction { }
211
211
212
212
final public class DeallocStackInst : Instruction , UnaryInstruction {
213
- public var allocstack : AllocStackInst {
213
+ public var allocStack : AllocStackInst {
214
214
return operand as! AllocStackInst
215
215
}
216
216
}
@@ -381,7 +381,7 @@ class StructElementAddrInst : SingleValueInstruction, UnaryInstruction {
381
381
382
382
final public class EnumInst : SingleValueInstruction {
383
383
public var caseIndex : Int { EnumInst_caseIndex ( bridged) }
384
-
384
+
385
385
public var operand : Value ? { operands. first? . value }
386
386
}
387
387
@@ -449,7 +449,7 @@ final public class PartialApplyInst : SingleValueInstruction, ApplySite {
449
449
450
450
final public class ApplyInst : SingleValueInstruction , FullApplySite {
451
451
public var numArguments : Int { ApplyInst_numArguments ( bridged) }
452
-
452
+
453
453
public var singleDirectResult : Value ? { self }
454
454
}
455
455
@@ -511,7 +511,7 @@ final public class DestructureTupleInst : MultipleValueInstruction {
511
511
512
512
final public class BeginApplyInst : MultipleValueInstruction , FullApplySite {
513
513
public var numArguments : Int { BeginApplyInst_numArguments ( bridged) }
514
-
514
+
515
515
public var singleDirectResult : Value ? { nil }
516
516
}
517
517
@@ -542,16 +542,16 @@ final public class UnwindInst : TermInst {
542
542
543
543
final public class TryApplyInst : TermInst , FullApplySite {
544
544
public var numArguments : Int { TryApplyInst_numArguments ( bridged) }
545
-
545
+
546
546
public var normalBlock : BasicBlock { successors [ 0 ] }
547
547
public var errorBlock : BasicBlock { successors [ 1 ] }
548
-
548
+
549
549
public var singleDirectResult : Value ? { normalBlock. arguments [ 0 ] }
550
550
}
551
551
552
552
final public class BranchInst : TermInst {
553
553
public var targetBlock : BasicBlock { BranchInst_getTargetBlock ( bridged) . block }
554
-
554
+
555
555
public func getArgument( for operand: Operand ) -> Argument {
556
556
return targetBlock. arguments [ operand. index]
557
557
}
0 commit comments