commit | 48f490f71ae5b24c942de27e17fc5133e4b4f681 | [log] [tgz] |
---|---|---|
author | Valentin Clement (バレンタイン クレメン) <clementval@gmail.com> | Tue Apr 09 13:32:21 2024 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Apr 09 13:36:26 2024 -0700 |
tree | dbe042fdf2001771d8ebcb1893120fa2a35ef586 | |
parent | ac52d9dd984e23111d5d1a370b1be4bd105ab4c7 [diff] |
[flang][cuda] Add UNIFIED data attribute (#88171) Latest version of the specification introduced the `UNIFIED` attribute for data. https://docs.nvidia.com/hpc-sdk/compilers/cuda-fortran-prog-guide/#cfref-var-attr-unified-data This patch adds the attribute to parsing, semantic and lowering. The matching rules for dummy/actual arguments is not part of this patch. GitOrigin-RevId: e953c862e9b082e16ac3306c36dc8fdfc5f03ee3
Flang is a ground-up implementation of a Fortran front end written in modern C++. It started off as the f18 project (https://github.com/flang-compiler/f18) with an aim to replace the previous flang project (https://github.com/flang-compiler/flang) and address its various deficiencies. F18 was subsequently accepted into the LLVM project and rechristened as Flang.
Please note that flang is not ready yet for production usage.
Read more about flang in the docs directory. Start with the compiler overview.
To better understand Fortran as a language and the specific grammar accepted by flang, read Fortran For C Programmers and flang's specifications of the Fortran grammar and the OpenMP grammar.
Treatment of language extensions is covered in this document.
To understand the compilers handling of intrinsics, see the discussion of intrinsics.
To understand how a flang program communicates with libraries at runtime, see the discussion of runtime descriptors.
If you're interested in contributing to the compiler, read the style guide and also review how flang uses modern C++ features.
If you are interested in writing new documentation, follow LLVM's Markdown style guide.
Consult the Getting Started with Flang for information on building and running flang.