[llvm-commits] [PATCH, Clang, ARM]: armv4 selection

John Tytgat john at bass-software.com
Tue Oct 5 12:42:20 PDT 2010


Ping. <URL:http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20100927/108728.html>

In message <8c49135e51.Jo at hobbes.bass-software.com>
          John Tytgat <john at bass-software.com> wrote:

> When Clang has host triple armv4-unknown-eabi we're actually wrongly
> selecting armv4t architecture (resulting in unwanted BX usage) because in
> getARMTargetCPU() MArch with value "armv4" wrongly results in CPU return
> value "arm7tmdi" which later on in getLLVMArchSuffixForARM() gets back
> converted in "v4t" architecture.
> 
> Patch attached to fix this, together with a couple of other corrections
> based on ARM.td info (I've dropped armv2/armv2a/armv3/armv3m architectures
> as we don't have support for those).
> 
> I've considered making direct use of ARM.td (triggered by the "FIXME:
> tblgen this." oomment) but I'm not sure if that's public from Clang pov.
> Or should we rather duplicate the ARM arch/cpu data from ARM.td in a
> new tblgen file for Clang usage ?
> 
> John.

-- 
John Tytgat
John at bass-software.com



More information about the llvm-commits mailing list