aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2025-02-04 13:21:33 +1100
committerLang Hames <lhames@gmail.com>2025-02-05 19:40:30 +1100
commiteae6d6d18bd4d9e7dfe5fc1206d23d8ef663c8c7 (patch)
tree482d4ff925bd6a65a2d211c6ffbe83f95c472072 /llvm/lib/CodeGen/MachineScheduler.cpp
parent84b0c128a751acfbf5b439edc724ba27d1da653e (diff)
downloadllvm-eae6d6d18bd4d9e7dfe5fc1206d23d8ef663c8c7.zip
llvm-eae6d6d18bd4d9e7dfe5fc1206d23d8ef663c8c7.tar.gz
llvm-eae6d6d18bd4d9e7dfe5fc1206d23d8ef663c8c7.tar.bz2
Re-reapply "[ORC] Enable JIT support for the compact-unwind..." with fixes.
Re-enables compact-unwind support in JITLink, which was reverted in b04847b427d due to buildbot failures. The underlying cause for the failures on the buildbots was the lack of compact-unwind registration support on older Darwin OSes. Since the CompactUnwindManager pass now removes eh-frames by default we were left with unwind-info that could not be registered. On x86-64, where eh-frame info is produced by default the solution is to fall back to using eh-frames. On arm64 we simply can't support exceptions on older OSes. This patch updates the EHFrameRegistrationPlugin to remove the compact-unwind section (__LD,__compact_unwind) when installed, forcing use of eh-frames when the EHFrameRegistrationPlugin is used. In LLJIT, the EHFrameRegistrationPlugin continues to be used for all non-Darwin platform, and will be added on Darwin platforms when the a CompactUnwindRegistrationPlugin instance can't be created (e.g. due to missing support for compact-unwind info registration). The lit.cfg.py script is updated to check whether the host OSes default unwind info supports JIT registration, allowing tests to be disabled for older Darwin OSes on arm64.
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions