This is an archive of the discontinued LLVM Phabricator instance.

[ARMv8-M] Add Clang targeting for ARMv8-M Baseline/Mainline
ClosedPublic

Authored by bsmith on Dec 7 2015, 3:21 AM.

Details

Summary

This patch forms part of the ARMv8-M Baseline/Mainline support, adding Clang targeting for ARMv8-M Baseline/Mainline.

ARMv8-M Mainline is a superset of ARMv7-M, containing all ARMv7-M instructions plus ARMv8-A semaphores and atomics and the ARMv8-M security extensions.

ARMv8-M Baseline is a superset of ARMv6-M, containing all ARMv6-M instructions plus ARMv8-A semaphores and atomics, ARMv7-M exclusives, various code optimization instructions (wide branches, CBZ, hardware divide), MOVW/MOVT and the ARMv8-M security extensions.

Diff Detail

Repository
rL LLVM

Event Timeline

bsmith updated this revision to Diff 42050.Dec 7 2015, 3:21 AM
bsmith retitled this revision from to [ARMv8-M] Add Clang targeting for ARMv8-M Baseline/Mainline.
bsmith updated this object.
bsmith added a reviewer: t.p.northover.
bsmith set the repository for this revision to rL LLVM.
bsmith added a subscriber: cfe-commits.
bsmith updated this revision to Diff 43884.Jan 4 2016, 6:22 AM

Rebase patch against latest changes made to ARMv8-M targeting, specifically the removal of 'B' as a profile.

Now that the LLVM side of this is committed, it would be great to get this reviewed also, thanks.

Ping, it would be nice to get this committed to complete ARMv8-M support.

bsmith added a comment.Mar 1 2016, 2:29 AM

Ping. This change has been waiting for review for over a month now, it would be great to get this committed. Thanks.

Hi Bradley

This matches the GCC targeting options:
https://sourceware.org/ml/binutils/2015-12/msg00295.html
https://sourceware.org/ml/binutils/2015-12/msg00296.html

The code changes LGTM. I think as this patch has been available since late January enough time has passed for others to comment. So you should commit.

bsmith accepted this revision.Mar 3 2016, 5:57 AM
bsmith added a reviewer: bsmith.
This revision is now accepted and ready to land.Mar 3 2016, 5:57 AM
bsmith closed this revision.Mar 3 2016, 5:57 AM

Committed as r262619.