summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/attr-target.c
Commit message (Collapse)AuthorAgeFilesLines
* Implement target(branch-protection) attribute for AArch64Momchil Velikov2019-11-151-1/+2
| | | | | | | | | This patch implements `__attribute__((target("branch-protection=...")))` in a manner, compatible with the analogous GCC feature: https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/AArch64-Function-Attributes.html#AArch64-Function-Attributes Differential Revision: https://reviews.llvm.org/D68711
* Clean up 'target' attribute diagnosticsErich Keane2018-02-161-9/+16
| | | | | | | | | | | | | | There were a few issues previously with the target attribute diagnostics implementation that lead to the attribute being added to the AST despite having an error in it. This patch changes that, and adds a test to ensure it does not get added to the AST. Differential Revision: https://reviews.llvm.org/D43359 llvm-svn: 325364
* Improve SEMA for attribute-targetErich Keane2017-07-191-2/+8
| | | | | | | | Add more diagnosis for the non-multiversioning case. Differential Revision: https://reviews.llvm.org/D35573 llvm-svn: 308539
* Quote the user provided string in the warning message and updateEric Christopher2015-06-121-2/+2
| | | | | | tests accordingly. llvm-svn: 239635
* Add a warning for unsupported elements of the target attribute.Eric Christopher2015-06-121-0/+2
| | | | | | | | | Since we're ignoring the tune= and fpmath= attributes go ahead and add a warning alerting people to the fact that we're going to ignore that part of it during code generation and tie it to the attribute warning set. llvm-svn: 239583
* Add support for the the target attribute.Eric Christopher2015-06-121-0/+6
Modeled after the gcc attribute of the same name, this feature allows source level annotations to correspond to backend code generation. In llvm particular parlance, this allows the adding of subtarget features and changing the cpu for a particular function based on source level hints. This has been added into the existing support for function level attributes without particular verification for any target outside of whether or not the backend will support the features/cpu given (similar to section, etc). llvm-svn: 239579
OpenPOWER on IntegriCloud