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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to