Skip to content

Triple: Record default exception handling type #147225

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

Conversation

arsenm
Copy link
Contributor

@arsenm arsenm commented Jul 7, 2025

Currently the default exception handling type is scattered
across the backends in MCAsmInfo constructors. Allow this
to be computed from the triple so the IR can centrally determine
the set of ABI calls.

Currently the default exception handling type is scattered
across the backends in MCAsmInfo constructors. Allow this
to be computed from the triple so the IR can centrally determine
the set of ABI calls.
Copy link
Contributor Author

arsenm commented Jul 7, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@arsenm arsenm closed this in 1121034 Jul 7, 2025
@luporl
Copy link
Contributor

luporl commented Jul 9, 2025

This PR caused failures on https://lab.llvm.org/buildbot/#/builders/161/builds/6921.

MCJITTests fail with commit 1121034 and pass with the commit right before it.

@arsenm, can you please take a look?

arsenm added a commit that referenced this pull request Jul 10, 2025
Fixes asserting with windows-elf triples. Should fix regression
reported in #147225 (comment)

I'm not sure this is a valid triple, but I'm guessing the MCJIT usage
is an accident. This does change the behavior from trying to use WinEH
to DwarfCFI; however the backend crashes with WinEH so I'm assuming following
ELF is the more correct option.
@arsenm
Copy link
Contributor Author

arsenm commented Jul 10, 2025

This PR caused failures on https://lab.llvm.org/buildbot/#/builders/161/builds/6921.

MCJITTests fail with commit 1121034 and pass with the commit right before it.

@arsenm, can you please take a look?

#147875 I think fixes it

arsenm added a commit that referenced this pull request Jul 10, 2025
Fixes asserting with windows-elf triples. Should fix regression
reported in #147225 (comment)

I'm not sure this is a valid triple, but I'm guessing the MCJIT usage
is an accident. This does change the behavior from trying to use WinEH
to DwarfCFI; however the backend crashes with WinEH so I'm assuming following
ELF is the more correct option.
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Jul 10, 2025
…147875)

Fixes asserting with windows-elf triples. Should fix regression
reported in llvm/llvm-project#147225 (comment)

I'm not sure this is a valid triple, but I'm guessing the MCJIT usage
is an accident. This does change the behavior from trying to use WinEH
to DwarfCFI; however the backend crashes with WinEH so I'm assuming following
ELF is the more correct option.
@luporl
Copy link
Contributor

luporl commented Jul 10, 2025

#147875 I think fixes it

That fixed it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants