mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Autodiff] Adds logic to generate specialized functions in the closure-spec pass
This commit is contained in:
@@ -122,6 +122,8 @@ public struct InstructionList : CollectionLikeSequence, IteratorProtocol {
|
||||
|
||||
public var first: Instruction? { currentInstruction }
|
||||
|
||||
public var last: Instruction? { reversed().first }
|
||||
|
||||
public func reversed() -> ReverseInstructionList {
|
||||
if let inst = currentInstruction {
|
||||
let lastInst = inst.bridged.getLastInstOfParent().instruction
|
||||
|
||||
Reference in New Issue
Block a user