[clang] [HLSL] add IsLineVectorLayoutCompatible type trait (PR #113730)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 30 11:11:40 PDT 2024


================
@@ -253,4 +253,9 @@ FIELD(IsAnyDestructorNoReturn, 1, NO_MERGE)
 /// type that is intangible). HLSL only.
 FIELD(IsHLSLIntangible, 1, NO_MERGE)
 
+/// Whether the record type is line vector layout compatible (that is,
+/// it has at most 4 elements, does not exceed 16 bytes, is homogenous,
+/// and does not contain any bool or enum types)
+FIELD(IsHLSLLineVectorLayoutCompatible, 1, NO_MERGE)
+
----------------
hekota wrote:

This bit is never assigned.

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


More information about the cfe-commits mailing list