Skip to content

Commit 6fcec2f

Browse files
committed
SwiftCompilerSources: organize parameter pack instructions
1 parent 66dcf6a commit 6fcec2f

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

SwiftCompilerSources/Sources/SIL/Instruction.swift

+30-26
Original file line numberDiff line numberDiff line change
@@ -529,9 +529,6 @@ final public class DeallocStackInst : Instruction, UnaryInstruction, Deallocatio
529529
}
530530
}
531531

532-
final public class DeallocPackInst : Instruction, UnaryInstruction, Deallocation {}
533-
final public class DeallocPackMetadataInst : Instruction, Deallocation {}
534-
535532
final public class DeallocStackRefInst : Instruction, UnaryInstruction, Deallocation {
536533
public var allocRef: AllocRefInstBase { operand.value as! AllocRefInstBase }
537534
}
@@ -703,12 +700,6 @@ class ValueMetatypeInst : SingleValueInstruction, UnaryInstruction {}
703700
final public
704701
class ExistentialMetatypeInst : SingleValueInstruction, UnaryInstruction {}
705702

706-
final public class OpenPackElementInst : SingleValueInstruction {}
707-
final public class PackLengthInst : SingleValueInstruction {}
708-
final public class DynamicPackIndexInst : SingleValueInstruction {}
709-
final public class PackPackIndexInst : SingleValueInstruction {}
710-
final public class ScalarPackIndexInst : SingleValueInstruction {}
711-
712703
final public class ObjCProtocolInst : SingleValueInstruction {}
713704

714705
public class GlobalAccessInstruction : SingleValueInstruction {
@@ -1095,20 +1086,6 @@ final public class ObjectInst : SingleValueInstruction {
10951086
final public class VectorInst : SingleValueInstruction {
10961087
}
10971088

1098-
final public class TuplePackExtractInst: SingleValueInstruction {
1099-
public var indexOperand: Operand { operands[0] }
1100-
public var tupleOperand: Operand { operands[1] }
1101-
}
1102-
1103-
final public class TuplePackElementAddrInst: SingleValueInstruction {
1104-
public var indexOperand: Operand { operands[0] }
1105-
public var tupleOperand: Operand { operands[1] }
1106-
}
1107-
1108-
final public class PackElementGetInst: SingleValueInstruction {}
1109-
1110-
final public class PackElementSetInst: Instruction {}
1111-
11121089
final public class DifferentiableFunctionInst: SingleValueInstruction {}
11131090

11141091
final public class LinearFunctionInst: SingleValueInstruction {}
@@ -1142,9 +1119,6 @@ final public class AllocVectorInst : SingleValueInstruction, Allocation, UnaryIn
11421119
public var capacity: Value { operand.value }
11431120
}
11441121

1145-
final public class AllocPackInst : SingleValueInstruction, Allocation {}
1146-
final public class AllocPackMetadataInst : SingleValueInstruction, Allocation {}
1147-
11481122
public class AllocRefInstBase : SingleValueInstruction, Allocation {
11491123
final public var isObjC: Bool { bridged.AllocRefInstBase_isObjc() }
11501124

@@ -1363,6 +1337,36 @@ final public class DestructureTupleInst : MultipleValueInstruction, UnaryInstruc
13631337
public var `tuple`: Value { operand.value }
13641338
}
13651339

1340+
//===----------------------------------------------------------------------===//
1341+
// parameter pack instructions
1342+
//===----------------------------------------------------------------------===//
1343+
1344+
final public class AllocPackInst : SingleValueInstruction, Allocation {}
1345+
final public class AllocPackMetadataInst : SingleValueInstruction, Allocation {}
1346+
1347+
final public class DeallocPackInst : Instruction, UnaryInstruction, Deallocation {}
1348+
final public class DeallocPackMetadataInst : Instruction, Deallocation {}
1349+
1350+
final public class OpenPackElementInst : SingleValueInstruction {}
1351+
final public class PackLengthInst : SingleValueInstruction {}
1352+
final public class DynamicPackIndexInst : SingleValueInstruction {}
1353+
final public class PackPackIndexInst : SingleValueInstruction {}
1354+
final public class ScalarPackIndexInst : SingleValueInstruction {}
1355+
1356+
final public class TuplePackExtractInst: SingleValueInstruction {
1357+
public var indexOperand: Operand { operands[0] }
1358+
public var tupleOperand: Operand { operands[1] }
1359+
}
1360+
1361+
final public class TuplePackElementAddrInst: SingleValueInstruction {
1362+
public var indexOperand: Operand { operands[0] }
1363+
public var tupleOperand: Operand { operands[1] }
1364+
}
1365+
1366+
final public class PackElementGetInst: SingleValueInstruction {}
1367+
1368+
final public class PackElementSetInst: Instruction {}
1369+
13661370
//===----------------------------------------------------------------------===//
13671371
// terminator instructions
13681372
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)