summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/declare_variant_messages.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [OPENMP50]Improve checks for declare variant functions compatibility.Alexey Bataev2019-12-121-3/+5
| | | | | Added check for functions compatibility in C and removed restriction for functions with no prototypes in declare variant constrcut.
* [OPENMP50]Add device/kind context selector support.Alexey Bataev2019-11-211-0/+22
| | | | | | | | | | | | Summary: Added basic parsing/sema support for device/kind context selector. Reviewers: jdoerfert Subscribers: rampitec, aheejin, fedor.sergeev, simoncook, guansong, s.egerton, hfinkel, kkwli0, caomhin, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D70245
* [OPENMP50]Do not allow multiple same context traits in the same contextAlexey Bataev2019-10-081-6/+6
| | | | | | | | | | selector. According to OpenMP 5.0, 2.3.2 Context Selectors, Restrictions, each trait-selector-name can only be specified once. Added check for this restriction. llvm-svn: 374093
* [OPENMP50]Prohibit multiple context selector sets in context selectors.Alexey Bataev2019-10-081-2/+2
| | | | | | | | According to OpenMP 5.0, 2.3.2 Context Selectors, Restrictions, each trait-set-selector-name can only be specified once. Added check to implement this restriction. llvm-svn: 374072
* [OPENMP50]Allow functions in declare variant directive to have differentAlexey Bataev2019-10-081-12/+0
| | | | | | | | | | C linkage. After some discussion with OpenMP developers, it was decided that the functions with the different C linkage can be used in declare variant directive. llvm-svn: 374057
* [OPENMP50]Suppport for multiple vendors in the same vendor contextAlexey Bataev2019-10-041-6/+6
| | | | | | | | | selector. According to OpenMP 5.0, multiple vendors could be specified in the vendor context selector via ',' as a separator. llvm-svn: 373756
* [OPENMP50]Add parsing/sema analysis for declare variant score.Alexey Bataev2019-10-021-2/+12
| | | | | | | | Context selectors may include optional score clause in format `score(<expr>):`, where `<expr>` must be a constant integer expression. Added parsing/sema analysis only. llvm-svn: 373502
* [OPENMP50]Do not emit warning for the function with the currentlyAlexey Bataev2019-09-301-1/+5
| | | | | | | | | defined body. If the function is currently defined, we should not emit a warning that it might be emitted already because it was not really emitted. llvm-svn: 373243
* [OPENMP50]Emit warnings if the functions was defined/used before markedAlexey Bataev2019-09-261-4/+3
| | | | | | | | | declare variant. We can use the original function if it was used/emitted already. So, just use warnings for these cases, not errors. llvm-svn: 373010
* [OPENMP50]Parsing/sema support for 'implementation/vendor' contextAlexey Bataev2019-09-251-0/+4
| | | | | | | | | selector. Added basic parsing/semantic support for 'implementation={vendor(<vendor>)}' context selector. llvm-svn: 372917
* [OPENMP5.0]Allow multiple context selectors in the context selectorAlexey Bataev2019-09-181-10/+10
| | | | | | | | | sets. According to OpenMP 5.0, context selector set might include several context selectors, separated with commas. Patch fixes this problem. llvm-svn: 372235
* [OPENMP5.0]Add basic support for declare variant directive.Alexey Bataev2019-09-131-0/+225
Added basic support for declare variant directive and its match clause with user context selector. llvm-svn: 371892
OpenPOWER on IntegriCloud