You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support (optionally) emitting debuginfo w.r.t. LLVM source
This change adds two new environmental variables:
- `JULIA_DUMP_IR` - when provided, this is a path that all emitted
LLVM IR (post-optimization, just before machine code generation)
will be saved to
- `JULIA_DEBUGINFO` - when set to "LLVM-IR" this will run an additional
pass on any emitted functions to rewrite their debuginfo to refer to
the LLVM source, rather than the Julia source it was generated from
The `debugir` pass that rewrites the debuginfo is vendored from:
https://github.com/vaivaswatha/debugir. For simplicity, this is just a
copy of the one file that we need for the pass.
Using both of these together allows `gdb` to open the dumped IR and means
you can step through LLVM IR line-by-line, print SSA values, etc. This can
be very useful for debugging segfaults, or issues in codegen.
Copy file name to clipboardExpand all lines: THIRDPARTY.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ for exceptions.
5
5
6
6
-[crc32c.c](https://stackoverflow.com/questions/17645167/implementing-sse-4-2s-crc32c-in-software) (CRC-32c checksum code by Mark Adler) [[ZLib](https://opensource.org/licenses/Zlib)].
7
7
-[LDC](https://github.com/ldc-developers/ldc/blob/master/LICENSE) (for ccall/cfunction ABI definitions) [BSD-3]. The portion of code that Julia uses from LDC is [BSD-3] licensed.
8
-
-[LLVM](https://releases.llvm.org/3.9.0/LICENSE.TXT) (for parts of src/disasm.cpp) [UIUC]
8
+
-[LLVM](https://releases.llvm.org/3.9.0/LICENSE.TXT) (for parts of src/disasm.cpp and src/llvm-debugir.cpp) [UIUC]
9
9
-[NetBSD](https://www.netbsd.org/about/redistribution.html) (for setjmp, longjmp, and strptime implementations on Windows) [BSD-3]
10
10
-[Python](https://docs.python.org/3/license.html) (for strtod implementation on Windows) [PSF]
0 commit comments