[all-commits] [llvm/llvm-project] 7ca147: [Clang] Implement constexpr evaluation for __built...
Marco Elver via All-commits
all-commits at lists.llvm.org
Thu Oct 23 09:14:55 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7ca1472df011a3a7c341f7a866e68b2308d12442
https://github.com/llvm/llvm-project/commit/7ca1472df011a3a7c341f7a866e68b2308d12442
Author: Marco Elver <elver at google.com>
Date: 2025-10-23 (Thu, 23 Oct 2025)
Changed paths:
M clang/include/clang/Basic/DiagnosticASTKinds.td
M clang/lib/AST/ByteCode/InterpBuiltin.cpp
M clang/lib/AST/ExprConstant.cpp
M clang/test/SemaCXX/alloc-token.cpp
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list