Skip to content

Commit e315ba1

Browse files
authored
Revert "[flang][cuda][driver] Make sure flang does not switch to cc1" (#104632)
Reverts #104613
1 parent 464fa3b commit e315ba1

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

clang/lib/Driver/Types.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ bool types::isAcceptedByFlang(ID Id) {
170170
case TY_LLVM_IR:
171171
case TY_LLVM_BC:
172172
return true;
173-
case TY_PP_CUDA:
174-
case TY_CUDA:
175-
return true;
176173
}
177174
}
178175

flang/test/Driver/cuda-option.f90

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
! Test -fcuda option
22
! RUN: %flang_fc1 -cpp -x cuda -fdebug-unparse %s -o - | FileCheck %s
3-
! RUN: not %flang -cpp -x cuda %s -o - 2>&1 | FileCheck %s --check-prefix=MLIRERROR
43
! RUN: not %flang_fc1 -cpp %s -o - 2>&1 | FileCheck %s --check-prefix=ERROR
54
program main
65
#if _CUDA
@@ -13,8 +12,4 @@ program main
1312
! CHECK: INTEGER :: var = 1
1413
! CHECK: INTEGER, DEVICE :: dvar
1514

16-
! ERROR: cuda-option.f90:{{.*}}:{{.*}}: error: expected end of statement
17-
18-
! The whole pipeline is not in place yet. It will currently fail at MLIR
19-
! translation level.
20-
! MLIRERROR: failed to legalize operation 'cuf.alloc'
15+
! ERROR: cuda-option.f90:8:19: error: expected end of statement

0 commit comments

Comments
 (0)