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

Merge upstream-llvm-merge branch #1

Conversation

arichardson
Copy link

This fixes the .gcc_exception_table issue for me.

We are emitting the local function symbol alias in a slightly weird
order, which will be fixed in the following commits.
Match the .L<fn>$local: approach and emit it after the symbol.
There is no need to define our own non-preemptible local symbol since
upstream now has the $local non-preemptible symbol. Since the latest
merge it also includes my upstreamed fixes to always have the right type
and size attributes, so it is safe to use here.
This avoids one dependency on clang and will hopefully allow removing it
entirely soon. Ideally this would be written as an assembly test but
adding the right directives for EH tables is tedious, so I went for
IR instead.
Without it, we would crash if GV.canBenefitFromLocalAlias() returns
false (e.g. when the function is not dso_local).
@veselypeta veselypeta merged commit 8bf90f4 into veselypeta:petr/upstream-llvm-merge-2 Sep 17, 2024
@arichardson arichardson deleted the petr/upstream-llvm-merge-2 branch September 17, 2024 21:08
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