commit | 822d5de8a7b5c598a7b2ee617b621c969a60b1ea | [log] [tgz] |
---|---|---|
author | jeanPerier <jperier@nvidia.com> | Mon Apr 08 10:18:56 2024 +0200 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Apr 08 01:25:34 2024 -0700 |
tree | a03f5fe583f792f9983f322915d62072aad6bb04 | |
parent | b67c423ad2834d0cfaf3d135bfd7f73fde6377a9 [diff] |
[flang] Fix MASKR/MASKL lowering for INTEGER(16) (#87496) The all one masks was not properly created for i128 types because builder.createIntegerConstant ended-up truncating -1 to something positive. Add a builder.createAllOnesInteger/createMinusOneInteger helpers and use them where createIntegerConstant(..., -1) was used. Add an assert in createIntegerConstant to catch negative numbers for i128 type. GitOrigin-RevId: 8ddfb66903969224ebd4e10c1461d2be323f4798
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.