Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling invokelatest #501

Open
vchuravy opened this issue Sep 9, 2023 · 0 comments
Open

Handling invokelatest #501

vchuravy opened this issue Sep 9, 2023 · 0 comments

Comments

@vchuravy
Copy link
Member

vchuravy commented Sep 9, 2023

f() = @debug "debug"

We see in the IR a:

  3 ── %13 = π (%9, Base.CoreLogging.AbstractLogger)                                                                                                                                                               ││     
  4 ── %14 = Core._call_latest(Base.CoreLogging.shouldlog, %13, $(QuoteNode(Debug)), Main, Symbol("REPL[2]"), :Main_1a042b14)::Any                                                                                 ││╻╷     invokelatest
  └───       goto #5                                                                                                                                                                                               │││┃      #invokelatest#2
  5 ──       goto #6                                                                                                                                                                                               │││    
  6 ──       goto #27 if not %14                                                                                                                                                                                   ││     
  7 ──       nothing::Nothing                                                                                                                                                                                      │      
  8 ──       nothing::Nothing   

Which is a invokelatest.

We currently don't offer the user to enter that call, but we should be able to.

Advanced: dump [P]arams cache.
 • %9 = invoke current_logger_for_env(::Base.CoreLogging.LogLevel,::Symbol,::Module)::Union{Nothing, Base.CoreLogging.AbstractLogger}
   %27 = invoke normpath(::String)::String
   %28 = invoke normpath(::String)::String
   %29 = invoke normpath(::String)::String
   %36 = invoke _replace_(::String,::Tuple{Pair{String, String}},::Int64)::String
   ↩
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant