[PATCH] D135277: [AArch64] Add SEH_Nop opcodes for BTI hints

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 08:51:41 PDT 2022


mstorsjo created this revision.
mstorsjo added reviewers: efriedma, zzheng, sdesmalen.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135277

Files:
  llvm/lib/Target/AArch64/AArch64BranchTargets.cpp
  llvm/test/CodeGen/AArch64/wineh-bti.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135277.465422.patch
Type: text/x-patch
Size: 3307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221005/5860e03e/attachment.bin>


More information about the llvm-commits mailing list