Files
llvm-project/clang/lib/CodeGen/HLSLBufferLayoutBuilder.cpp
Farzon Lotfi ca21a65dd8 [HLSL][Cbuffer][Matrix] Add Cbuffer padding and createBufferMatrixTempAddress (#181903)
fixes #181901

This change detects when a HLSL Cbuffer matrix’s layout differs from its
in-memory type and materializes a temporary with the non-padded matrix
type. Matrix elements are copied explicitly from the padded buffer
layout into the temporary, ensuring correct addressing and avoiding
overlapping GEPs or incorrect vector flattening.
2026-02-18 13:42:10 -05:00

5.9 KiB