Skip to content

Commit d7b6332

Browse files
committed
libswift: clean up Instruction.swift formatting
1 parent e0f60d8 commit d7b6332

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

SwiftCompilerSources/Sources/SIL/Instruction.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ public class Instruction : ListNode, CustomStringConvertible, Hashable {
3939
final public var description: String {
4040
SILNode_debugDescription(bridgedNode).takeString()
4141
}
42-
42+
4343
final public var operands: OperandArray {
4444
return OperandArray(opArray: SILInstruction_getOperands(bridged))
4545
}
46-
46+
4747
fileprivate var resultCount: Int { 0 }
4848
fileprivate func getResult(index: Int) -> Value { fatalError() }
4949

@@ -184,7 +184,7 @@ final public class StoreInst : Instruction {
184184
public var destinationOperand: Operand { return operands[1] }
185185
public var source: Value { return sourceOperand.value }
186186
public var destination: Value { return destinationOperand.value }
187-
187+
188188
// must match with enum class StoreOwnershipQualifier
189189
public enum StoreOwnership: Int {
190190
case unqualified = 0, initialize = 1, assign = 2, trivial = 3
@@ -210,7 +210,7 @@ final public class EndAccessInst : Instruction, UnaryInstruction {
210210
final public class EndBorrowInst : Instruction, UnaryInstruction {}
211211

212212
final public class DeallocStackInst : Instruction, UnaryInstruction {
213-
public var allocstack: AllocStackInst {
213+
public var allocStack: AllocStackInst {
214214
return operand as! AllocStackInst
215215
}
216216
}
@@ -381,7 +381,7 @@ class StructElementAddrInst : SingleValueInstruction, UnaryInstruction {
381381

382382
final public class EnumInst : SingleValueInstruction {
383383
public var caseIndex: Int { EnumInst_caseIndex(bridged) }
384-
384+
385385
public var operand: Value? { operands.first?.value }
386386
}
387387

@@ -449,7 +449,7 @@ final public class PartialApplyInst : SingleValueInstruction, ApplySite {
449449

450450
final public class ApplyInst : SingleValueInstruction, FullApplySite {
451451
public var numArguments: Int { ApplyInst_numArguments(bridged) }
452-
452+
453453
public var singleDirectResult: Value? { self }
454454
}
455455

@@ -511,7 +511,7 @@ final public class DestructureTupleInst : MultipleValueInstruction {
511511

512512
final public class BeginApplyInst : MultipleValueInstruction, FullApplySite {
513513
public var numArguments: Int { BeginApplyInst_numArguments(bridged) }
514-
514+
515515
public var singleDirectResult: Value? { nil }
516516
}
517517

@@ -542,16 +542,16 @@ final public class UnwindInst : TermInst {
542542

543543
final public class TryApplyInst : TermInst, FullApplySite {
544544
public var numArguments: Int { TryApplyInst_numArguments(bridged) }
545-
545+
546546
public var normalBlock: BasicBlock { successors[0] }
547547
public var errorBlock: BasicBlock { successors[1] }
548-
548+
549549
public var singleDirectResult: Value? { normalBlock.arguments[0] }
550550
}
551551

552552
final public class BranchInst : TermInst {
553553
public var targetBlock: BasicBlock { BranchInst_getTargetBlock(bridged).block }
554-
554+
555555
public func getArgument(for operand: Operand) -> Argument {
556556
return targetBlock.arguments[operand.index]
557557
}

0 commit comments

Comments
 (0)