Skip to content
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

Reintroduce full AsmPrinterHandler API (#122297) #39

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

giordano
Copy link

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 commit daa0ca6 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
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