[all-commits] [llvm/llvm-project] e811cb: [flang] Implement !DIR$ UNROLL [N] (#123331)

Jean-Didier PAILLEUX via All-commits all-commits at lists.llvm.org
Wed Jan 29 00:44:30 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e811cb00e533e9737db689e35ee6cb0d5af536cc
      https://github.com/llvm/llvm-project/commit/e811cb00e533e9737db689e35ee6cb0d5af536cc
  Author: Jean-Didier PAILLEUX <jean-di.pailleux at outlook.com>
  Date:   2025-01-29 (Wed, 29 Jan 2025)

  Changed paths:
    M flang/include/flang/Parser/dump-parse-tree.h
    M flang/include/flang/Parser/parse-tree.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Parser/Fortran-parsers.cpp
    M flang/lib/Parser/unparse.cpp
    M flang/lib/Semantics/canonicalize-directives.cpp
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Integration/unroll.f90
    A flang/test/Lower/unroll.f90
    M flang/test/Parser/compiler-directives.f90
    M flang/test/Semantics/loop-directives.f90

  Log Message:
  -----------
  [flang] Implement !DIR$ UNROLL [N] (#123331)

This patch implements support for the UNROLL directive to control how
many times a loop should be unrolled.
It must be placed immediately before a `DO LOOP` and applies only to the
loop that follows. N is an integer that specifying the unrolling factor.
This is done by adding an attribute to the branch into the loop in LLVM
to indicate that the loop should unrolled.
The code pushed to support the directive `VECTOR ALWAYS` has been
modified to take account of the fact that several directives can be used
before a `DO LOOP`.



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