[PATCH] D127802: [HLSL] Support HLSL vector initializers
Chris Bieneman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 14 14:50:11 PDT 2022
beanz created this revision.
beanz added reviewers: aaron.ballman, kuhar, python3kgae, MaskRay.
Herald added subscribers: Anastasia, StephenFan.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: clang.
In HLSL vectors are ext_vectors in all respects except that they
support a constructor style syntax for initializing vectors. This
change adds a translation of vector constructor arguments into
initializer lists.
This supports two oddities of HLSL syntax:
(1) HLSL vectors support constructor syntax
(2) HLSL vectors are expanded to constituate components in constructors
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D127802
Files:
clang/lib/Sema/SemaInit.cpp
clang/test/SemaHLSL/BuiltIns/vector-constructors-erros.hlsl
clang/test/SemaHLSL/BuiltIns/vector-constructors.hlsl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127802.436953.patch
Type: text/x-patch
Size: 8453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220614/aeb53215/attachment.bin>
More information about the cfe-commits
mailing list