[all-commits] [llvm/llvm-project] 8b1283: [clang] Introduce elementwise ctlz/cttz builtins (...
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Wed Aug 20 04:18:49 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8b128388b527ac196e06115dd2496e2e9d59e565
https://github.com/llvm/llvm-project/commit/8b128388b527ac196e06115dd2496e2e9d59e565
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2025-08-20 (Wed, 20 Aug 2025)
Changed paths:
M clang/docs/LanguageExtensions.rst
M clang/include/clang/Basic/Builtins.td
M clang/include/clang/Basic/DiagnosticASTKinds.td
M clang/lib/AST/ByteCode/InterpBuiltin.cpp
M clang/lib/AST/ExprConstant.cpp
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/lib/Sema/SemaChecking.cpp
M clang/test/CodeGen/builtins-elementwise-math.c
M clang/test/Sema/builtins-elementwise-math.c
M clang/test/Sema/constant-builtins-vector.cpp
Log Message:
-----------
[clang] Introduce elementwise ctlz/cttz builtins (#131995)
These builtins are modeled on the clzg/ctzg builtins, which accept an
optional second argument. This second argument is returned if the first
argument is 0. These builtins unconditionally exhibit zero-is-undef
behaviour, regardless of target preference for the other ctz/clz
builtins. The builtins have constexpr support.
Fixes #154113
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