Alex Bradbury via llvm-dev
2020-Apr-13 13:19 UTC
[llvm-dev] LLVM Weekly - #328, Apr 13th 2020
LLVM Weekly - #328, Apr 13th 2020 ================================ If you prefer, you can read a HTML version of this email at <http://llvmweekly.org/issue/328>. Welcome to the three hundred and twenty-eighth issue of LLVM Weekly, a weekly newsletter (published every Monday) covering developments in LLVM, Clang, and related projects. LLVM Weekly is brought to you by [Alex Bradbury](https://www.linkedin.com/in/alex-bradbury/). Subscribe to future issues at <http://llvmweekly.org> and pass it on to anyone else you think may be interested. Please send any tips or feedback to <asb at asbradbury.org>, or @llvmweekly or @asbradbury on Twitter. ## News and articles from around the web I didn't spot any particular LLVM-related news or blog posts this week. As always, I welcome people emailing me tips on things to include. ## On the mailing lists * Mircea Trofin authored an RFC on [applying machine learning for optimisation policies in LLVM](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140763.html). The described approach has been used to produce a policy for inline for size on x86-64. "Machine learning, in particular reinforcement learning, can address the tensions found in manual heuristics: once features are extracted from the program, the way they are combined and tuned can easily be scaled up through automation, improving effectiveness and generality." * The upstreaming of the F18 Fortran frontend as Flang [has now been finished](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140805.html). * Louis Dionne started a thread to [clarify the supported ways to build libc++, libc++abi and libunwind](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140737.html). This generated a range of useful answers, e.g. from [Shoaib Meenai](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140757.html) and [Petr Hosek](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140771.html). * Johannes Doerfert started a discussion on [reusing OpenMP infrastructure between LLVM/Clang and LLVM/Flang](http://lists.llvm.org/pipermail/cfe-dev/2020-April/065123.html). * Amara Emerson posted an RFC on [promoting experimental reduction intrinsics to first class intrinsics](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140729.html). * Kai Wang started a discussion about [vscale and the RISC-V vector extension](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140693.html). * Jonas Devlieghere proposed [upstreaming reproducer capture/replay of the API test suite in LLDB](http://lists.llvm.org/pipermail/lldb-dev/2020-April/016100.html). * Bruno Conde Kind [writes to get feedback on adding AnghaBench to the LLVM test suite](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140659.html). This generated discussion related to the fact these tests aren't executable, [querying the trade-offs made in creating this benchmark set](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140689.html). * Konstantin Schwarz started a discussion on [extended inline assembler support in GlobalISel](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140661.html). * Chris Lattner [queried if functions to dynamically enable and disable multithreading support in LLVM should be reinstated](http://lists.llvm.org/pipermail/llvm-dev/2020-April/140879.html). ## LLVM commits * Initial fusion for load/multiple/store chains of matrix operations was committed and an option was added to use row-major matrix layout as default. [d1fed70](https://reviews.llvm.org/rGd1fed7081d8), [39f2d9a](https://reviews.llvm.org/rG39f2d9aa81a). * MC layer support for the proposed RISC-V bit manipulation extension was added. Target features are prefixed with "experimental-" as the extension is not yet finalised. [fae40bd](https://reviews.llvm.org/rGfae40bd5a1d). * Sparse conditional constant propagation (SCCP) was improved to make use of ranges for predicate info conditions. [6aabb10](https://reviews.llvm.org/rG6aabb109bec). * The CFGPrinter gained heat coloring based on the relative 'hotness' of each basic block. [8b67853](https://reviews.llvm.org/rG8b67853a83c). * LLVM now tries to use a single enum internally to represent FP rounding mode. [c7ff5b3](https://reviews.llvm.org/rGc7ff5b38f27). * `-debugify-and-strip-all` was added to add debug info before a pass and remove it after, making it easier to test for cases where debug info affects codegen. [f71350f](https://reviews.llvm.org/rGf71350f05ae). ## Clang commits * In order to respect `-fno-unroll-loops` with LTO, Clang will now add `llvm.loop.unroll.disable` metadata when that option is enabled. [338be9c](https://reviews.llvm.org/rG338be9c5952). * A new clang-tidy check was added, llvmlibc-implementation-in-namespace, which will ensure all llvm-libc implementations fall within the `__llvm_libc` namespace. [00a5755](https://reviews.llvm.org/rG00a57558978). * Codegen was implemented for the OpenMP 5.0 iterator constructor. [be99c61](https://reviews.llvm.org/rGbe99c615884). * A new `-fsanitize-coverage=inline=bool-flag` option was added. [ced398f](https://reviews.llvm.org/rGced398fdc81). * The RISC-V driver now learned to recognise experimental unratified extensions. As agreed via RFC on the mailing list, such extensions can only be enabled with the use of an explicit version number and the use of the `-menable-experimental-extensions` flag. [dd1ee6d](https://reviews.llvm.org/rGdd1ee6dc076). ## Other project commits * Flang (previously known as f18) has now been merged as an LLVM sub-project. [b98ad94](https://reviews.llvm.org/rGb98ad941a40). * As part of the Propeller framework for post link code layout, LLD gained support for basic block sections. [9431787](https://reviews.llvm.org/rG94317878d82). * MLIR gained documentation on the declarative pass specification and updated documentation on canonicalization. [c7b83a4](https://reviews.llvm.org/rGc7b83a4fe58), [8d0bc034](https://reviews.llvm.org/rG8d0bc034824). * concept.same was added to libcxx. [601f763](https://reviews.llvm.org/rG601f7631827). * Scripts were added for building libc++ and libc++abi on apple platforms. [77b46fb](https://reviews.llvm.org/rG77b46fb326b). * Hexagon support was added to libunwind. [9107594](https://reviews.llvm.org/rG9107594f376).