[ARM NEON] Avoid duplicated decarations
authorDiogo N. Sampaio <diogo.sampaio@arm.com>
Tue, 3 Sep 2019 09:16:44 +0000 (09:16 +0000)
committerDiogo N. Sampaio <diogo.sampaio@arm.com>
Tue, 3 Sep 2019 09:16:44 +0000 (09:16 +0000)
commit7a65f5ebee3fd89d195a4051d349a6ce2d2df21e
treefca871e43748e32547450bec23e2ccd48134fe3d
parentd77ea5b297a47015ed00d3e46db1f58a146edc20
[ARM NEON] Avoid duplicated decarations

Summary:
The declaration of arm neon intrinsics that are
"big endian safe" print the same code for big
and small endian targets.
This patch avoids duplicates by checking if an
intrinsic is safe to have a single definition.
(decreases header 11k lines out of 73k).

Reviewers: t.p.northover, ostannard, labrinea

Reviewed By: ostannard

Subscribers: kristof.beyls, cfe-commits, olista01

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66588

llvm-svn: 370716
clang/utils/TableGen/NeonEmitter.cpp