[all-commits] [llvm/llvm-project] ff7941: [flang] Use proper attributes for runtime calls wi...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Mon Jan 30 15:40:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff794116f9815979f9a3a1195aff9be49334da7a
      https://github.com/llvm/llvm-project/commit/ff794116f9815979f9a3a1195aff9be49334da7a
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2023-01-30 (Mon, 30 Jan 2023)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
    M flang/include/flang/Optimizer/Dialect/FIRDialect.h
    M flang/lib/Lower/IO.cpp
    M flang/lib/Optimizer/CodeGen/Target.cpp
    M flang/lib/Optimizer/CodeGen/Target.h
    M flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
    A flang/test/Fir/target-rewrite-integer.fir

  Log Message:
  -----------
  [flang] Use proper attributes for runtime calls with 'i1' arguments/returns.

Clang uses signext/zeroext attributes for integer arguments shorter than
the default 'int' type on a target. So Flang has to match this for functions
from Fortran runtime and also for BIND(C) routines. This patch implements
ABI adjustments only for Fortran runtime calls. BIND(C) part will be done
separately.

This resolves https://github.com/llvm/llvm-project/issues/58579

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




More information about the All-commits mailing list