[llvm-dev] LLVM Weekly - #119, Apr 11th 2016
Alex Bradbury via llvm-dev
llvm-dev at lists.llvm.org
Mon Apr 11 06:01:24 PDT 2016
LLVM Weekly - #119, Apr 11th 2016
If you prefer, you can read a HTML version of this email at
Welcome to the one hundred and nineteenth 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](http://asbradbury.org). 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
Last week the slides from the [recent EuroLLVM 2016 Developers'
Meeting](http://llvm.org/devmtg/2016-03/) made it online. This week this has
been followed by
[videos of the talks from the
John Regehr has written about [efficient integer overflow checking in
LLVM](http://blog.regehr.org/archives/1384), looking at cases where LLVM can
and cannot remove unnecessary overflow checks, and how this might be improved.
Version 0.13 of Pocl, the portable OpenCL implementation [has been
This release works with LLVM/Clang 3.8 and 3.7, and adds initial OpenCL 2.0
support and improved HSA support.
Serge Guelton at QuarksLab has written up a really useful guide to
[implementing a custom directive handler in
Microsoft's Visual C++ team are [looking for feedback on
(Clang with Microsoft CodeGen).
## On the mailing lists
* James Molloy has posted an RFC on adding support for [constant folding calls
to math.h functions on long
Currently these functions aren't constant-folded as the internal APFloat class
doesn't implement them and long double operations aren't portable. Solutions
include adding support to APFloat, linking against libMPFR to provide
compile-time evaluation, or recognising when the long double format of the
host and target are the same, so the host math library can be called. From the
responses so far, there seems to be some push-back on adding the libMPFR
* Sanjoy Das has an RFC on [adding a patchable-prologue
This would be used to indicate that the function's prologue is compiled so as
to provide support for easy hot-patching.
* Ulrich Weigand has shared a patch for [supporting LLDB on Linux on
patchset contains many big-endian fixes, and may be of interest to others
looking at porting LLDB.
## LLVM commits
* The Swift calling convention as well as support for the 'swifterror'
argument has been added.
* Work on GlobalISel continues with many commits related to the assignment of
virtual registers to register banks.
* LLVM will no longer perform inter-procedural optimisation over functions
that can be "de-refined". [r265762](http://reviews.llvm.org/rL265762).
* The substitutions supported by lit are now documented.
* Unrolled loops now execute the remainder in an epilogue rather than the
prologue. This should produce slightly improved code.
## Clang commits
* Clang gained necessary support for the Swift calling convention.
* New flags `-fno-jump-tables` and `-fjump-tables` can be used to
disable/enable support for jump tables when lowering switch statements.
* TargetOptions is now passed through all the TargetInfo constructors. This
will allow target information to be modified based on the ABI selected.
* A large number of intrinsics from emmintrin.h now have Doxygen docs.
## Other project commits
* clang-tidy gained a new check to flag initializers of globals that access
extern objects, leading to potential order-of-initialization issues.
* LLD's ELF linker gained new options `--start-lib`, `--end-lib`,
More information about the llvm-dev