[llvm-dev] LLVM Weekly - #210, Jan 8th 2018
Alex Bradbury via llvm-dev
llvm-dev at lists.llvm.org
Mon Jan 8 13:14:00 PST 2018
LLVM Weekly - #210, Jan 8th 2018
If you prefer, you can read a HTML version of this email at
Welcome to the two hundred and tenth 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
The [call for
the 2018 European LLVM Developers' Meeting has been issued. The Meeting will
be held on April 16-17 in Bristol, UK. The submission deadline is February
The release branch for 6.0.0 has been created and [trunk is now
first release candidate isn't scheduled until Jan 17th.
[QDBI](https://qbdi.quarkslab.com/) is a new open-source LLVM-based Dyanmic
Binary Instrumentation Tools from QuarksLab. You can find out more from this
[recent 34C3 talk](https://media.ccc.de/v/34c3-9006-implementing_an_llvm_based_dynamic_binary_instrumentation_framework).
Dan Liew has open sourced [JFS](https://github.com/delcypher/jfs) (JIT Fuzzing
Solver), a constraint solver built on top of Z3 and LibFuzzer. It works by
generating a C++ program where the reachability of an abort() statement is
equivalent to finding a satisfying assignment to the constraints, then uses
libFuzzer to solve it.
The next Zurich LLVM Social will [take
this Thursday 11th at 7pm. It will feature talks on timing side-channels in
modern CPUs and PySpark at bare-metal speed.
Kamil Rytarowski has posted an
[update on NetBSD Memory Sanitizer
## On the mailing lists
* The [Meltdown and Spectre attacks](https://meltdownattack.com/) have of
course been big news in the last week. LLVM patches to mitigate Spectre have
started to be posted for discussion:
and the [llvm.nospeculateload
that Google expect to follow-up with some alternative API ideas to
* James Y Knight
changing the versioning scheme for the current 'trunk' version. He observes
that incrementing the major version immediately upon branching means it's
difficult to write reliable checks such as `#if __clang_major__ >= 7`.
* Hideki Saito is
for feedback on moving the `isLegalMasked*` checks to
* Nemanja Ivanovic is [seeking
on legalizing the input operand to `ATOMIC_CMP_SWAP*` by zero-extending.
* Alex Bradbury has outlined the current in-tree uses of custom CCState and is
on ideas to remove the need for these, on requirements from out-of-tree
backends, and on supporting the same functionality in GlobalISel.
* Sander De Smalen has shared an
extending the DISubrange count field, which can be used to improve debug
information for variable length arrays or SVE vectors.
* Daniel Neilson has
a set of patches from 2015 to modify memcpy/memmove/memset to have destination
and source alignment attributes.
## LLVM commits
* GlobalISel is now enabled at -O0 by default for AArch64.
* A new documentation page describing how to contribute to LLVM has been
added, detailing how to find topics to work on, how to submit a patch, and
where to learn more about LLVM's architecture and internals.
* LLVM's OptTable class (in libLLVMOption) gained a `findNearest` method which
can be used to implement "did you mean..." responses in LLVM tools for
unrecognised options. This functionality was previously only available in the
CommandLine library which isn't used by tools like Clang or Swift.
* An MCSubtargetInfo reference is now pased through
target::createMCAsmBackend. This allows subtarget feature support to be easily
queried, with a number of follow-on cleanups suggested in the commit message.
The suggested ARMAsmBackend cleanup has already been implemented and
* A multi-threaded implementation of llvm-cov's prepareFileReports method
results in huge speed improvements for large inputs.
## Clang commits
* Clang will use a recent addition to the libLLVMOption API to suggest
correctly spelled driver options when an unrecognised argument is given.
* The `-Wtautological-constant-compare` warning has intentionally limited and
is now disabled by default. As described in the commit message, there are a
number of cases where the warning may not be correctly given but unhelpful in
identifying buggy code. [r321691](http://reviews.llvm.org/rL321691).
## Other project commits
Nothing notable this week (that I spotted at least - tips on patches to
include always welcome).
## Review corner
The LLVM Weekly review corner serves to highlight patches that are stuck
waiting awaiting review, or work from first-time contributors. See
[here](http://llvmweekly.org/reviewcorner) for more information and how to
submit you work for inclusion. Of course the hope is that highlighting these
patches will enable LLVM Weekly readers will step up and help to get them
merged. I'll be reporting back each week on any activity generated on these
patches, as well as sharing a new batch. If you want your patch included you
must submit it via the linked form.
Thanks to Vedant Kumar for giving feedback on last week's patch. I've had no
new submissions this week, but Nikolai Kosjar is still [looking for
[D39903](https://reviews.llvm.org/D39903) which allows pretty-printing of
declarations through the libclang API.
More information about the llvm-dev