ahatanak wrote:

> Do we care about the memory usage from synthesizing extra attributes? I 
> assume there are a lot of these in a program that includes Apple system 
> headers.

That's a good point.

We should consider and explore removing those inferred attributes in a 
follow-up, but we have to be careful not to break clients that depend on 
platform-specific attributes being present. Passing anyappleos where they 
expect macOS or iOS would be a behavioral break.

Also, even if anyappleos currently allocates two attributes, it can still 
reduce memory usage if it's used to replace clusters of explicit per-platform 
attributes (macOS+iOS+tvOS+watchOS).


https://github.com/llvm/llvm-project/pull/190817
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to