[clang] [HLSL] Implement HLSL splatting (PR #118992)

Sarah Spall via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 13 08:07:10 PST 2025


================
@@ -370,6 +370,9 @@ CAST_OPERATION(HLSLArrayRValue)
 // Aggregate by Value cast (HLSL only).
 CAST_OPERATION(HLSLElementwiseCast)
 
+// Splat cast for Aggregates (HLSL only).
+CAST_OPERATION(HLSLSplatCast)
----------------
spall wrote:

This cast technically also splats vectors in 1 very specific case, but I guess vectors are aggregates :) even if not in the clang code.

https://github.com/llvm/llvm-project/pull/118992


More information about the cfe-commits mailing list