[all-commits] [llvm/llvm-project] 87374a: [flang] Add support for lowering directives at the...
vdonaldson via All-commits
all-commits at lists.llvm.org
Wed Jun 12 06:35:37 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 87374a8cffb6b6f589e8810a4d8502623e9d0268
https://github.com/llvm/llvm-project/commit/87374a8cffb6b6f589e8810a4d8502623e9d0268
Author: vdonaldson <37090318+vdonaldson at users.noreply.github.com>
Date: 2024-06-12 (Wed, 12 Jun 2024)
Changed paths:
M flang/include/flang/Lower/PFTBuilder.h
M flang/lib/Lower/Bridge.cpp
M flang/lib/Lower/PFTBuilder.cpp
A flang/test/Lower/pre-fir-tree09.f90
Log Message:
-----------
[flang] Add support for lowering directives at the CONTAINS level (#95123)
There is currently support for lowering directives that appear outside
of a module or procedure, or inside the body of a module or procedure.
Extend this to support directives at the CONTAINS level of a module or
procedure, such as directives 3, 5, 7 9, and 10 in:
!dir$ some directive 1
module m
!dir$ some directive 2
contains
!dir$ some directive 3
subroutine p
!dir$ some directive 4
contains
!dir$ some directive 5
subroutine s1
!dir$ some directive 6
end subroutine s1
!dir$ some directive 7
subroutine s2
!dir$ some directive 8
end subroutine s2
!dir$ some directive 9
end subroutine p
!dir$ some directive 10
end module m
!dir$ some directive 11
This is done by looking for CONTAINS statements at the module or
procedure level, while ignoring CONTAINS statements at the derived type
level.
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