-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Support debuginfo
context option in IRShow for IRCode
/IncrementalCompact
#58642
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
base: master
Are you sure you want to change the base?
Conversation
Or put it in the their global repl iocontext if they want it always and to apply to e.g. |
What do you think about I would expect the latter to print a representation of the linetable itself, so it's a bit of a misnomer |
I agree that the current naming is not great. If we go with |
That sounds all right to me. Out of curiosity, how do we handle the inline vs. linetable debuginfo issue for the conversion from |
I'm not sure I see what you mean? AFAIK both |
Ah, you're right. I forgot about that. I was thinking about how inference fills this in at the end: julia/Compiler/src/typeinfer.jl Lines 130 to 138 in a4ab110
|
That's correct. Seeing the line For |
It's a bit more complicated actually, because we don't have control over the |
It appears we have two different semantics for a
The mismatch between the two expectations in the current state means that we must always show Therefore I'll go with only supporting a |
verbose_linetable
context option in IRShowdebuginfo
context option in IRShow for IRCode
/IncrementalCompact
This allows us to get complete source information during printing for
IRCode
andIncrementalCompact
, same as we do by default withCodeInfo
.The user previously had to do:
and now, they only need to do: