mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Swift SIL: add some instruction classes and APIs
* add `UnownedRetainInst` and `UnownedReleaseInst` * add `var value` to `RetainValueInst` and `ReleaseValueInst` * make the protocol `UnaryInstruction` be an `Instruction` * add `var Type.isValueTypeWithDeinit` * add `var Type.isUnownedStorageType` * add `var OperandArray.values`
This commit is contained in:
@@ -76,6 +76,10 @@ public struct OperandArray : RandomAccessCollection, CustomReflectable {
|
||||
base: OptionalBridgedOperand(op: base.advancedBy(bounds.lowerBound).op),
|
||||
count: bounds.upperBound - bounds.lowerBound)
|
||||
}
|
||||
|
||||
public var values: LazyMapSequence<LazySequence<OperandArray>.Elements, Value> {
|
||||
self.lazy.map { $0.value }
|
||||
}
|
||||
}
|
||||
|
||||
public struct UseList : CollectionLikeSequence {
|
||||
|
||||
Reference in New Issue
Block a user