[PATCH][ARM] Added support for krait cpu

Ana Pazos apazos at codeaurora.org
Thu Dec 5 00:11:00 PST 2013


Hello Renato,

The krait cpu attribute is not yet supported by GNU assembler (work is going
on though). The check prevents it from being printed.

I added the test you suggested.

See updated patches attached.

Thanks,
Ana.

-----Original Message-----
From: Renato Golin [mailto:renato.golin at linaro.org] 
Sent: Wednesday, December 04, 2013 12:18 AM
To: Ana Pazos
Cc: llvm-commits; Clang Commits
Subject: Re: [PATCH][ARM] Added support for krait cpu

On 4 December 2013 00:00, Ana Pazos <apazos at codeaurora.org> wrote:
> These patches add support for krait cpu in Clang and LLVM.

Hi Ana,

A few comments:

-  if (CPUString != "generic")
+  if (CPUString != "generic" && CPUString != "krait")
     ATS.emitTextAttribute(ARMBuildAttrs::CPU_name, CPUString);

I wonder why no other named CPU had to do this. I'm not particularly
comfortable with that.

About the Clang patch, would be good if you could include other tests to
match cpu->arch. (test/Driver/arm-cortex-cpus.c and friends).

cheers,
--renato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-clang-Added-support-for-mcpu-krait.patch
Type: application/octet-stream
Size: 6582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131205/73fcfc4a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-llvm-Added-support-for-mcpu-krait.patch
Type: application/octet-stream
Size: 4187 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131205/73fcfc4a/attachment-0001.obj>


More information about the cfe-commits mailing list