[llvm-branch-commits] Add llvm.protected.field.ptr intrinsic and pre-ISel lowering. (PR #151647)

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Sep 2 05:50:14 PDT 2025


================
@@ -2850,6 +2850,12 @@ def int_experimental_convergence_anchor
 def int_experimental_convergence_loop
   : DefaultAttrsIntrinsic<[llvm_token_ty], [], [IntrNoMem, IntrConvergent]>;
 
+//===----------------- Structure Protection Intrinsics --------------------===//
+
+def int_protected_field_ptr :
+  DefaultAttrsIntrinsic<[llvm_ptr_ty], [llvm_ptr_ty, llvm_i64_ty, llvm_i1_ty],
----------------
nikic wrote:

Should this use `llvm_anyptr_ty` to avoid hardcoding the address space?

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


More information about the llvm-branch-commits mailing list