[all-commits] [llvm/llvm-project] b47c88: [flang] Allow compiler directives in the specifica...

vdonaldson via All-commits all-commits at lists.llvm.org
Wed Feb 1 14:51:04 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b47c88eaefcde1dbfe8d94f62b4eb25851734ffe
      https://github.com/llvm/llvm-project/commit/b47c88eaefcde1dbfe8d94f62b4eb25851734ffe
  Author: V Donaldson <vdonaldson at nvidia.com>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M flang/lib/Lower/PFTBuilder.cpp
    M flang/test/Lower/pre-fir-tree02.f90

  Log Message:
  -----------
  [flang] Allow compiler directives in the specification part of a module

Lowering code currently allows for directives inside a program or
subprogram, or outside any program unit. Directives may also appear
in the specification part of a module, as in:

module mm
  interface
     subroutine ss(aa)
       !dir$ ignore_tkr(tkr) aa
       integer :: aa(*)
     end subroutine ss
  end interface
end module

With some exceptions such as OpenMP directives, most directives are
currently ignored, so this code should generate an "ignoring all compiler
directives" message.




More information about the All-commits mailing list