[llvm-commits] [PATCH] Improve ARM build attribute emission

Amara Emerson amara.emerson at arm.com
Fri Nov 2 02:58:58 PDT 2012


Hi,

The current build ARM attribute emission code isn't very complete and falls
down on some common use cases. More specifically, if you give a
-mcpu=cortex-a9 option to llc/lli with an appropriate module target triple,
then the wrong architecture build attrib is emitted (armv4t).

The attached patch fixes these cases by using the hasARCHOps() subtargets
methods to select the architecture type to emit. It also changes the default
architecture type to emit from v4t to v7 to make it consistent with codegen.

Review appreciated.

Thanks,
Amara
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generic-build-attrs-v3.patch
Type: application/octet-stream
Size: 2165 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121102/916722d9/attachment.obj>


More information about the llvm-commits mailing list