diff options
| author | Marco Elver <elver@google.com> | 2025-10-21 18:50:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 18:50:44 +0200 |
| commit | 8dbc1527f7ad4197dfff8ea598634a8063bb6083 (patch) | |
| tree | dfa11bd11157f544b0909cf8e52ecf72ee3c376b /lldb/packages/Python/lldbsuite/test | |
| parent | 70f70390bb83a383fcb88ea843adbc4edf6ee34b (diff) | |
| download | llvm-8dbc1527f7ad4197dfff8ea598634a8063bb6083.zip llvm-8dbc1527f7ad4197dfff8ea598634a8063bb6083.tar.gz llvm-8dbc1527f7ad4197dfff8ea598634a8063bb6083.tar.bz2 | |
[AllocToken] Introduce llvm.alloc.token.id intrinsic (#163632)
Introduce a new intrinsic, `llvm.alloc.token.id`, to allow compile-time
querying of allocation token IDs.
The `AllocToken` pass is taught to recognize and lower this intrinsic.
It extracts the `!alloc_token` metadata from the intrinsic's argument,
feeds it into the same token-generation logic used for instrumenting allocation
calls, and replaces the intrinsic with the resulting constant integer token ID.
This is a prerequisite for `__builtin_infer_alloc_token`. The pass now
runs on all functions to ensure intrinsics are lowered, but continues to
only instrument allocation calls in functions with the
`sanitize_alloc_token` attribute.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions
