[all-commits] [llvm/llvm-project] 92e75c: Reland [flang][cuda] Add c_devptr and bypass outpu...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Sep 5 11:44:34 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92e75c095bb380039f32218534f78c4580bf76e4
      https://github.com/llvm/llvm-project/commit/92e75c095bb380039f32218534f78c4580bf76e4
  Author: Valentin Clement (バレンタイン クレメン) <clementval at gmail.com>
  Date:   2024-09-05 (Thu, 05 Sep 2024)

  Changed paths:
    M flang/include/flang/Common/Fortran-features.h
    M flang/lib/Semantics/check-io.cpp
    M flang/module/__fortran_builtins.f90
    A flang/test/Lower/CUDA/cuda-devptr.cuf

  Log Message:
  -----------
  Reland [flang][cuda] Add c_devptr and bypass output semantic check (#107353)

Add a builtin type for c_devptr since it will need some special handling
for some function like c_f_pointer.
`c_ptr` is defined as a builtin type and was raising a semantic error if
you try to use it in a I/O statement. This patch add a check for c_ptr
and c_devptr to bypass the semantic check and allow the variables of
these types to be used in I/O.

This version of the patch keeps the semantic error when -pedantic is
enabled to align with gfortran.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list