[ARM,MVE] Fix user-namespace violation in arm_mve.h.
authorSimon Tatham <simon.tatham@arm.com>
Thu, 12 Mar 2020 09:57:40 +0000 (09:57 +0000)
committerSimon Tatham <simon.tatham@arm.com>
Thu, 12 Mar 2020 11:13:50 +0000 (11:13 +0000)
commitd608fee8399a9fa6f2819076131c6ac30cc16eef
treeaee4d5d8bdbf0c83cf46e025122f684a895c2bf3
parent13be27482e5300ac8d7cafacd8a046a6611ad1c4
[ARM,MVE] Fix user-namespace violation in arm_mve.h.

Summary:
We were generating the declarations of polymorphic intrinsics using
`__attribute__((overloadable))`. But `overloadable` is a valid
identifier for an end user to define as a macro in a C program, and if
they do that before including `<arm_mve.h>`, then we shouldn't cause a
compile error.

Fixed to spell the attribute name `__overloadable__` instead.

Reviewers: miyuki, MarkMurrayARM, ostannard

Reviewed By: miyuki

Subscribers: kristof.beyls, dmgreen, danielkiss, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D75997
clang/utils/TableGen/MveEmitter.cpp