- Mar 13, 2020
-
-
Luke Ireland authored
Some of the regression tests are C programs that act as test harnesses for the compiler internals as opposed to being Fortran inputs to test the compiler in action. The former style of tests are analog to LLVM's unittests and will not use the lit framework. Change-Id: I0ff10e23f66ff843e8fff4c35cfb6559b9dab762 Original-commit: flang-compiler/f18@2bfddbe8f8898551a28c3ea07b7ae508018f8634 Reviewed-on: https://github.com/flang-compiler/f18/pull/1027 Tree-same-pre-rewrite: false
-
Luke Ireland authored
These tests were disabled due to https://github.com/flang-compiler/f18/issues/407. Previously these tests caused F18 to crash as the feature was not fully implemented. The altreturn feature is now implemented, so these tests can be re-enabled. altreturn03 tested some negative cases which F18 correctly diagnoses. Modified that test to expect these new error messages. Also make the later cases in the test reachable. These tests can now be ported by the script to lit-style tests. Change-Id: Ib336c10d55068d9a26fc2deb43ad052e74e73456 Original-commit: flang-compiler/f18@4de19d7ba2df892ce4361461841c3997de439532 Reviewed-on: https://github.com/flang-compiler/f18/pull/1027 Tree-same-pre-rewrite: false
-
- Mar 14, 2020
-
-
jeanPerier authored
Support latest LLVM head with FIR - MLIR SideEffects interface change Original-commit: flang-compiler/f18@d9fadfacbc6c5edb03f9c0b943fbe1b29f04c25b Reviewed-on: https://github.com/flang-compiler/f18/pull/1071
-
- Mar 13, 2020
-
-
Jean Perier authored
Include new .td after LLVM changes: https://github.com/llvm/llvm-project/commit/0ddba0bd59c337f16b51a00cb205ecfda46f97fa Tested to work with LLVM head ecd3e678 from 2020-03-13 01:45 am PCT Backwards compatible with previous known compatible heads at least back to fde9d33f from 2020-03-10, so need to update LLVM builds if they previously work with FIR. Original-commit: flang-compiler/f18@45454587c932c23430f0f1eb81df816dd75de86b Reviewed-on: https://github.com/flang-compiler/f18/pull/1071
-
Isuru Fernando authored
Original-commit: flang-compiler/f18@d0f9ef7742132a5f9f7173b773aaac934484c7c1 Reviewed-on: https://github.com/flang-compiler/f18/pull/1063
-
Eric Schweitz authored
Original-commit: flang-compiler/f18@4cdc9f75e2bd81889ccc4e30da8c40b2335f10c0 Reviewed-on: https://github.com/flang-compiler/f18/pull/1067
-
David Truby authored
Original-commit: flang-compiler/f18@094f55890775362f093bb62c57c13b8d3436c82e Reviewed-on: https://github.com/flang-compiler/f18/pull/988
-
- Mar 12, 2020
-
-
RichBarton-Arm authored
Original-commit: flang-compiler/f18@e5f369d0863899b601079b2d97e9144c1fd0b71e Reviewed-on: https://github.com/flang-compiler/f18/pull/1066
-
jeanPerier authored
Adds FIR library that implements an MLIR dialect to which Fortran parse-tree will be lowered to. FIR is defined and documented inside FIROps.td added in this commit. It is possible to generate a more readable description FIRLangRef.md from FIROps.td following the related instructions added to the README.md by this commit. This patch adds FIR definition and implementation that allow parsing, printing, and verifying FIR. FIR transformations and lowering to Standard and LLVM dialects are not part of this patch. The FIR verifiers are verifying the basic properties of FIR operations in order to provide a sufficient frame for lowering. Verifiers for more advanced FIR properties can be added as needed. Coarrays are not covered by FIR defined in this patch. This patch also adds tco tool that is meant to process FIR input files and drives transformations on it. The tco tool is used for testing. In this patch, it is only used to demonstrate parsing/verifying/ and dumping FIR with round-trip tests. Note: This commit does not reflect an actual work log, it is a feature-based split of the changes done in the FIR experimental branch. The related work log can be found in the commits between: https://github.com/schweitzpgi/f18/commit/742edde572bd74d77cf7d447132ccf0949187fce and https://github.com/schweitzpgi/f18/commit/2ff55242126d86061f4fed9ef7b59d3636b5fd0b Changes on top of these original commits were made during this patch review. Original-commit: flang-compiler/f18@30b428a51e140e5fb12bd53a0619f10ff510f408 Reviewed-on: https://github.com/flang-compiler/f18/pull/1035
-
Peter Klausler authored
Roll up runtime I/O work Original-commit: flang-compiler/f18@bcb8565a93aca69f7c65eca23760293feebf717d Reviewed-on: https://github.com/flang-compiler/f18/pull/1053
-
peter klausler authored
Scan FORMAT strings locally to avoid C++ binary runtime dependence when computing deepest parenthesis nesting Remove a dependency on ostream from runtime Remove remaining direct external references from runtime to C++ library binaries Remove runtime dependences on lib/common SetPos() and SetRec() Instantiate templates for input Begin input; rearrange locking, deal with CLOSE races View() Update error message in test to agree with compiler change First cut at real input More robust I/O runtime error handling Debugging of REAL input Add iostat.{h,cpp} Rename runtime/numeric-* to runtime/edit-* Move templates around, templatize integer output editing Move LOGICAL and CHARACTER output from io-api.cpp to edit-output.cpp Change pointer argument to reference More list-directed input Complex list-directed input Use enum class Direction rather than bool for templates Catch up with changes to master Undo reformatting of Lower code Use record number instead of subscripts for internal unit Unformatted sequential backspace Testing and debugging Dodge bogus GCC warning Add <cstddef> for std::size_t to fix CI build Address review comments Original-commit: flang-compiler/f18@50406b349609efdde76e48bf2caa039d031dd1c4 Reviewed-on: https://github.com/flang-compiler/f18/pull/1053 -
Peter Klausler authored
Fix an ambiguous overload error Original-commit: flang-compiler/f18@c39a22b6e40dcf1f9438b75a1b5b3b8b7d5d4778 Reviewed-on: https://github.com/flang-compiler/f18/pull/1029
-
- Mar 05, 2020
-
-
Isuru Fernando authored
Original-commit: flang-compiler/f18@70fa71ff7be3024a44b8214be663b9701adc5b1f Reviewed-on: https://github.com/flang-compiler/f18/pull/1029
-
- Mar 12, 2020
-
-
Peter Klausler authored
Extend shape analysis to cope better with ASSOCIATE construct entities Original-commit: flang-compiler/f18@abee10616802d9ce12051dc2e1b911144dd52198 Reviewed-on: https://github.com/flang-compiler/f18/pull/1061
-
peter klausler authored
Original-commit: flang-compiler/f18@ed2e4842d31f1329d3bec802c2f284ba62343f99 Reviewed-on: https://github.com/flang-compiler/f18/pull/1061
-
peter klausler authored
Original-commit: flang-compiler/f18@dc1c95277dd6161ce2d13f971ca91cce3e771e8a Reviewed-on: https://github.com/flang-compiler/f18/pull/1061 Tree-same-pre-rewrite: false
-
- Mar 11, 2020
-
-
peter klausler authored
Fix incomplete copy&paste Another review comment addressed Original-commit: flang-compiler/f18@a2e2593fa5457a7737faab8ee74e5f3b18cd71f7 Reviewed-on: https://github.com/flang-compiler/f18/pull/1061 Tree-same-pre-rewrite: false
-
- Mar 12, 2020
-
-
Peter Klausler authored
Rename EXTERN_C_END to FORTRAN_EXTERN_C_END Original-commit: flang-compiler/f18@b04233ea55be6b908363aa54e03fac5d3ace3341 Reviewed-on: https://github.com/flang-compiler/f18/pull/1051
-
- Mar 06, 2020
-
-
Isuru Fernando authored
Since EXTERN_C_END is a macro defined in Windows system headers Original-commit: flang-compiler/f18@4c6e5608adddf25a53fbdbfd5f0e1b98278cc5ec Reviewed-on: https://github.com/flang-compiler/f18/pull/1051
-
- Mar 11, 2020
-
-
Tim Keith authored
Allow for vector subscript on LHS of assignment Original-commit: flang-compiler/f18@ed6e34d33b08b162608ce7a648e08ea6a333a5ed Reviewed-on: https://github.com/flang-compiler/f18/pull/1062
-
Tim Keith authored
Original-commit: flang-compiler/f18@38aefd41f051546024ecf4555a3bb3385b99f3c7 Reviewed-on: https://github.com/flang-compiler/f18/pull/1062
-
Tim Keith authored
Fix scope accessibility check Original-commit: flang-compiler/f18@e671fc0754b1b850fb677da11ff6110befba5ef9 Reviewed-on: https://github.com/flang-compiler/f18/pull/1060
-
Tim Keith authored
The check for whether a private component is accessible was depending on determining whether the source range of the current scope was within the source range of the module that the component was declared in. This could fail if the current scope was of kind `ImpliedDos` and had no source range. The fix is to add `Scope::Contains` to check the relationship by traversing the parent links. These are created when the Scope is so are always reliable. The source range of a scope is built up over time. Original-commit: flang-compiler/f18@d787108637adad358ccf8af3d200acb3f66ce099 Reviewed-on: https://github.com/flang-compiler/f18/pull/1060
-
Peter Klausler authored
Changes that enable f18 build with latest clang Original-commit: flang-compiler/f18@9e628b633cad8ed07a89f4e270828370c826ab24 Reviewed-on: https://github.com/flang-compiler/f18/pull/1059
-
peter klausler authored
Prep for review Original-commit: flang-compiler/f18@111f49061e07604670614250197a1064959fd981 Reviewed-on: https://github.com/flang-compiler/f18/pull/1059
-
- Mar 10, 2020
-
-
Tim Keith authored
Perform definability checks on LHS of assignment Original-commit: flang-compiler/f18@a7b49f99a6b2056504b74c7274582935b10b3929 Reviewed-on: https://github.com/flang-compiler/f18/pull/1050
-
Tim Keith authored
If the pure context check succeeds, call `WhyNotModifiable` to verify the LHS can be modified. Detect assignment to whole assumed-size array. Change `IsVariable` to return false for a parameter or a component or array reference whose base it a parameter. When analyzing an assignment statement, report an error if the LHS is a constant expression. Otherwise it might get folded and when we detect the problem later the error will be confusing. Handle Substring on LHS of assignment. Change ExtractDataRef and IsVariable to work on a Substring. Fix IsImpliedShape and IsAssumedSize predicates in ArraySpec. Fix C709 check in check-declarations.cpp. Original-commit: flang-compiler/f18@f2d2657aab051b938ec4e4702926aadb436c19aa Reviewed-on: https://github.com/flang-compiler/f18/pull/1050
-
Tim Keith authored
Have CheckDefinabilityInPureScope and CheckCopyabilityInPureScope return false when their checks fail and report errors so that we will be able to avoid reporting extra errors in those cases. Original-commit: flang-compiler/f18@305a3470e572161483b0f430514b77ba19f932ea Reviewed-on: https://github.com/flang-compiler/f18/pull/1050 Tree-same-pre-rewrite: false
-
Tim Keith authored
One overload of WhyNotModifiable returned an optional message while the other returns a unique_ptr. Change the latter to be consistent with the former and other message-returning functions in this file. Also, reorder the if clauses to reduce the level of indentation. Original-commit: flang-compiler/f18@864e9cfc7ee98e3646052fdc757943011d641691 Reviewed-on: https://github.com/flang-compiler/f18/pull/1050 Tree-same-pre-rewrite: false
-
Tim Keith authored
As we loop through the Components, maintain a pointer to the current DataRef rather than moving it. This is more efficient and the previous behavior caused illegal memory accesses. Original-commit: flang-compiler/f18@cede2971ff863b8dd6a2c8727f6566a444ac7a52 Reviewed-on: https://github.com/flang-compiler/f18/pull/1050 Tree-same-pre-rewrite: false
-
- Mar 06, 2020
-
-
Steve Scalpone authored
https://github.com/flang-compiler/f18/issues/990 Original-commit: flang-compiler/f18@d971333025bb316529d233528a725fcc726f6615 Reviewed-on: https://github.com/flang-compiler/f18/pull/1010
-
- Mar 05, 2020
-
-
Steve Scalpone authored
* Change README to refer to LLVM_BUILD_DIR. LLVM_INSTALL_TOOLS doesn't to install llvm-lit. However pointing to the cmake file in the build directory works fine, and lit and FileCheck will be picked up correctly this way. Original-commit: flang-compiler/f18@3cbe344f82a0898c9e20b6718d5f80d52670838b Reviewed-on: https://github.com/flang-compiler/f18/pull/1033
-
Steve Scalpone authored
The struct Temp is used in the function call createUniqueFile which only takes in a file descriptor instead of a file handler. In Unix these are the same thing, but in Windows they are different. Therefore, the type of the member of struct Temp is changed from file handler to file descriptor and when closing the file the file descriptor is converted to a file handler. Original-commit: flang-compiler/f18@a8edb328f717305143ac827132c6d6f45e6e11b9 Reviewed-on: https://github.com/flang-compiler/f18/pull/1036
-
Steve Scalpone authored
* Use std::mutex for portability. Original-commit: flang-compiler/f18@a9a725eb9d2c39a203f4b4f55f1e03c5e17f6cf7 Reviewed-on: https://github.com/flang-compiler/f18/pull/1006
-
Steve Scalpone authored
Original-commit: flang-compiler/f18@0e32eebf7fec8cd07ab3280565799cfbf2ca55e2 Reviewed-on: https://github.com/flang-compiler/f18/pull/1028
-
Steve Scalpone authored
* Don't link to libm on windows * Don't link to libm in Unix as well Original-commit: flang-compiler/f18@a807862ab85f2d2206f8fa77d927b0e110513620 Reviewed-on: https://github.com/flang-compiler/f18/pull/1038
-
Eric Schweitz authored
Link against zlib when LLVM does. Original-commit: flang-compiler/f18@8b0a473069cb3691d604f72d7f9a5200aa7f1c01 Reviewed-on: https://github.com/flang-compiler/f18/pull/1043
-
- Mar 02, 2020
-
-
David Truby authored
Original-commit: flang-compiler/f18@2260abe4c27a76e374b286df072e303aa9ea1418 Reviewed-on: https://github.com/flang-compiler/f18/pull/1043
-
- Mar 04, 2020
-
-
Tim Keith authored
Improve checking of structure constructor keywords Original-commit: flang-compiler/f18@c80c72d6f96e75c9b6d12c12b813a0922c6d39ef Reviewed-on: https://github.com/flang-compiler/f18/pull/1046
-
Tim Keith authored
When a misparsed FunctionReference was converted to a StructureConstructor, the components accessed were not checked for accessibility. The conversion happens in expression analysis so that where the accessibity must be checked. So move `CheckAccessibleComponent` to `tools.h` so that it can be shared by `resolve-names.cpp` and `expression.cpp`. Add FindModuleContaining to help implement this and use it other places. Check that an access-spec can only appear in a module. Remove some unnecessary "semantics::" qualifiers. Original-commit: flang-compiler/f18@99ce156e49ec0847ce42a6d10f0a62664714092b Reviewed-on: https://github.com/flang-compiler/f18/pull/1046
-