[flang-commits] [flang] [flang][cuda] Lower c_devptr value arguments in bind(c) like c_ptr (PR #199316)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Tue May 26 13:02:42 PDT 2026


clementval wrote:

> Looks good to me.
> 
> I wonder if it would be possible to have `IsBuiltinCPtr` returns true for devptr and to have genCPtrOrCFunptrValue/genCPtrOrCFunptrAddr handle dveptr since these are already covering funptr and cptr, I think it would be reasonable to assume every code that does special processing based for funptr/cptr should do similar handling for devptr.

I have merged code where possible. 

https://github.com/llvm/llvm-project/pull/199316


More information about the flang-commits mailing list