diff options
author | Marco Elver <elver@google.com> | 2025-10-22 10:27:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-22 10:27:55 +0200 |
commit | eeffaf110e991791a8ff7e9b7bb40b5317c70bad (patch) | |
tree | ca2ddc99a5894b113f527ebcc95d8a4f0c78b82d /clang/lib/CIR/CodeGen/CIRGenModule.cpp | |
parent | dda30e1b7d100c5df2285d27af25f8b42b7aac19 (diff) | |
download | llvm-eeffaf110e991791a8ff7e9b7bb40b5317c70bad.zip llvm-eeffaf110e991791a8ff7e9b7bb40b5317c70bad.tar.gz llvm-eeffaf110e991791a8ff7e9b7bb40b5317c70bad.tar.bz2 |
[AllocToken] Refactor stateless token calculation into Support (#163633)
Refactor the stateless (hash-based) token calculation logic out of the
`AllocToken` pass and into `llvm/Support/AllocToken.h`.
This helps with making the token calculation logic available to other
parts of the codebase, which will be necessary for frontend
implementation of `__builtin_infer_alloc_token` to perform constexpr
evaluation.
The `AllocTokenMode` enum and a new `AllocTokenMetadata` struct are
moved into a shared header. The `getAllocTokenHash()` function now
provides the source of truth for calculating token IDs for `TypeHash`
and `TypeHashPointerSplit` modes.
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenModule.cpp')
0 files changed, 0 insertions, 0 deletions