AlexVlx wrote:

> > More specifically, how do you expect Clang to figure this out when e.g. 
> > compiling C++ for some AS rich target that decided to default to something 
> > odd
> 
> I do not expect clang to be using the datalayout to decide anything. That is 
> not really the purpose of the datalayout. It does not provide semantic 
> information to the frontend. The frontend needs to directly understand the 
> source language semantics and the address spaces of the target.

So your solution here is to simply "infect" every language with full address 
space awareness? Seems problematic. Furthermore, this stance on DataLayout is 
somewhat curious, considering we do use it precisely for that, in Clang, around 
things like globals and `alloca`s. What's your suggestion there?

https://github.com/llvm/llvm-project/pull/108786
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to