File tree Expand file tree Collapse file tree 9 files changed +1
-181
lines changed Expand file tree Collapse file tree 9 files changed +1
-181
lines changed Original file line number Diff line number Diff line change @@ -215,10 +215,8 @@ class SemanticsContext {
215
215
void UseFortranBuiltinsModule ();
216
216
const Scope *GetBuiltinsScope () const { return builtinsScope_; }
217
217
218
- const Scope &GetCUDABuiltinsScope ();
219
- const Scope &GetCUDADeviceScope ();
220
-
221
218
void UsePPCBuiltinTypesModule ();
219
+ const Scope &GetCUDABuiltinsScope ();
222
220
void UsePPCBuiltinsModule ();
223
221
Scope *GetPPCBuiltinTypesScope () { return ppcBuiltinTypesScope_; }
224
222
const Scope *GetPPCBuiltinsScope () const { return ppcBuiltinsScope_; }
@@ -294,7 +292,6 @@ class SemanticsContext {
294
292
const Scope *builtinsScope_{nullptr }; // module __Fortran_builtins
295
293
Scope *ppcBuiltinTypesScope_{nullptr }; // module __Fortran_PPC_types
296
294
std::optional<const Scope *> cudaBuiltinsScope_; // module __CUDA_builtins
297
- std::optional<const Scope *> cudaDeviceScope_; // module cudadevice
298
295
const Scope *ppcBuiltinsScope_{nullptr }; // module __ppc_intrinsics
299
296
std::list<parser::Program> modFileParseTrees_;
300
297
std::unique_ptr<CommonBlockMap> commonBlockMap_;
Original file line number Diff line number Diff line change @@ -82,11 +82,6 @@ struct DeviceExprChecker
82
82
}
83
83
}
84
84
}
85
- if (sym->owner ().IsModule () &&
86
- sym->owner ().parent ().IsIntrinsicModules () &&
87
- DEREF (sym->owner ().symbol ()).name () == " __cuda_device_builtins" ) {
88
- return {};
89
- }
90
85
} else if (x.GetSpecificIntrinsic ()) {
91
86
// TODO(CUDA): Check for unsupported intrinsics here
92
87
return {};
Original file line number Diff line number Diff line change @@ -3797,19 +3797,6 @@ bool SubprogramVisitor::Pre(const parser::PrefixSpec::Attributes &attrs) {
3797
3797
subp->set_cudaSubprogramAttrs (attr);
3798
3798
}
3799
3799
}
3800
- if (auto attrs{subp->cudaSubprogramAttrs ()}) {
3801
- if (*attrs == common::CUDASubprogramAttrs::Global ||
3802
- *attrs == common::CUDASubprogramAttrs::Device) {
3803
- // Implicitly USE the cudadevice module by copying its symbols in the
3804
- // current scope.
3805
- const Scope &scope{context ().GetCUDADeviceScope ()};
3806
- for (auto sym : scope.GetSymbols ()) {
3807
- if (!currScope ().FindSymbol (sym->name ())) {
3808
- currScope ().CopySymbol (sym);
3809
- }
3810
- }
3811
- }
3812
- }
3813
3800
}
3814
3801
return false ;
3815
3802
}
Original file line number Diff line number Diff line change @@ -543,14 +543,6 @@ const Scope &SemanticsContext::GetCUDABuiltinsScope() {
543
543
return **cudaBuiltinsScope_;
544
544
}
545
545
546
- const Scope &SemanticsContext::GetCUDADeviceScope () {
547
- if (!cudaDeviceScope_) {
548
- cudaDeviceScope_ = GetBuiltinModule (" cudadevice" );
549
- CHECK (cudaDeviceScope_.value () != nullptr );
550
- }
551
- return **cudaDeviceScope_;
552
- }
553
-
554
546
void SemanticsContext::UsePPCBuiltinsModule () {
555
547
if (ppcBuiltinsScope_ == nullptr ) {
556
548
ppcBuiltinsScope_ = GetBuiltinModule (" __ppc_intrinsics" );
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,8 +12,6 @@ set(MODULES
12
12
"__ppc_intrinsics"
13
13
"mma"
14
14
"__cuda_builtins"
15
- "__cuda_device_builtins"
16
- "cudadevice"
17
15
"ieee_arithmetic"
18
16
"ieee_exceptions"
19
17
"ieee_features"
@@ -33,8 +31,6 @@ if (NOT CMAKE_CROSSCOMPILING)
33
31
elseif (${filename} STREQUAL "__ppc_intrinsics" OR
34
32
${filename} STREQUAL "mma" )
35
33
set (depends ${FLANG_INTRINSIC_MODULES_DIR} /__ppc_types.mod )
36
- elseif (${filename} STREQUAL "cudadevice" )
37
- set (depends ${FLANG_INTRINSIC_MODULES_DIR} /__cuda_device_builtins.mod )
38
34
else ()
39
35
set (depends ${FLANG_INTRINSIC_MODULES_DIR} /__fortran_builtins.mod )
40
36
if (NOT ${filename} STREQUAL "__fortran_type_info" )
You can’t perform that action at this time.
0 commit comments