Skip to content

Commit 7bddef7

Browse files
Revert "Revert "Fixes after llvm#96909""
This reverts commit f2e362e. PR: llvm#99002 causes that -fcuda-is-device is not added for AMD GPU OpenMP.
1 parent f2e362e commit 7bddef7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8024,7 +8024,7 @@ def source_date_epoch : Separate<["-"], "source-date-epoch">,
80248024
// CUDA Options
80258025
//===----------------------------------------------------------------------===//
80268026

8027-
let Visibility = [CC1Option, FC1Option] in {
8027+
let Visibility = [CC1Option] in {
80288028

80298029
def fcuda_is_device : Flag<["-"], "fcuda-is-device">,
80308030
HelpText<"Generate code for CUDA device">,
@@ -8039,7 +8039,7 @@ def fno_cuda_host_device_constexpr : Flag<["-"], "fno-cuda-host-device-constexpr
80398039
HelpText<"Don't treat unattributed constexpr functions as __host__ __device__.">,
80408040
MarshallingInfoNegativeFlag<LangOpts<"CUDAHostDeviceConstexpr">>;
80418041

8042-
} // let Visibility = [CC1Option, FC1Option]
8042+
} // let Visibility = [CC1Option]
80438043

80448044
//===----------------------------------------------------------------------===//
80458045
// OpenMP Options

flang/test/Driver/omp-driver-offload.f90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,5 +233,4 @@
233233
! RUN: --rocm-path=%S/Inputs/rocm %s 2>&1 \
234234
! RUN: | FileCheck --check-prefix=MLINK-BUILTIN-BITCODE %s
235235
! MLINK-BUILTIN-BITCODE: "{{[^"]*}}flang-new" "-fc1" "-triple" "amdgcn-amd-amdhsa"
236-
! MLINK-BUILTIN-BITCODE-SAME: "-fcuda-is-device"
237236
! MLINK-BUILTIN-BITCODE-SAME: "-mlink-builtin-bitcode" {{.*Inputs.*rocm.*amdgcn.*bitcode.*}}oclc_isa_version_900.bc

0 commit comments

Comments
 (0)