[all-commits] [llvm/llvm-project] ada01d: [clang] New __attribute__((__clang_arm_mve_strict_...
Simon Tatham via All-commits
all-commits at lists.llvm.org
Wed Jan 15 07:05:15 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ada01d1b869763f7d5d3438dcfce02066b06ab0a
https://github.com/llvm/llvm-project/commit/ada01d1b869763f7d5d3438dcfce02066b06ab0a
Author: Simon Tatham <simon.tatham at arm.com>
Date: 2020-01-15 (Wed, 15 Jan 2020)
Changed paths:
M clang/include/clang/Basic/Attr.td
M clang/include/clang/Basic/AttrDocs.td
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/AST/TypePrinter.cpp
M clang/lib/Sema/SemaOverload.cpp
M clang/lib/Sema/SemaType.cpp
A clang/test/Sema/overload-arm-mve.c
M clang/utils/TableGen/MveEmitter.cpp
Log Message:
-----------
[clang] New __attribute__((__clang_arm_mve_strict_polymorphism)).
This is applied to the vector types defined in <arm_mve.h> for use
with the intrinsics for the ARM MVE vector architecture.
Its purpose is to inhibit lax vector conversions, but only in the
context of overload resolution of the MVE polymorphic intrinsic
functions. This solves an ambiguity problem with polymorphic MVE
intrinsics that take a vector and a scalar argument: the scalar
argument can often have the wrong integer type due to default integer
promotions or unsuffixed literals, and therefore, the type of the
vector argument should be considered trustworthy when resolving MVE
polymorphism.
As part of the same change, I've added the new attribute to the
declarations generated by the MveEmitter Tablegen backend (and
corrected a namespace issue with the other attribute while I was
there).
Reviewers: aaron.ballman, dmgreen
Reviewed By: aaron.ballman
Subscribers: kristof.beyls, JDevlieghere, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D72518
More information about the All-commits
mailing list