[llvm-commits] [PATCH]: wrong PPC32 targetdata in llvm

Chris Lattner clattner at apple.com
Thu Jun 30 13:12:50 PDT 2011


On Jun 30, 2011, at 11:30 AM, Duncan Sands wrote:

>> There was a decision to try to make Clang independent of the linked-in
>> target machines;  the virtue is that Clang can generate IR for an arbitrary
>> target without needing an actual backend, which (among other things)
>> simplifies cross-platform testing.  The disadvantage, of course, is
>> code / information duplication.
> 
> As a sanity check, if the given target is linked into LLVM, maybe clang can
> detect that and assert that the datalayouts (and other duplicated info) is
> the same.

Yes, this sounds like the right approach to me.

-Chris



More information about the llvm-commits mailing list