| commit | 12385f72d1f3c28452d13ab55127d684fa0eb0ec | [log] [tgz] |
|---|---|---|
| author | Rolf Morel <rolf.morel@intel.com> | Thu Oct 31 20:18:24 2024 +0100 |
| committer | Copybara-Service <copybara-worker@google.com> | Thu Oct 31 12:20:49 2024 -0700 |
| tree | 6b2aae25e7268369b6967410645e62ce5c65a991 | |
| parent | 80d41051783171c3804c88fa1cdf30284395767e [diff] |
[MLIR][DLTI] Pretty parsing and printing for DLTI attrs (#113365) Unifies parsing and printing for DLTI attributes. Introduces a format of `#dlti.attr<key1 = val1, ..., keyN = valN>` syntax for all queryable DLTI attributes similar to that of the DictionaryAttr, while retaining support for specifying key-value pairs with `#dlti.dl_entry` (whether to retain this is TBD). As the new format does away with most of the boilerplate, it is much easier to parse for humans. This makes an especially big difference for nested attributes. Updates the DLTI-using tests and includes fixes for misc error checking/ error messages. GitOrigin-RevId: 5c1752e368585e55c0335a7d7651fe43d42af282
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.