Skip to content

Conversation

@giordano
Copy link
Member

Backport of llvm#122297 by @vtjnash. There were some conflicts, I hope I didn't mess it up too much.

This restores the functionality of AsmPrinterHandlers to what it was
prior to llvm#96785. The attempted
hack there of adding a duplicate DebugHandlerBase handling added a lot
of hidden state and assumptions, which just segfaulted when we tried to
continuing using this API. Instead, this just goes back to the old
design, but adds a separate array for the basic EH handles. The
duplicate array is identical to the other array of handler, but which
doesn't get their begin/endInstruction callbacks called. This still
saves the negligible but measurable amount of virtual function calls as
was the goal of llvm#96785, while restoring the API to the pre-LLVM-19
status quo.

(cherry picked from commit f6b0555)
@giordano giordano force-pushed the mg/jn/orc-initsym-unique branch from b39ea99 to 303a361 Compare January 18, 2025 12:26
@giordano giordano merged this pull request into julia-release/19.x Jan 21, 2025
2 checks passed
@giordano giordano deleted the mg/jn/orc-initsym-unique branch January 21, 2025 19:45
@giordano giordano restored the mg/jn/orc-initsym-unique branch January 21, 2025 19:55
@giordano giordano deleted the mg/jn/orc-initsym-unique branch January 21, 2025 19:59
Zentrik added a commit to Zentrik/llvm_julia_tester that referenced this pull request Feb 8, 2025
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