forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reliable line numbers in code info printing (JuliaLang#29893)
* code_llvm annotations: format prettier Use box-drawing characters and indentation to make the output readable more rapidly. * code_typed/code_lowered: format line-info similarly to code_llvm/code_native For consistency of user experience, reduce the variance in our IR printing across formats. This also now shows inlining and line number information even if the output device might not support color, which was previously impossible (a regression since v0.6). * code formatting: reduce inlining indentation Here we make the observation that it's somewhat common to have chains of methods of one function that recursively handle arguments in some fashion (for example, map-tuple or +). However, since they all have the same method name, it's possible to represent these on a single line. * code show: thread debuginfo verbosity parameter throughout APIs These levels are intended to roughly correspond approximately to compiler options -g0 (none) through -g2 (including local variables). Currently we do not implement the ability to represent local variable information, so the default is to only show line number information suitable for identifying the source line of a given statement (but not the types). * code formatting: enable color usage Only for Julia IR, for now. Later, this should be threaded into code_llvm and enabled there also. I chose green for new nodes (like new life), and used yellow for metadata (because the strong contrast helps to hide it visually, and similar to sticky notes), and used grey for basic blocks (because they are minor information), and used cyan/gray/Base.warn_color() for type information (because that's what we've always used).
- Loading branch information
Showing
20 changed files
with
580 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.