Skip to content

Commit 2f1d47b

Browse files
authored
Merge pull request #245 from AMD-Lightning-Internal/amd/dev/dpalermo/fopenacc
[OpenMP][OpenACC] Disable the unsupported -fopenacc option
2 parents 4adf25f + fc76b6f commit 2f1d47b

25 files changed

+52
-6
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,9 +1483,10 @@ def fno_hip_emit_relocatable : Flag<["-"], "fno-hip-emit-relocatable">,
14831483
}
14841484

14851485
// Clang specific/exclusive options for OpenACC.
1486+
// Unsupported on AMD downstream
14861487
def openacc_macro_override
14871488
: Separate<["-"], "fexperimental-openacc-macro-override">,
1488-
Visibility<[ClangOption, CC1Option]>,
1489+
Visibility<[]>,
14891490
Group<f_Group>,
14901491
HelpText<"Overrides the _OPENACC macro value for experimental testing "
14911492
"during OpenACC support development">;
@@ -3797,10 +3798,9 @@ def fno_openmp_target_debug : Flag<["-"], "fno-openmp-target-debug">;
37973798
//===----------------------------------------------------------------------===//
37983799
// FlangOption + FC1 + ClangOption + CC1Option
37993800
//===----------------------------------------------------------------------===//
3800-
let Visibility = [FC1Option, FlangOption, CC1Option, ClangOption] in {
3801-
def fopenacc : Flag<["-"], "fopenacc">, Group<f_Group>,
3801+
// Unsupported on AMD downstream
3802+
def fopenacc : Flag<["-"], "fopenacc">, Group<f_Group>, Visibility<[]>,
38023803
HelpText<"Enable OpenACC">;
3803-
} // let Visibility = [FC1Option, FlangOption, CC1Option, ClangOption]
38043804

38053805
//===----------------------------------------------------------------------===//
38063806
// Optimisation remark options

clang/test/AST/ast-print-openacc-combined-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -Wno-openacc-deprecated-clause-alias -ast-print %s -o - | FileCheck %s
24

35
constexpr int get_value() { return 1; }

clang/test/AST/ast-print-openacc-compute-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -Wno-openacc-deprecated-clause-alias -ast-print %s -o - | FileCheck %s
24

35
void foo() {

clang/test/AST/ast-print-openacc-data-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -Wno-openacc-deprecated-clause-alias -Wno-source-uses-openacc -ast-print %s -o - | FileCheck %s
24

35
void foo() {

clang/test/AST/ast-print-openacc-init-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
24

35
unsigned Int;

clang/test/AST/ast-print-openacc-loop-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -Wno-openacc-deprecated-clause-alias -ast-print %s -o - | FileCheck %s
24

35
struct SomeStruct{};

clang/test/AST/ast-print-openacc-set-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
24

35
unsigned Int;

clang/test/AST/ast-print-openacc-shutdown-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
24

35
unsigned Int;

clang/test/AST/ast-print-openacc-update-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
24
void uses(bool cond) {
35
int I;

clang/test/AST/ast-print-openacc-wait-construct.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// -fopenacc unsupported on AMD downstream
2+
// UNSUPPORTED: true
13
// RUN: %clang_cc1 -fopenacc -ast-print %s -o - | FileCheck %s
24

35
void uses() {

0 commit comments

Comments
 (0)