@@ -6,7 +6,7 @@ struct ADCursor <: Cthulhu.AbstractCursor
66 mi:: MethodInstance
77 transformed:: Bool
88end
9- Cthulhu. get_mi (c:: ADCursor ) = c. mi
9+ # Cthulhu.get_mi(c::ADCursor) = c.mi
1010ADCursor (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
8181disable_forward (interp:: ADInterpreter ) = ADInterpreter (interp; forward= false )
8282
83+ #=
8384function Cthulhu.get_optimized_codeinst(interp::ADInterpreter, curs::ADCursor)
8485 @show curs
8586 (curs.transformed ? interp.transformed : interp.opt)[curs.level][curs.mi]
8687end
8788Cthulhu.AbstractCursor(interp::ADInterpreter, mi::MethodInstance) = ADCursor(0, mi, false)
88-
89+ =#
8990
9091# This is a lie, but let's clean this up later
9192Cthulhu. can_descend (interp:: ADInterpreter , @nospecialize (key), optimize:: Bool ) = true
@@ -163,6 +164,7 @@ function CC.is_same_frame(interp::ADInterpreter, linfo::MethodInstance, frame::I
163164end
164165
165166# Special handling for Recursion
167+ #=
166168struct RecurseCallInfo <: Cthulhu.CallInfo
167169 vmi::Cthulhu.CallInfo # callinfo to be descended
168170end
@@ -209,6 +211,7 @@ function Cthulhu.navigate(curs::ADCursor, callsite::Cthulhu.Callsite)
209211 end
210212 return ADCursor(curs.level, Cthulhu.get_mi(callsite))
211213end
214+ =#
212215
213216function 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)
271274end
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"
277280function diffractor_finish (@specialize (finishfunc), state:: InferenceState , interp:: ADInterpreter , cycleid:: Int )
0 commit comments