Skip to content

Commit 77500cd

Browse files
authored
Revert "[flang][cuda] Add c_devptr and bypass output semantic check (#107318)"
This reverts commit c2fc332.
1 parent ad89e61 commit 77500cd

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

flang/lib/Semantics/check-io.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,11 +1171,6 @@ parser::Message *IoChecker::CheckForBadIoType(const evaluate::DynamicType &type,
11711171
"Derived type '%s' in I/O may not be polymorphic unless using defined I/O"_err_en_US,
11721172
derived.name());
11731173
}
1174-
if (IsBuiltinDerivedType(&derived, "c_ptr") ||
1175-
IsBuiltinDerivedType(&derived, "c_devptr")) {
1176-
// Bypass the check below for c_ptr and c_devptr.
1177-
return nullptr;
1178-
}
11791174
if (const Symbol *
11801175
bad{FindInaccessibleComponent(which, derived, scope)}) {
11811176
return &context_.Say(where,

flang/module/__fortran_builtins.f90

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@
102102
__builtin_threadIdx, __builtin_blockDim, __builtin_blockIdx, &
103103
__builtin_gridDim
104104
integer, parameter, public :: __builtin_warpsize = 32
105-
106-
type, public, bind(c) :: __builtin_c_devptr
107-
type(__builtin_c_ptr) :: cptr
108-
end type
109105

110106
intrinsic :: __builtin_fma
111107
intrinsic :: __builtin_ieee_is_nan, __builtin_ieee_is_negative, &

flang/test/Lower/CUDA/cuda-devptr.cuf

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)