Skip to content

Commit bffa0fd

Browse files
committed
Comment out Cthulhu integration
Broken on current versions of Cthulhu.
1 parent 1533608 commit bffa0fd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/stage2/interpreter.jl

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ struct ADCursor <: Cthulhu.AbstractCursor
66
mi::MethodInstance
77
transformed::Bool
88
end
9-
Cthulhu.get_mi(c::ADCursor) = c.mi
9+
# Cthulhu.get_mi(c::ADCursor) = c.mi
1010
ADCursor(level::Int, mi::MethodInstance) = ADCursor(level, mi, false)
1111

1212
#=
@@ -80,12 +80,13 @@ lower_level(interp::ADInterpreter) = change_level(interp, interp.current_level -
8080

8181
disable_forward(interp::ADInterpreter) = ADInterpreter(interp; forward=false)
8282

83+
#=
8384
function Cthulhu.get_optimized_codeinst(interp::ADInterpreter, curs::ADCursor)
8485
@show curs
8586
(curs.transformed ? interp.transformed : interp.opt)[curs.level][curs.mi]
8687
end
8788
Cthulhu.AbstractCursor(interp::ADInterpreter, mi::MethodInstance) = ADCursor(0, mi, false)
88-
89+
=#
8990

9091
# This is a lie, but let's clean this up later
9192
Cthulhu.can_descend(interp::ADInterpreter, @nospecialize(key), optimize::Bool) = true
@@ -163,6 +164,7 @@ function CC.is_same_frame(interp::ADInterpreter, linfo::MethodInstance, frame::I
163164
end
164165

165166
# Special handling for Recursion
167+
#=
166168
struct RecurseCallInfo <: Cthulhu.CallInfo
167169
vmi::Cthulhu.CallInfo # callinfo to be descended
168170
end
@@ -209,6 +211,7 @@ function Cthulhu.navigate(curs::ADCursor, callsite::Cthulhu.Callsite)
209211
end
210212
return ADCursor(curs.level, Cthulhu.get_mi(callsite))
211213
end
214+
=#
212215

213216
function Cthulhu.process_info(interp::ADInterpreter, @nospecialize(info::CC.CallInfo), argtypes::Cthulhu.ArgTypes, @nospecialize(rt), optimize::Bool, @nospecialize(exct))
214217
if isa(info, RecurseInfo)
@@ -271,7 +274,7 @@ function CC.add_remark!(interp::ADInterpreter, sv::InferenceState, msg)
271274
end
272275

273276
# TODO: `get_remarks` should get a cursor?
274-
Cthulhu.get_remarks(interp::ADInterpreter, key::Union{MethodInstance,InferenceResult}) = get(interp.remarks[interp.current_level], key, nothing)
277+
#Cthulhu.get_remarks(interp::ADInterpreter, key::Union{MethodInstance,InferenceResult}) = get(interp.remarks[interp.current_level], key, nothing)
275278

276279
@static if VERSION v"1.13.0-DEV.126"
277280
function diffractor_finish(@specialize(finishfunc), state::InferenceState, interp::ADInterpreter, cycleid::Int)

0 commit comments

Comments
 (0)