diff options
| author | Marco Elver <elver@google.com> | 2025-10-23 18:14:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-23 18:14:33 +0200 |
| commit | 7ca1472df011a3a7c341f7a866e68b2308d12442 (patch) | |
| tree | cfb9c2009ddfec066b2accedd3305579b76b870b /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | c13ac9cadf1f9b4fa886b82d1e84a5feb0439023 (diff) | |
| download | llvm-7ca1472df011a3a7c341f7a866e68b2308d12442.zip llvm-7ca1472df011a3a7c341f7a866e68b2308d12442.tar.gz llvm-7ca1472df011a3a7c341f7a866e68b2308d12442.tar.bz2 | |
[Clang] Implement constexpr evaluation for __builtin_infer_alloc_token() (#163639)
Implement the constexpr evaluation for `__builtin_infer_alloc_token()`
in Clang's constant expression evaluators (both in ExprConstant and the
new bytecode interpreter).
The constant evaluation is only supported for stateless (hash-based)
token modes. If a stateful mode like `increment` is used, the evaluation
fails, as the token value is not deterministic at compile time.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
