[llvm] [BOLT][AArch64] Handle OpNegateRAState to enable optimizing binaries with pac-ret hardening (PR #120064)
Maksim Panchenko via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 22 22:56:55 PDT 2025
================
@@ -72,7 +72,12 @@ class MCAnnotation {
kLabel, /// MCSymbol pointing to this instruction.
kSize, /// Size of the instruction.
kDynamicBranch, /// Jit instruction patched at runtime.
- kGeneric /// First generic annotation.
+ kSigned, /// Inst is in a range where RA is signed.
+ kUnsigned, /// Inst is in a range where RA is unsigned.
+ kRememberState, /// Inst has rememberState CFI.
+ kRestoreState, /// Inst has restoreState CFI.
+ kNegateState, /// Inst has OpNegateRAState CFI.
----------------
maksfb wrote:
nit: for clarity, let's add `RA`. E.g., `kSigned` -> `kRASigned`, etc.
https://github.com/llvm/llvm-project/pull/120064
More information about the llvm-commits
mailing list