Skip to content

Commit 1169d60

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 c7be661 commit 1169d60

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
@@ -954,6 +954,10 @@ mlir::Value genLifetimeStart(mlir::OpBuilder &builder, mlir::Location loc,
954954
void genLifetimeEnd(mlir::OpBuilder &builder, mlir::Location loc,
955955
mlir::Value mem);
956956

957+
uint64_t getGlobalAddressSpace(mlir::DataLayout *dataLayout);
958+
959+
uint64_t getProgramAddressSpace(mlir::DataLayout *dataLayout);
960+
957961
} // namespace fir::factory
958962

959963
#endif // FORTRAN_OPTIMIZER_BUILDER_FIRBUILDER_H

0 commit comments

Comments
 (0)