This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Add SEH_Nop opcodes for BTI hints
ClosedPublic

Authored by mstorsjo on Oct 5 2022, 8:51 AM.

Details

Summary

These are harmless for the unwinder - the unwinder doesn't need to
handle them for being able to unwind correctly.

Only add the opcodes when the branch target is in a SEH prologue;
for jumptables e.g. within a function, we shouldn't add any SEH
opcodes.

Diff Detail

Event Timeline

mstorsjo created this revision.Oct 5 2022, 8:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2022, 8:51 AM
mstorsjo requested review of this revision.Oct 5 2022, 8:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 5 2022, 8:51 AM
This revision is now accepted and ready to land.Oct 5 2022, 10:27 AM
This revision was automatically updated to reflect the committed changes.