[llvm] [MTE][Darwin] This patch extends support for the stack frame history buffer to Darwin. (PR #178049)

Dan Blackwell via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 27 05:49:39 PST 2026


================
@@ -261,6 +261,25 @@ Value *getFP(IRBuilder<> &IRB) {
       IRB.getIntPtrTy(M->getDataLayout()));
 }
 
+Value *getDarwinSlotPtr(IRBuilder<> &IRB, int Slot) {
+  Module *M = IRB.GetInsertBlock()->getParent()->getParent();
+  // FIXME: This should use the thread_pointer intrinsic. However, the
+  // intrinsic is not currently implemented on Darwin correctly. The
+  // TPIDDRRO_EL0 register became part of the ABI to acess TSD on recent
----------------
DanBlackwell wrote:

NIT: typo
```suggestion
  // TPIDDRRO_EL0 register became part of the ABI to access TSD on recent
```

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


More information about the llvm-commits mailing list