Skip to content

Commit

Permalink
nothing works rip
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Dec 7, 2024
1 parent 30ef92a commit 9a1d79b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/compiler/interpreter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,20 @@ function rule_backedge_holder_generator(world::UInt, source, self, ft::Type)

if ft == typeof(EnzymeRules.augmented_primal)
# this is illegal
# sig = Tuple{typeof(EnzymeRules.augmented_primal), <:RevConfig, <:Annotation, Type{<:Annotation},Vararg{<:Annotation}}
# sig = Tuple{typeof(EnzymeRules.augmented_primal), <:RevConfig, <:Annotation, Type{<:Annotation},Vararg{Annotation}}
# push!(edges, (ccall(:jl_method_table_for, Any, (Any,), sig), sig))
push!(edges, Enzyme.my_methodinstance(typeof(EnzymeRules.augmented_primal), Tuple{<:RevConfig, <:Annotation, Type{<:Annotation},Vararg{Annotation}}, world))
elseif ft == typeof(EnzymeRules.forward)
# this is illegal
# sig = Tuple{typeof(EnzymeRules.forward), <:FwdConfig, <:Annotation, Type{<:Annotation},Vararg{<:Annotation}}
# sig = Tuple{typeof(EnzymeRules.forward), <:FwdConfig, <:Annotation, Type{<:Annotation},Vararg{Annotation}}
# push!(edges, (ccall(:jl_method_table_for, Any, (Any,), sig), sig))
push!(edges, Enzyme.my_methodinstance(typeof(EnzymeRules.forward), Tuple{<:FwdConfig, <:Annotation, Type{<:Annotation},Vararg{Annotation}}, world))
else
# sig = Tuple{typeof(EnzymeRules.inactive), Vararg{<:Annotation}}
# sig = Tuple{typeof(EnzymeRules.inactive), Vararg{Annotation}}
# push!(edges, (ccall(:jl_method_table_for, Any, (Any,), sig), sig))
push!(edges, Enzyme.my_methodinstance(typeof(EnzymeRules.inactive), Tuple{Vararg{Annotation}}, world))

# sig = Tuple{typeof(EnzymeRules.inactive_noinl), Vararg{<:Annotation}}
# sig = Tuple{typeof(EnzymeRules.inactive_noinl), Vararg{Annotation}}
# push!(edges, (ccall(:jl_method_table_for, Any, (Any,), sig), sig))
push!(edges, Enzyme.my_methodinstance(typeof(EnzymeRules.inactive_noinl), Tuple{Vararg{Annotation}}, world))

Expand Down

0 comments on commit 9a1d79b

Please sign in to comment.