Skip to content

Commit e370a2e

Browse files
committed
[Flang][OpenMP] Additional global address space modifications for device
A prior PR added a portion of the global address space modifications required for declare target to, this PR seeks to add a small amount more leftover from that PR. The intent is to allow for more correct IR that the backends (in particular AMDGPU) can treat more aptly for optimisations and code correctness 1/3 required PRs to enable declare target to mapping, should look at PR 3/3 to check for full green passes (this one will fail a number due to some dependencies). Co-authored-by: Raghu Maddhipatla [email protected]
1 parent 727df08 commit e370a2e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flang/include/flang/Optimizer/Builder/FIRBuilder.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,10 @@ uint64_t getGlobalAddressSpace(mlir::DataLayout *dataLayout);
958958

959959
uint64_t getProgramAddressSpace(mlir::DataLayout *dataLayout);
960960

961+
uint64_t getGlobalAddressSpace(mlir::DataLayout *dataLayout);
962+
963+
uint64_t getProgramAddressSpace(mlir::DataLayout *dataLayout);
964+
961965
} // namespace fir::factory
962966

963967
#endif // FORTRAN_OPTIMIZER_BUILDER_FIRBUILDER_H

0 commit comments

Comments
 (0)