Skip to content

DILocation: Support 32-bit column number#52

Open
topolarity wants to merge 1 commit into
julia-release/21.xfrom
ct/dwarf-32bit-col
Open

DILocation: Support 32-bit column number#52
topolarity wants to merge 1 commit into
julia-release/21.xfrom
ct/dwarf-32bit-col

Conversation

@topolarity

Copy link
Copy Markdown
Member

Motivated by JuliaLang/julia#61699 / JuliaLang/julia#53925

This allows Julia to recover DebugInfo indices from the DWARF column for functions with > 65k IR statements.
Functions of that length are not terribly uncommon, so we likely want to carry this patch even though upstream probably won't be very interested in it.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@topolarity topolarity force-pushed the ct/dwarf-32bit-col branch from 3bf743b to aa56f7c Compare May 29, 2026 15:20
@topolarity

Copy link
Copy Markdown
Member Author

@vchuravy @gbaraldi Any complaints before I merge?

@topolarity

topolarity commented Jun 1, 2026

Copy link
Copy Markdown
Member Author

@maleadt Gabriel mentioned that GPU backends sometimes care about the serialized LLVM IR

I don't think this should cause any major incompatibilities, although there's a good chance the >16-bit column numbers could cause older LLVM's without the patch to reject the IR? I assume the downgrader might need an upgrade

@vchuravy

vchuravy commented Jun 4, 2026

Copy link
Copy Markdown
Member

Would be good to open upstream

@topolarity

Copy link
Copy Markdown
Member Author

Would be good to open upstream

Already open (llvm#201269) but it's an awkward pitch so far, esp. given upcoming changes

If you have thoughts, let me know @vchuravy

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

Successfully merging this pull request may close these issues.

2 participants