[all-commits] [llvm/llvm-project] b16aa4: [clang][bytecode][HLSL][Matrix] Support `ConstantM...
Deric C. via All-commits
all-commits at lists.llvm.org
Thu Mar 5 09:46:11 PST 2026
Branch: refs/heads/users/Icohedron/pr-178762
Home: https://github.com/llvm/llvm-project
Commit: b16aa4b7ec665911c74300cd7442659b70973d13
https://github.com/llvm/llvm-project/commit/b16aa4b7ec665911c74300cd7442659b70973d13
Author: Deric C. <cheung.deric at gmail.com>
Date: 2026-03-05 (Thu, 05 Mar 2026)
Changed paths:
M clang/lib/AST/ByteCode/Compiler.cpp
M clang/lib/AST/ByteCode/Compiler.h
M clang/lib/AST/ByteCode/Pointer.cpp
M clang/lib/AST/ByteCode/Program.cpp
M clang/test/SemaHLSL/Types/BuiltinMatrix/MatrixConstantExpr.hlsl
Log Message:
-----------
[clang][bytecode][HLSL][Matrix] Support `ConstantMatrixType` and more HLSL casts in the new constant interpreter for basic matrix constexpr evaluation in HLSL (#183424)
Fixes #182963
This PR is an extension of #178762 and is to be merged immediately after
it.
This PR adds support for `ConstantMatrixType` and the HLSL casts
`CK_HLSLArrayRValue`, `CK_HLSLMatrixTruncation`,
`CK_HLSLAggregateSplatCast`, and `CK_HLSLElementwiseCast` to the
bytecode constexpr evaluator.
The implementations of CK_HLSLAggregateSplatCast and
CK_HLSLElementwiseCast are incomplete, as they still need to support
struct and array types to enable use of the experimental new constant
interpreter on other existing HLSL constexpr tests. The completion of
the implementations of these casts will be tracked in a separate issue
(#183426) and implemented in a separate PR.
Assisted-by: claude-opus-4.6
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