Commit graph

2389 commits

Author SHA1 Message Date
peter klausler
e73a1d287a [flang] edits
Original-commit: flang-compiler/f18@07da944e4b
Reviewed-on: https://github.com/flang-compiler/f18/pull/534
Tree-same-pre-rewrite: false
2019-09-09 09:27:38 -07:00
peter klausler
f0778f0fe2 [flang] edits
Original-commit: flang-compiler/f18@729cc19e0f
Reviewed-on: https://github.com/flang-compiler/f18/pull/534
Tree-same-pre-rewrite: false
2019-09-09 09:27:38 -07:00
peter klausler
28e8f7a9fd [flang] Jot down thoughts on array expr and intrinsic evaluation for Jean
Original-commit: flang-compiler/f18@83c72062d5
Reviewed-on: https://github.com/flang-compiler/f18/pull/534
Tree-same-pre-rewrite: false
2019-09-09 09:27:37 -07:00
Peter Klausler
c036e83420 [flang] Merge pull request flang-compiler/f18#683 from flang-compiler/pmk-call-doc
Requirements and first draft design for procedure call protocol

Original-commit: flang-compiler/f18@9e3ab7d32f
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
2019-09-06 13:17:53 -07:00
peter klausler
7f9922203f [flang] Review comments
Original-commit: flang-compiler/f18@376359d456
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
2019-09-04 10:44:49 -07:00
peter klausler
9469ce8aeb [flang] refinements
Original-commit: flang-compiler/f18@a4de8161f9
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-29 12:45:42 -07:00
peter klausler
321fcad0a9 [flang] address review comments
Original-commit: flang-compiler/f18@793c15fd04
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-29 10:58:36 -07:00
peter klausler
76337eb4cb [flang] Simplify by using the term F77ish
Original-commit: flang-compiler/f18@063d9dc6c8
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-28 13:59:48 -07:00
peter klausler
f4f44b90f0 [flang] Limitations on function results with assumed type parameters
Original-commit: flang-compiler/f18@4ba9fdb0ea
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-28 11:54:19 -07:00
peter klausler
a26bbed6d6 [flang] Corrections and additions
Original-commit: flang-compiler/f18@000301fcf9
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-28 11:25:55 -07:00
peter klausler
c71ba62c9f [flang] Correct obsolete comment in descriptor.h
Original-commit: flang-compiler/f18@8ff52c493a
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-28 09:14:46 -07:00
peter klausler
c236c83775 [flang] Resolve some TODOs
Original-commit: flang-compiler/f18@3f3e9c9320
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-27 15:59:46 -07:00
peter klausler
c6041dfecf [flang] Enumerate semantics checks
Original-commit: flang-compiler/f18@3ddf31109a
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-27 14:27:14 -07:00
peter klausler
6d7fef5cd0 [flang] More research
Original-commit: flang-compiler/f18@1e2b0be07f
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-27 13:09:31 -07:00
peter klausler
fe7ea5325f [flang] Address some review comments
Original-commit: flang-compiler/f18@5666998b0f
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-27 10:15:31 -07:00
peter klausler
a000beae71 [flang] fix typo, add examples
Original-commit: flang-compiler/f18@e0964fe076
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-26 15:56:08 -07:00
peter klausler
e9c6ab3615 [flang] refine naming
Original-commit: flang-compiler/f18@a4888a08cd
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-26 15:44:38 -07:00
peter klausler
1e90c6b948 [flang] naming
Original-commit: flang-compiler/f18@c3673287f8
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-26 14:23:35 -07:00
peter klausler
0c3a942422 [flang] trampolines
Original-commit: flang-compiler/f18@3e9cebe8dc
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-26 12:41:10 -07:00
peter klausler
311300b15d [flang] more writing
Original-commit: flang-compiler/f18@16a8b0065a
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-23 15:35:18 -07:00
peter klausler
d732d10b80 [flang] more writing
Original-commit: flang-compiler/f18@a067cca183
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-23 15:22:53 -07:00
peter klausler
700448d39c [flang] More writing
Original-commit: flang-compiler/f18@f475086c0c
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-23 14:35:38 -07:00
peter klausler
9dcbed4735 [flang] Extract Calls.md into its own branch.
Original-commit: flang-compiler/f18@8a5a2c99dc
Reviewed-on: https://github.com/flang-compiler/f18/pull/683
Tree-same-pre-rewrite: false
2019-08-23 13:42:13 -07:00
Jinxin Yang
d7443b5ad2 [flang] Add missing include for unordered_map
Original-commit: flang-compiler/f18@a9aadfb607
2019-09-05 14:34:44 -07:00
Jinxin Yang
bc52fc1922 [flang] [OpenMP] extend IF clause to accept modifier on composite/combined constructs
Original-commit: flang-compiler/f18@03302a1546
2019-09-05 13:35:21 -07:00
Jinxin Yang
5c543da53a [flang] [OpenMP] add structural checks for TASKLOOP SIMD
Original-commit: flang-compiler/f18@21b4dde276
2019-09-05 13:35:21 -07:00
Jinxin Yang
d1bbccf1d5 [flang] [OpenMP] update declare simd directive with exclusive set
Original-commit: flang-compiler/f18@dc1bd8edc6
2019-09-05 13:35:21 -07:00
Jinxin Yang
e902c1d6b7 [flang] [OpenMP] enable check for IF clause modifier
Original-commit: flang-compiler/f18@f56fe4a389
2019-09-05 13:35:21 -07:00
Jinxin Yang
c4fa8b867e [flang] [OpenMP] Add structural checks for TASK
1. fix `OmpIfClause` on `Task`
2. add structural checks

Original-commit: flang-compiler/f18@a77830a191
2019-09-05 13:35:21 -07:00
Jinxin Yang
77ed1df8a7 [flang] [OpenMP] fix type for Final clause
The type should be `ScalarLogicalExpr`.

Original-commit: flang-compiler/f18@97e4282d7c
2019-09-05 13:35:21 -07:00
Jinxin Yang
658cf65249 [flang] [OpenMP] Expand full sets for do, simd, and do simd
Original-commit: flang-compiler/f18@1f5bbeb3ea
2019-09-05 13:35:21 -07:00
Steve Scalpone
26b18f5217 [flang] Merge pull request flang-compiler/f18#688 from DavidTruby/taskloop
Implement semantic checking for TASKLOOP

Original-commit: flang-compiler/f18@a5786851fa
Reviewed-on: https://github.com/flang-compiler/f18/pull/688
2019-09-04 23:01:29 -07:00
David Truby
f1212c6606 [flang] Implement semantic checking for TASKLOOP
Original-commit: flang-compiler/f18@a8e65f2c2d
Reviewed-on: https://github.com/flang-compiler/f18/pull/688
2019-09-03 17:17:22 +01:00
Tim Keith
5d2f12074b [flang] Merge pull request flang-compiler/f18#697 from flang-compiler/tsk-crayptr
Name resolution for Cray pointers

Original-commit: flang-compiler/f18@a18c5ebed0
Reviewed-on: https://github.com/flang-compiler/f18/pull/697
2019-09-04 16:57:02 -07:00
Tim Keith
cc07c43a84 [flang] Name resolution for Cray pointers
Resolve the pointer and pointee names in a `BasedPointerStmt` and
enforce some of the constraints on them. There are still some
constraints to be implemented, mainly about what kind of attributes
the pointers and pointees can have.

The rules for these are a little vague. I mostly followed
- Cray Fortran Reference Manual section 9.3.2
- https://gcc.gnu.org/onlinedocs/gfortran/Cray-pointers.html
- VSI Fortran for OpenVMS Language Reference Manual section B.11

Note that the first two use the term "Cray pointer" but the last does
not. That is confusing because you have to know from context whether
it is referring to Cray pointers or Fortran pointers, so I used
"Cray pointer" and "Cray pointee" in error messages to refer to the
two names in the pointer statement.

Original-commit: flang-compiler/f18@cabb112be2
Reviewed-on: https://github.com/flang-compiler/f18/pull/697
2019-09-04 16:55:08 -07:00
Tim Keith
6970974c4e [flang] Merge pull request flang-compiler/f18#710 from flang-compiler/tsk-issue709
Fix declaration of module procedure subprograms

Original-commit: flang-compiler/f18@b56bc365bb
Reviewed-on: https://github.com/flang-compiler/f18/pull/710
2019-09-04 16:33:22 -07:00
Tim Keith
9f49ffb94f [flang] Fix declaration of module procedure subprograms
Names of subprograms declared with MODULE PROCEDURE in a submodule
were not found correctly. The fix is to separate the handling of
these from other subprograms. The subprogram being defined must have
been declared in the same module or an ancestor module/submodule.

Fixes flang-compiler/f18#709

Original-commit: flang-compiler/f18@80b635d343
Reviewed-on: https://github.com/flang-compiler/f18/pull/710
2019-09-04 15:15:57 -07:00
Steve Scalpone
55d1fb1996 [flang] Merge pull request flang-compiler/f18#706 from flang-compiler/sjs-cmplx
Fold more cases of cmplx and dcmplx.

Original-commit: flang-compiler/f18@e42947dcde
Reviewed-on: https://github.com/flang-compiler/f18/pull/706
2019-09-04 12:41:09 -07:00
Steve Scalpone
689e6ee7b6 [flang] Fold more cases of cmplx and dcmplx.
Original-commit: flang-compiler/f18@57401319b0
Reviewed-on: https://github.com/flang-compiler/f18/pull/706
2019-09-02 15:02:46 -07:00
Steve Scalpone
fff45a620a [flang] Merge pull request flang-compiler/f18#705 from flang-compiler/sjs-dreal
Add support and documentation for DREAL.

Original-commit: flang-compiler/f18@e14461455f
Reviewed-on: https://github.com/flang-compiler/f18/pull/705
2019-09-03 19:05:55 -07:00
Steve Scalpone
93aa7a8640 [flang] Add support and documentation for DREAL.
Original-commit: flang-compiler/f18@5b6a2dc26c
Reviewed-on: https://github.com/flang-compiler/f18/pull/705
2019-09-02 13:54:01 -07:00
Steve Scalpone
e6e1b0ba2b [flang] Merge pull request flang-compiler/f18#692 from flang-compiler/sjs-omp-doc
Create OpenMP-semantics.md

Original-commit: flang-compiler/f18@0948d3d191
Reviewed-on: https://github.com/flang-compiler/f18/pull/692
2019-08-30 11:22:51 -07:00
Steve Scalpone
d33a5652a8 [flang] Update OpenMP-semantics.md
Formatting changes.

Original-commit: flang-compiler/f18@007b3e31d3
Reviewed-on: https://github.com/flang-compiler/f18/pull/692
2019-08-30 11:22:13 -07:00
Steve Scalpone
67a5f04be8 [flang] Update OpenMP-semantics.md
Item 4 can be removed since we decided to keep the code in Semantics.

Original-commit: flang-compiler/f18@7377a61345
Reviewed-on: https://github.com/flang-compiler/f18/pull/692
Tree-same-pre-rewrite: false
2019-08-29 12:55:41 -07:00
Steve Scalpone
12c9b9429b [flang] Update OpenMP-semantics.md
Repond to review comments about grammar and formatting.

Original-commit: flang-compiler/f18@4811ea2b94
Reviewed-on: https://github.com/flang-compiler/f18/pull/692
Tree-same-pre-rewrite: false
2019-08-27 18:12:50 -07:00
Steve Scalpone
6e4c8b88c5 [flang] Create OpenMP-semantics.md
Initial markdown document.

Original-commit: flang-compiler/f18@787a0ca058
Reviewed-on: https://github.com/flang-compiler/f18/pull/692
Tree-same-pre-rewrite: false
2019-08-27 14:38:48 -07:00
Jinxin Yang
23a7f38741 [flang] [OpenMP] flang-compiler/f18#691 Update on Tim and Varun's review
Change CheckMatching to return `beginDir`, which hides the unnecessary
`std::get<>` for `endDir`.

Original-commit: flang-compiler/f18@d9689e10f4
2019-08-29 10:19:36 -07:00
Jinxin Yang
f6273d7194 [flang] [OpenMP] structural checks for PARALLEL SECTIONS
Original-commit: flang-compiler/f18@c18452159d
2019-08-29 10:19:36 -07:00
Jinxin Yang
ffb88549cb [flang] [OpenMP] add Begin and End Directive matching check
Straightforward check for Begin and End directive of:
1. Block related constructs
2. Loop related constructs (End directive is optional)
3. Sections related constructs

Original-commit: flang-compiler/f18@d0436f13ee
2019-08-29 10:19:36 -07:00
Jinxin Yang
0a85616b07 [flang] [OpenMP] update validity check for OmpNowait.
Because now we set the flag for `End` directives that accept clauses,
no need to check the specific directives anymore.

Original-commit: flang-compiler/f18@a5cdc4b035
2019-08-29 10:19:36 -07:00