[llvm-branch-commits] SROA: Recognize llvm.protected.field.ptr intrinsics. (PR #151650)
Nikita Popov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Dec 5 00:06:01 PST 2025
================
@@ -158,6 +159,10 @@ class PtrUseVisitorBase {
/// The constant offset of the use if that is known.
APInt Offset;
+ // When this access is via an llvm.protected.field.ptr intrinsic, contains
+ // the second argument to the intrinsic, the discriminator.
+ Value *ProtectedFieldDisc;
----------------
nikic wrote:
Hm, it would be really good to implement this in a way that does not require hardcoding knowledge about pointer field protection into the generic PtrUseVisitor. Can the matching discriminants be verified in some other way (based on PFPUsers or so)?
https://github.com/llvm/llvm-project/pull/151650
More information about the llvm-branch-commits
mailing list