Commit 0780ec8c authored by rpenacob's avatar rpenacob
Browse files

Forbid reduction/weakreductions for the release

parent 961d7668
......@@ -118,7 +118,7 @@ OMPSS_TASK_CLAUSE(private)
OMPSS_TASK_CLAUSE(firstprivate)
OMPSS_TASK_CLAUSE(shared)
OMPSS_TASK_CLAUSE(depend)
OMPSS_TASK_CLAUSE(reduction)
// OMPSS_TASK_CLAUSE(reduction)
OMPSS_TASK_CLAUSE(in)
OMPSS_TASK_CLAUSE(out)
OMPSS_TASK_CLAUSE(inout)
......@@ -128,7 +128,7 @@ OMPSS_TASK_CLAUSE(weakin)
OMPSS_TASK_CLAUSE(weakout)
OMPSS_TASK_CLAUSE(weakinout)
OMPSS_TASK_CLAUSE(weakcommutative)
OMPSS_TASK_CLAUSE(weakreduction)
// OMPSS_TASK_CLAUSE(weakreduction)
// Clauses allowed for OmpSs directive 'release'.
OMPSS_RELEASE_CLAUSE(depend)
......
// RUN: %clang_cc1 -verify -fompss-2 -ast-dump -ferror-limit 100 %s | FileCheck %s
// expected-no-diagnostics
// UNSUPPORTED: true
void foo(int x) {
#pragma oss task reduction(max : x)
{}
......
// RUN: %clang_cc1 -x c++ -verify -fompss-2 -ast-dump -ferror-limit 100 %s | FileCheck %s
// expected-no-diagnostics
// UNSUPPORTED: true
template<typename T>
void foo(T x) {
#pragma oss task reduction(max : x)
......
// RUN: %clang_cc1 -verify -fompss-2 -disable-llvm-passes -ferror-limit 100 %s -S -emit-llvm -o - | FileCheck %s
// expected-no-diagnostics
// UNSUPPORTED: true
void foo(int x) {
#pragma oss task reduction(+: x)
{}
......
// RUN: %clang_cc1 -verify -fompss-2 -disable-llvm-passes -ferror-limit 100 %s -S -emit-llvm -o - | FileCheck %s
// expected-no-diagnostics
// UNSUPPORTED: true
void foo(int &rx) {
#pragma oss task reduction(+: rx)
{}
......
// RUN: %clang_cc1 -verify -fompss-2 -ast-print %s | FileCheck %s
// expected-no-diagnostics
// UNSUPPORTED: true
#ifndef HEADER
#define HEADER
......
// RUN: %clang_cc1 -verify -fompss-2 -ast-print %s | FileCheck %s
// expected-no-diagnostics
// UNSUPPORTED: true
int main() {
int x;
#pragma oss task reduction(operator+: x)
......
// RUN: %clang_cc1 -verify -fompss-2 -ferror-limit 100 -o - -std=c++11 %s
// expected-no-diagnostics
// UNSUPPORTED: true
// We want to check copy constructor.
#pragma oss declare reduction(direct: int: omp_out) initializer(omp_priv(0))
......
// RUN: %clang_cc1 -verify -fompss-2 -ferror-limit 100 %s -Wuninitialized
// UNSUPPORTED: true
int temp; // expected-note 6 {{'temp' declared here}}
......
......@@ -2,6 +2,7 @@
// RUN: %clang_cc1 -verify -fompss-2 -ferror-limit 100 -std=c++98 %s -Wuninitialized
// RUN: %clang_cc1 -verify -fompss-2 -ferror-limit 100 -std=c++11 %s -Wuninitialized
// UNSUPPORTED: true
......
// RUN: %clang_cc1 -verify -fompss-2 -ferror-limit 100 -o - %s
// UNSUPPORTED: true
struct S {
int x;
} s; // expected-note {{'s' defined here}}
......
// RUN: %clang_cc1 -verify -fompss-2 -ferror-limit 100 -o - -std=c++11 %s
// UNSUPPORTED: true
struct S {
int x;
} s;
......
// RUN: %clang_cc1 -verify -fompss-2 -ferror-limit 150 -o - %s
// UNSUPPORTED: true
int incomplete[];
void test() {
......
......@@ -2,6 +2,7 @@
// RUN: %clang_cc1 -verify -fompss-2 -std=c++98 -ferror-limit 150 -o - %s -Wuninitialized
// RUN: %clang_cc1 -verify -fompss-2 -std=c++11 -ferror-limit 150 -o - %s -Wuninitialized
// UNSUPPORTED: true
void xxx(int argc) {
int fp; // NOTE: initialize the variable 'fp' to silence this warning
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment