DominikAdamski wrote: > > fcuda-is-device flag is not used by Flang currently. In the future it will > > be needed for Flang equivalent functions: > > AMDGPUTargetCodeGenInfo::getGlobalVarAddressSpace > > AMDGPUTargetInfo::getTargetDefines . > > I don't follow - why would anything related to CUDA be relevant here?
Clang for AMDGPU supports OpenMP and [HIP](https://clang.llvm.org/docs/HIPSupport.html) and it reuses the same code. For example `-fcuda-is-device` flag needs to be checked for [legacy HIP host code](https://github.com/llvm/llvm-project/blob/2033b1cf16f040e1369d8efba8439dcd3e36ed31/clang/lib/Basic/Targets/AMDGPU.cpp#L278). I would like to reuse the same part of the AMD GPU toolchain for Flang. https://github.com/llvm/llvm-project/pull/96742 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits