[llvm-branch-commits] [llvm] [AllocToken, Clang] Implement __builtin_alloc_token_infer() and llvm.alloc.token.id (PR #156842)

Oliver Hunt via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Sep 9 22:54:26 PDT 2025


================
@@ -3352,10 +3352,15 @@ class CodeGenFunction : public CodeGenTypeCache {
   SanitizerAnnotateDebugInfo(ArrayRef<SanitizerKind::SanitizerOrdinal> Ordinals,
                              SanitizerHandler Handler);
 
-  /// Emit additional metadata used by the AllocToken instrumentation.
+  /// Emit metadata used by the AllocToken instrumentation.
+  llvm::MDNode *EmitAllocTokenHint(QualType AllocType);
----------------
ojhunt wrote:

Or Compute? or something other than Emit. You're not emitting the hint, you're simply constructing it to permit it to be usable in multiple places :D

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


More information about the llvm-branch-commits mailing list