[clang] [HLSL] add IsLineVectorLayoutCompatible type trait (PR #113730)
Helena Kotas via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 30 17:09:15 PDT 2024
hekota wrote:
> If you are going to store `isHLSLLineVectorLayoutCompatibleType` on a declaration you need to modify addMember to analyze newly added members. Then move the IsLineVectorLayoutCompatibleType implementation from SemaHLSL to Type and use the bit on the record type decl instead of building flattened type list.
On the other hand, it is probably not worth caching the bit on the decl because it also needs to make sure the size is within limits, which would more involved to have on the decl than we'd probably like.
https://github.com/llvm/llvm-project/pull/113730
More information about the cfe-commits
mailing list