peter klausler
3204a1c1b9
[flang] checkpoint
...
Original-commit: flang-compiler/f18@0c9bdc7032
Reviewed-on: https://github.com/flang-compiler/f18/pull/333
Tree-same-pre-rewrite: false
2019-03-14 14:52:44 -07:00
Eric Schweitz
a3bd008757
[flang] Merge pull request flang-compiler/f18#332 from flang-compiler/eas1
...
fix typo
Original-commit: flang-compiler/f18@4097d8a890
Reviewed-on: https://github.com/flang-compiler/f18/pull/332
2019-03-14 12:26:25 -07:00
Eric Schweitz
3a0ccc1c0c
[flang] fix typo
...
Original-commit: flang-compiler/f18@fc88b92af0
Reviewed-on: https://github.com/flang-compiler/f18/pull/332
2019-03-14 12:12:34 -07:00
Tim Keith
1b36254fae
[flang] Merge pull request flang-compiler/f18#331 from flang-compiler/tsk10
...
Change default for LINK_WITH_FIR to ON.
Original-commit: flang-compiler/f18@ea89449089
Reviewed-on: https://github.com/flang-compiler/f18/pull/331
2019-03-14 10:09:28 -07:00
Tim Keith
9a6823bf4e
[flang] Change default for LINK_WITH_FIR to ON.
...
Original-commit: flang-compiler/f18@b13f994463
Reviewed-on: https://github.com/flang-compiler/f18/pull/331
2019-03-14 09:08:27 -07:00
Tim Keith
488029bd80
[flang] Merge pull request flang-compiler/f18#329 from flang-compiler/tsk10
...
Add cmake option to link with FIR and LLVM
Original-commit: flang-compiler/f18@ddb43b33cc
Reviewed-on: https://github.com/flang-compiler/f18/pull/329
2019-03-14 07:23:03 -07:00
Tim Keith
1c9f8d408e
[flang] Add cmake option to link with FIR and LLVM
...
The cmake option -DLINK_WITH_FIR=ON causes the f18 driver to be linked
against FIR and LLVM. When it is set to OFF (the default), the call into
FIR is #ifdef'd out.
The source in lib/FIR is always built; this option only affects linking.
Original-commit: flang-compiler/f18@69569edd4c
Reviewed-on: https://github.com/flang-compiler/f18/pull/329
2019-03-13 12:41:15 -07:00
Eric Schweitz
3946e1faf1
[flang] Merge pull request flang-compiler/f18#328 from flang-compiler/eas0
...
remove unused files and clean up unused warnings
Original-commit: flang-compiler/f18@67ef747557
Reviewed-on: https://github.com/flang-compiler/f18/pull/328
2019-03-12 07:36:01 -07:00
Eric Schweitz
388ce79539
[flang] Move virtual dtor to Terminator
...
Original-commit: flang-compiler/f18@68853d602a
Reviewed-on: https://github.com/flang-compiler/f18/pull/328
2019-03-11 18:37:30 -07:00
Eric Schweitz
311c9b5a89
[flang] remove unused files
...
Cleanup some warnings when building with clang.
Original-commit: flang-compiler/f18@33cf6255d1
Reviewed-on: https://github.com/flang-compiler/f18/pull/328
Tree-same-pre-rewrite: false
2019-03-11 12:24:16 -07:00
jeanPerier
01e48292e2
[flang] Silence clang warning related to ISO_Fortran_binding.h usage in C++
...
Original-commit: flang-compiler/f18@85b7f370b4
2019-03-12 01:27:00 -07:00
Jean Perier
74ca600dc0
[flang] address comments
...
Original-commit: flang-compiler/f18@7b1fc24265
2019-03-11 11:33:54 -07:00
Jean Perier
bfb6ba3ca2
[flang] remove unused CFI_ISO_FORTRAN_BINDING_FLEXIBLE_ARRAY
...
Original-commit: flang-compiler/f18@3cf9a625bf
Tree-same-pre-rewrite: false
2019-03-11 10:34:35 -07:00
Jean Perier
68da865a84
[flang] Silence clang warning from ISO_Fortran_binding.h usage in C++
...
Original-commit: flang-compiler/f18@88eb833b14
Tree-same-pre-rewrite: false
2019-03-11 10:21:16 -07:00
Steve Scalpone
eaf9c91ba6
[flang] Merge pull request flang-compiler/f18#326 from flang-compiler/BUILD_WITH_CLANG_LIBRARIES
...
Update CMakeList.txt to allow linking with LLVM libc++
Original-commit: flang-compiler/f18@866e188de6
Reviewed-on: https://github.com/flang-compiler/f18/pull/326
2019-03-11 20:23:18 -07:00
Steve Scalpone
8fedd37b38
[flang] To use LLVM's libc++ instead of GCC's libstdc++, define
...
BUILD_WITH_CLANG_LIBRARIES on the cmake command line to
be the path to a clang installation with bin, lib, etc.
For this to work, BUILD_WITH_CLANG must be defined too.
Original-commit: flang-compiler/f18@a36d5fee42
Reviewed-on: https://github.com/flang-compiler/f18/pull/326
2019-03-11 10:49:46 -07:00
Peter Klausler
716505e599
[flang] Merge pull request flang-compiler/f18#327 from flang-compiler/pmk-nofir
...
Emergency temporary patch to fix build
Original-commit: flang-compiler/f18@06d71f72a5
Reviewed-on: https://github.com/flang-compiler/f18/pull/327
2019-03-11 15:38:28 -07:00
peter klausler
d1c2c7b4b1
[flang] Temporarily disconnect FIR from f18.cc build
...
Original-commit: flang-compiler/f18@c610bc2744
Reviewed-on: https://github.com/flang-compiler/f18/pull/327
2019-03-11 15:01:27 -07:00
Eric Schweitz
741ded1135
[flang] Merge pull request flang-compiler/f18#324 from flang-compiler/eas0
...
Revisions for review comments.
Original-commit: flang-compiler/f18@5b066774b0
Reviewed-on: https://github.com/flang-compiler/f18/pull/324
2019-03-11 11:02:32 -07:00
Eric Schweitz
dfa5010e47
[flang] Revisions for review comments.
...
Original-commit: flang-compiler/f18@1a03f7d5bb
Reviewed-on: https://github.com/flang-compiler/f18/pull/324
2019-03-11 09:38:45 -07:00
Eric Schweitz
bdb94d41ca
[flang] Merge pull request flang-compiler/f18#323 from flang-compiler/eas0
...
Fix build breakage
Original-commit: flang-compiler/f18@46e416acc7
Reviewed-on: https://github.com/flang-compiler/f18/pull/323
2019-03-11 09:37:31 -07:00
Eric Schweitz
cf18b7a6bd
[flang] Fix build breakage
...
Original-commit: flang-compiler/f18@72d003f89d
Reviewed-on: https://github.com/flang-compiler/f18/pull/323
2019-03-11 09:16:01 -07:00
Eric Schweitz
70d55c0ce2
[flang] Merge pull request flang-compiler/f18#319 from flang-compiler/eas0
...
FIR update
Original-commit: flang-compiler/f18@3f6f710889
Reviewed-on: https://github.com/flang-compiler/f18/pull/319
2019-03-11 09:01:14 -07:00
Eric Schweitz
4fd1e5d795
[flang] Address review comments; merge with latest breaking changes on master
...
Original-commit: flang-compiler/f18@ffde96d486
Reviewed-on: https://github.com/flang-compiler/f18/pull/319
2019-03-11 08:59:33 -07:00
Eric Schweitz
829e8247ed
[flang] Run old clang-format over FIR directory
...
Original-commit: flang-compiler/f18@0616ac43ec
Reviewed-on: https://github.com/flang-compiler/f18/pull/319
Tree-same-pre-rewrite: false
2019-03-11 08:57:41 -07:00
Eric Schweitz
686d4daf6c
[flang] Repairs for new interfaces
...
Original-commit: flang-compiler/f18@1a080dfe6a
Reviewed-on: https://github.com/flang-compiler/f18/pull/319
Tree-same-pre-rewrite: false
2019-03-11 08:57:41 -07:00
Eric Schweitz
d6964c42f2
[flang] FIR statements: various reworking of the code to decompose some
...
operations, get rid of unneeded nodes, restructure DO loops, etc.
Original-commit: flang-compiler/f18@0e0d67fbda
Reviewed-on: https://github.com/flang-compiler/f18/pull/319
Tree-same-pre-rewrite: false
2019-03-11 08:57:41 -07:00
Eric Schweitz
2ad50e0712
[flang] react to more review comments
...
Original-commit: flang-compiler/f18@b685d8a588
Reviewed-on: https://github.com/flang-compiler/f18/pull/319
Tree-same-pre-rewrite: false
2019-03-11 08:56:36 -07:00
Eric Schweitz
ddedf6688b
[flang] cleanup merge
...
Original-commit: flang-compiler/f18@ea00eab799
Reviewed-on: https://github.com/flang-compiler/f18/pull/319
Tree-same-pre-rewrite: false
2019-03-11 08:56:36 -07:00
Eric Schweitz
1ee88d3c81
[flang] Fixes for building with clang++ and other misc. from review
...
Original-commit: flang-compiler/f18@c3cdc32786
Reviewed-on: https://github.com/flang-compiler/f18/pull/319
Tree-same-pre-rewrite: false
2019-03-11 08:56:36 -07:00
Eric Schweitz
a981cd5b9e
[flang] Move over build recipes and rename the library
...
Original-commit: flang-compiler/f18@51476aa178
Reviewed-on: https://github.com/flang-compiler/f18/pull/319
Tree-same-pre-rewrite: false
2019-03-11 08:56:36 -07:00
Eric Schweitz
35cf9e4c40
[flang] Fortran Intermediate Representation: initial draft based on "CFG" note.
...
Original-commit: flang-compiler/f18@b7a7595394
Reviewed-on: https://github.com/flang-compiler/f18/pull/319
Tree-same-pre-rewrite: false
2019-03-11 08:56:12 -07:00
Peter Klausler
88f0d5e443
[flang] Merge pull request flang-compiler/f18#322 from flang-compiler/pmk-struct-constr-disambig
...
Fix two ambiguous parsing cases by patching parse tree in expression semantics
Original-commit: flang-compiler/f18@d4807f1364
Reviewed-on: https://github.com/flang-compiler/f18/pull/322
2019-03-09 10:59:20 -08:00
peter klausler
c57fda817e
[flang] Address review comment
...
Original-commit: flang-compiler/f18@8a9a41487e
Reviewed-on: https://github.com/flang-compiler/f18/pull/322
2019-03-09 10:25:08 -08:00
peter klausler
f3abed639d
[flang] Fix misparsings of substrings in the parse tree, not in expressions.
...
Original-commit: flang-compiler/f18@53d0e26d92
Reviewed-on: https://github.com/flang-compiler/f18/pull/322
Tree-same-pre-rewrite: false
2019-03-09 10:25:07 -08:00
peter klausler
e3b632337d
[flang] add structconst04.f90 test and fixes to pass it
...
Original-commit: flang-compiler/f18@d857c843f5
Reviewed-on: https://github.com/flang-compiler/f18/pull/322
Tree-same-pre-rewrite: false
2019-03-09 10:25:07 -08:00
peter klausler
64ea462e3a
[flang] Resolve misparse of structure constructor as function reference.
...
Original-commit: flang-compiler/f18@5b6b2540f6
Reviewed-on: https://github.com/flang-compiler/f18/pull/322
Tree-same-pre-rewrite: false
2019-03-09 10:25:06 -08:00
Tim Keith
bc409369c2
[flang] Merge pull request flang-compiler/f18#321 from flang-compiler/tsk3
...
Remove build dependency on clang
Original-commit: flang-compiler/f18@737998bb50
Reviewed-on: https://github.com/flang-compiler/f18/pull/321
2019-03-09 08:55:41 -08:00
Tim Keith
f8995fcefa
[flang] Remove build dependency on clang
...
For now all we need to depend on is LLVM.
Use llvm_map_components_to_libnames to find libraries to link against.
Original-commit: flang-compiler/f18@dff1402c2a
Reviewed-on: https://github.com/flang-compiler/f18/pull/321
2019-03-08 15:16:58 -08:00
Peter Klausler
4105558efe
[flang] Merge pull request flang-compiler/f18#320 from flang-compiler/pmk-expr-rearrangement
...
Rearrange/simplify expr analysis code
Original-commit: flang-compiler/f18@4eaccde516
Reviewed-on: https://github.com/flang-compiler/f18/pull/320
2019-03-08 12:56:32 -08:00
peter klausler
972b3af6d4
[flang] Rearrange/simplify expr analysis code
...
Original-commit: flang-compiler/f18@aa9f3a7cca
Reviewed-on: https://github.com/flang-compiler/f18/pull/320
2019-03-07 14:46:31 -08:00
Tim Keith
b3d74e3e14
[flang] Merge pull request flang-compiler/f18#317 from flang-compiler/tsk10
...
Simplify Semantics::Perform
Original-commit: flang-compiler/f18@c435fe65a4
Reviewed-on: https://github.com/flang-compiler/f18/pull/317
2019-03-07 10:52:40 -08:00
Tim Keith
251e0196e4
[flang] Simplify Semantics::Perform
...
`Semantics::Perform` is mostly a series of calls followed by a check
for fatal errors. There is more error checking logic than real code.
To make it clearer, change each of the phases it calls to return true
on success so that `Perform` can just call them one after the other.
Original-commit: flang-compiler/f18@a218cac788
Reviewed-on: https://github.com/flang-compiler/f18/pull/317
2019-03-06 17:07:25 -08:00
Peter Klausler
c1970da239
[flang] Merge pull request flang-compiler/f18#316 from flang-compiler/pmk-expr-walk
...
Add Expression traversal framework, use it to reimplement IsConstantE…
Original-commit: flang-compiler/f18@90cd33adcb
Reviewed-on: https://github.com/flang-compiler/f18/pull/316
2019-03-06 16:56:07 -08:00
peter klausler
18e436afc4
[flang] add descender.h
...
Original-commit: flang-compiler/f18@cfc3082b7a
Reviewed-on: https://github.com/flang-compiler/f18/pull/316
2019-03-06 16:15:55 -08:00
peter klausler
0de89a5c7d
[flang] add rewriting as well as const visitation
...
Original-commit: flang-compiler/f18@1224eaee85
Reviewed-on: https://github.com/flang-compiler/f18/pull/316
Tree-same-pre-rewrite: false
2019-03-06 16:15:54 -08:00
peter klausler
1a38f0091b
[flang] More rearrangement
...
Original-commit: flang-compiler/f18@7a675d9df6
Reviewed-on: https://github.com/flang-compiler/f18/pull/316
Tree-same-pre-rewrite: false
2019-03-06 16:15:53 -08:00
peter klausler
b7b187e976
[flang] Hide implementation better
...
Original-commit: flang-compiler/f18@2118b46314
Reviewed-on: https://github.com/flang-compiler/f18/pull/316
Tree-same-pre-rewrite: false
2019-03-06 16:15:53 -08:00
peter klausler
642c78b680
[flang] back out one change
...
Original-commit: flang-compiler/f18@27fb43b6ed
Reviewed-on: https://github.com/flang-compiler/f18/pull/316
Tree-same-pre-rewrite: false
2019-03-06 16:15:52 -08:00
peter klausler
53ae00a9c4
[flang] Address review comments
...
Original-commit: flang-compiler/f18@3ed6199fed
Reviewed-on: https://github.com/flang-compiler/f18/pull/316
Tree-same-pre-rewrite: false
2019-03-06 16:15:52 -08:00