Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/stage1/generated.jl
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,8 @@ function reload()
Expr(:new,
Core.GeneratedFunctionStub,
:perform_optic_transform,
Any[:ff, :args],
Any[],
@__LINE__,
QuoteNode(Symbol(@__FILE__)),
true)))
Core.svec(:ff, :args),
Core.svec())))
end
end)
end
Expand Down
7 changes: 2 additions & 5 deletions src/stage1/recurse_fwd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ end
Expr(:new,
Core.GeneratedFunctionStub,
:perform_fwd_transform,
Any[:ff, :args],
Any[],
@__LINE__,
QuoteNode(Symbol(@__FILE__)),
true)))
Core.svec(:ff, :args),
Core.svec())))
end
6 changes: 3 additions & 3 deletions src/stage1/termination.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ which(Tuple{∂⃖{N}, ∂⃖{1}, Vararg{Any}} where {N}).recursion_relation = f
isa(Base.unwrap_unionall(new_sig.parameters[1].parameters[1]), Int)
end

for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆recurse{N}, Vararg{Any}} where {N}, nothing, -1, typemax(UInt64))
for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆recurse{N}, Vararg{Any}} where {N}, nothing, -1, Base.get_world_counter())
method.recursion_relation = function (method1, method2, parent_sig, new_sig)
# Recursion from a higher to a lower order is always allowed
parent_order = parent_sig.parameters[1].parameters[1]
Expand All @@ -58,13 +58,13 @@ for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆recurse{N}, Varar
end
end

for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆internal{N}, Vararg{Any}} where {N}, nothing, -1, typemax(UInt64))
for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆internal{N}, Vararg{Any}} where {N}, nothing, -1, Base.get_world_counter())
method.recursion_relation = function (method1, method2, parent_sig, new_sig)
return true
end
end

for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆{N}, Vararg{Any}} where {N}, nothing, -1, typemax(UInt64))
for (;method) in Base._methods_by_ftype(Tuple{Diffractor.∂☆{N}, Vararg{Any}} where {N}, nothing, -1, Base.get_world_counter())
method.recursion_relation = function (method1, method2, parent_sig, new_sig)
return true
end
Expand Down