[all-commits] [llvm/llvm-project] 870f44: [flang][OpenMP] Fix the types of worksharing-loop ...

PeixinQiao via All-commits all-commits at lists.llvm.org
Fri May 20 00:17:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 870f4421acc67899d1fe6db392fe555a4b186e80
      https://github.com/llvm/llvm-project/commit/870f4421acc67899d1fe6db392fe555a4b186e80
  Author: Peixin-Qiao <qiaopeixin at huawei.com>
  Date:   2022-05-20 (Fri, 20 May 2022)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    A flang/test/Lower/OpenMP/omp-wsloop-variable.f90

  Log Message:
  -----------
  [flang][OpenMP] Fix the types of worksharing-loop variables

The types of lower bound, upper bound, and step are converted into the
type of the loop variable if necessary. OpenMP runtime requires 32-bit
or 64-bit loop variables. OpenMP loop iteration variable cannot have
more than 64 bits size and will be narrowed.

This patch is part of upstreaming code from the fir-dev branch of
https://github.com/flang-compiler/f18-llvm-project. (#1256)

Co-authored-by: kiranchandramohan <kiranchandramohan at gmail.com>

Reviewed By: kiranchandramohan, shraiysh

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




More information about the All-commits mailing list