This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Add __ARM_FEATURE_DOTPROD pre-defined macro
ClosedPublic

Authored by olista01 on Apr 26 2018, 2:27 AM.

Details

Summary

This adds a pre-defined macro to test if the compiler has support for the v8.2-A dot rpoduct intrinsics in AArch32 mode.

The AAcrh64 equivalent has already been added by rL330229.

The ACLE spec which describes this macro hasn't been published yet, but this is based on the final internal draft, and GCC has already implemented this.

Diff Detail

Repository
rC Clang

Event Timeline

olista01 created this revision.Apr 26 2018, 2:27 AM
SjoerdMeijer accepted this revision.Apr 26 2018, 3:29 AM

Looks like a straight forward fix/addition to me.

lib/Basic/Targets/ARM.cpp
737

Nit: do we a comment here too that this is Armv8.2-A?

This revision is now accepted and ready to land.Apr 26 2018, 3:29 AM
This revision was automatically updated to reflect the committed changes.