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

Slava Zakharin via All-commits all-commits at lists.llvm.org
Wed Nov 30 11:52:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5b0de35bdd9a3f4d4a093e7938b06add34678eb
      https://github.com/llvm/llvm-project/commit/d5b0de35bdd9a3f4d4a093e7938b06add34678eb
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2022-11-30 (Wed, 30 Nov 2022)

  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/Lower/IntrinsicCall.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/D137050




More information about the All-commits mailing list