[all-commits] [llvm/llvm-project] 703b10: [Flang] enable fir.is_present and fir.absent with ...

kiranchandramohan via All-commits all-commits at lists.llvm.org
Fri Jun 24 01:55:54 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 703b1054e93b7fb1ce88a797f3f63feab6b5a4f7
      https://github.com/llvm/llvm-project/commit/703b1054e93b7fb1ce88a797f3f63feab6b5a4f7
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2022-06-24 (Fri, 24 Jun 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIRTypes.td
    M flang/test/Fir/optional.fir

  Log Message:
  -----------
  [Flang] enable fir.is_present and fir.absent with function types

Fortran dummy procedures and procedure pointer can be OPTIONAL, and
there is no technical reason to prevent fir.is_present and
fir.absent from accepting function types, so allow it and add test.

Note: This is part of upstreaming from the fir-dev branch of
https://github.com/flang-compiler/f18-llvm-project. This patch is
basically upstreaming the following PR.
https://github.com/flang-compiler/f18-llvm-project/pull/1568

Reviewed By: clementval

Differential Revision: https://reviews.llvm.org/D128464

Co-authored-by: Jean Perier <jperier at nvidia.com>




More information about the All-commits mailing list