| Reapply "[Flang] Remove FLANG_INCLUDE_RUNTIME (#124126)" This reverts commit 27539c3f903be26c487703943d3c27d45d4542b2. Retry with new buildbot configuration after master restart. Original message: Remove the FLANG_INCLUDE_RUNTIME option which was replaced by LLVM_ENABLE_RUNTIMES=flang-rt. The FLANG_INCLUDE_RUNTIME option was added in #122336 which disables the non-runtimes build instructions for the Flang runtime so they do not conflict with the LLVM_ENABLE_RUNTIMES=flang-rt option added in #110217. In order to not maintain multiple build instructions for the same thing, this PR completely removes the old build instructions (effectively forcing FLANG_INCLUDE_RUNTIME=OFF). As per discussion in https://discourse.llvm.org/t/buildbot-changes-with-llvm-enable-runtimes-flang-rt/83571/2 we now implicitly add LLVM_ENABLE_RUNTIMES=flang-rt whenever Flang is compiled in a bootstrapping (non-standalone) build. Because it is possible to build Flang-RT separately, this behavior can be disabled using -DFLANG_ENABLE_FLANG_RT=OFF. Also see the discussion an implicitly adding runtimes/projects in #123964. | 1 年前 |
| [flang][runtime] Control stream truncation via runtime environment (#168415) The ISO Fortran standards don't say whether a WRITE to a formatted stream unit should truncate the unit if there has been any repositioning (via POS= control list specifiers) to an earlier point in the stream. But units with sequential records do truncate on writes after BACKSPACE and REWIND statements, and many compilers (including this one) truncate stream units too. Since some compilers don't truncate streams, this patch adds an environment variable FORT_TRUNCATE_STREAM that can be set to 0 to disable truncation and ease porting to flang-new of codes that depend on that behavior. Fixes https://github.com/llvm/llvm-project/issues/167569. | 8 个月前 |
| [flang] Adding NOTIFY specifier in image selector and add notify type checks (#148810) This PR adds support for the NOTIFY specifier in the image selector as described in the 2023 standard, and add checks for the NOTIFY_TYPE type. | 8 个月前 |
| [flang][cuda] Add support for cluster_block_index in cooperative groups (#169427) | 8 个月前 |
| [flang][cuda] Add support for cluster_block_index in cooperative groups (#169427) | 8 个月前 |
| [flang][cuda] Add support for cluster_block_index in cooperative groups (#169427) | 8 个月前 |
| [flang][cuda] Add support for cluster_block_index in cooperative groups (#169427) | 8 个月前 |
| Reland "[clang] Refactor option-related code from clangDriver into new clangOptions library" (#167374) This relands #167348. The original PR was reverted due to a reported build failure, which was later diagnosed as a local issue in the developer’s checkout or build state. See discussion here: https://github.com/llvm/llvm-project/pull/163659#discussion_r2511546964 No additional changes have been made in this reland. | 8 个月前 |
| [flang][debug] Track dummy argument positions explicitly. (#167489) CHARACTER dummy arguments were treated as local variables in debug info. This happened because our method to get the argument number was not robust. It relied on DeclareOp having a direct reference to arguments which was not the case for character arguments. This is fixed by storing source-level argument positions in DeclareOp. Fixes #112886 | 8 个月前 |
| [flang] Remove non-alignment based divergences from LLVM formatting. This only changs the clang-format file and adds documentation referring to the new process for formatting code. A future commit will perform a reformatting according to these new formatting settings. Original-commit: flang-compiler/f18@02531d788e7550a2455633f87d22e3f30de7a3a7 Reviewed-on: https://github.com/flang-compiler/f18/pull/945 | 6 年前 |
| [flang] Add clang-tidy check for braces around if Flang diverges from the llvm coding style in that it requires braces around the bodies of if/while/etc statements, even when the body is a single statement. This commit adds the readability-braces-around-statements check to flang's clang-tidy config file. Hopefully the premerge bots will pick it up and report violations in Phabricator. We also explicitly disable the check in the directories corresponding to the Lower and Optimizer libraries, which rely heavily on mlir and llvm and therefore follow their coding style. Likewise for the tools directory. We also fix any outstanding violations in the runtime and in lib/Semantics. Differential Revision: https://reviews.llvm.org/D104100 | 5 年前 |
| [flang] [mlir rebase] Add MLIR config and react to MLIR name changes (flang-compiler/f18#1090) [mlir rebase] Add MLIR config and react to MLIR name changes Similar to flang-compiler/f18#1085. Now use the MLIR package to set up paths for include files and libraries. Three MLIR names changed: * VectorOpsDialect to VectorDialect * AffineOpsDialect to AffineDialect * createVectorizePass to createSuperVectorizePass Update README.md to explain how to link with MLIR. Update the example gcc to version 8.3. Update drone.io config to define -DMLIR_DIR Co-authored-by: Jean Perier <jperier@nvidia.com> Original-commit: flang-compiler/f18@116f64315f6218a7f74a8ccdc25f94d322ac6344 Reviewed-on: https://github.com/flang-compiler/f18/pull/1090 | 6 年前 |
| [flang] Add --gcc-toolchain and --gcc-install-dir options to flang. (#87360) The --gcc-toolchain and --gcc-install-dir option were previously only visible to the Clang driver, but not Flang. These determine which assembler, linker, and libraries to use, e.g. for cross-compiling, and therefore are relevant for Flang as well. Tests are implemented using a mock GCC installation in basic_cross_linux_tree copied over from Clang's tests. The Clang driver already contains tests with --driver-mode=flang but flang-new is an entirely different executable (containing the -fc1 stage) that should be tested as well. While not all files in basic_cross_linux_tree are strictly needed for testing those two driver flags, they will be necessarily needed for future added flags such as --rtlib. Also remove the entry *.o in flang's .gitignore since crt*.o files are needed in the GCC mock installation. Fixes #86729 | 2 年前 |
| [flang/flang-rt] Add -isysroot flag only to tests really requiring (#152914) -isysroot flag was added to all tests, but it makes Driver/darwin-version.f90 failed. In fact, only a few tests regarding interoperability with C need -isysroot flag to search for headers and libraries. So, -isysroot flag is now eliminated from the substitution %flang, and a new substitution %isysroot has been introduced. Moreover, Integration/iso-fortran-binding.cpp invokes clang++ via a shell script, which makes it hard to add -isysroot flag. So, it is refactored. Fixes #150765 | 11 个月前 |
| Rename top-level LICENSE.txt files to LICENSE.TXT This makes all the license filenames uniform across subprojects. Differential Revision: https://reviews.llvm.org/D98380 | 5 年前 |
| [flang] Add David Truby as maintainer for Flang on Windows (#142619) | 1 年前 |
| [Flang][Docs] Add a GettingStarted.md for build instructions This patch fix first point of https://github.com/llvm/llvm-project/issues/60730. https://flang.llvm.org/docs/ has no build instructions. This doc page is just a copy of README page so that it can be accessible from website. Differential Revision: https://reviews.llvm.org/D148070 | 3 年前 |