[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: Detect address materialization and arithmetics (PR #132540)

Kristof Beyls via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 31 06:28:49 PDT 2025


================
@@ -355,37 +399,39 @@ class PacRetAnalysis
       return State();
     }
 
+    // First, compute various properties of the instruction, taking the state
+    // before its execution into account, if necessary.
+
+    BitVector Clobbered = getClobberedRegs(Point);
+    // Compute the set of registers that can be considered as written by
+    // an authentication instruction. This includes operations that are
+    // *strictly better* than authentication, such as materializing a
+    // PC-relative constant.
----------------
kbeyls wrote:

See my comment above, I hope we can come up with a better name than `AuthenticatedOrBetter`.

https://github.com/llvm/llvm-project/pull/132540


More information about the llvm-branch-commits mailing list