From 30ef92a830f3f32ff7eb9ce37b8fef19b90e325c Mon Sep 17 00:00:00 2001 From: Billy Moses Date: Fri, 6 Dec 2024 22:33:21 -0600 Subject: [PATCH] try2 --- src/compiler/interpreter.jl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/compiler/interpreter.jl b/src/compiler/interpreter.jl index 8632089649..855831316e 100644 --- a/src/compiler/interpreter.jl +++ b/src/compiler/interpreter.jl @@ -73,28 +73,28 @@ function rule_backedge_holder_generator(world::UInt, source, self, ft::Type) # this is illegal # 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.Compiler.my_methodinstance(typeof(EnzymeRules.augmented_primal), Tuple{<:RevConfig, <:Annotation, Type{<:Annotation},Vararg{Annotation}}, world)) + 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}} # push!(edges, (ccall(:jl_method_table_for, Any, (Any,), sig), sig)) - push!(edges, Enzyme.Compiler.my_methodinstance(typeof(EnzymeRules.forward), Tuple{<:FwdConfig, <:Annotation, Type{<:Annotation},Vararg{Annotation}}, world)) + push!(edges, Enzyme.my_methodinstance(typeof(EnzymeRules.forward), Tuple{<:FwdConfig, <:Annotation, Type{<:Annotation},Vararg{Annotation}}, world)) else # sig = Tuple{typeof(EnzymeRules.inactive), Vararg{<:Annotation}} # push!(edges, (ccall(:jl_method_table_for, Any, (Any,), sig), sig)) - push!(edges, Enzyme.Compiler.my_methodinstance(typeof(EnzymeRules.inactive), Tuple{Vararg{Annotation}}, world)) + push!(edges, Enzyme.my_methodinstance(typeof(EnzymeRules.inactive), Tuple{Vararg{Annotation}}, world)) # sig = Tuple{typeof(EnzymeRules.inactive_noinl), Vararg{<:Annotation}} # push!(edges, (ccall(:jl_method_table_for, Any, (Any,), sig), sig)) - push!(edges, Enzyme.Compiler.my_methodinstance(typeof(EnzymeRules.inactive_noinl), Tuple{Vararg{Annotation}}, world)) + push!(edges, Enzyme.my_methodinstance(typeof(EnzymeRules.inactive_noinl), Tuple{Vararg{Annotation}}, world)) # sig = Tuple{typeof(EnzymeRules.noalias), Vararg{Any}} # push!(edges, (ccall(:jl_method_table_for, Any, (Any,), sig), sig)) - push!(edges, Enzyme.Compiler.my_methodinstance(typeof(EnzymeRules.noalias), Tuple{Vararg{Any}}, world)) + push!(edges, Enzyme.my_methodinstance(typeof(EnzymeRules.noalias), Tuple{Vararg{Any}}, world)) # sig = Tuple{typeof(EnzymeRules.inactive_type), Type} # push!(edges, (ccall(:jl_method_table_for, Any, (Any,), sig), sig)) - push!(edges, Enzyme.Compiler.my_methodinstance(typeof(EnzymeRules.inactive_type), Tuple{Type}, world)) + push!(edges, Enzyme.my_methodinstance(typeof(EnzymeRules.inactive_type), Tuple{Type}, world)) end @show edges new_ci.edges = edges