<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/rustllvm/PassWrapper.cpp, branch 1.30.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.30.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.30.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-08-31T13:22:52+00:00</updated>
<entry>
<title>Provide a way of accessing the ThinLTO module import map in rustc.</title>
<updated>2018-08-31T13:22:52+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2018-08-17T13:25:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2e587df6e2215b9dd053879d2ad42044781fc1c4'/>
<id>urn:sha1:2e587df6e2215b9dd053879d2ad42044781fc1c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix warnings about the `native` target-cpu</title>
<updated>2018-08-28T20:32:11+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2018-08-23T18:03:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1fd45a13dee17701fc0aeaa847c1919d485d09fd'/>
<id>urn:sha1:1fd45a13dee17701fc0aeaa847c1919d485d09fd</id>
<content type='text'>
This fixes a regression from #53031 where specifying `-C target-cpu=native` is
printing a lot of warnings from LLVM about `native` being an unknown CPU. It
turns out that `native` is indeed an unknown CPU and we have to perform a
mapping to an actual CPU name, but this mapping is only performed in one
location rather than all locations we inform LLVM about the target CPU.

This commit centralizes the mapping of `native` to LLVM's value of the native
CPU, ensuring that all locations we inform LLVM about the `target-cpu` it's
never `native`.

Closes #53322
</content>
</entry>
<entry>
<title>Buffer LLVM's object output stream</title>
<updated>2018-08-20T06:46:32+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2018-08-20T06:44:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9d54bf8df2677dd5f985838c5686efaa24a73b6c'/>
<id>urn:sha1:9d54bf8df2677dd5f985838c5686efaa24a73b6c</id>
<content type='text'>
In some profiling on OSX I saw the `write` syscall as quite high up on
the profiling graph, which is definitely not good! It looks like we're
setting the output stream of an object file as directly to a file
descriptor which means that we run the risk of doing lots of little
writes rather than a few large writes.

This commit fixes this issue by adding a buffered stream on the output,
causing the `write` syscall to disappear from the profiles on OSX.
</content>
</entry>
<entry>
<title>Make LLVM emit assembly comments with -Z asm-comments.</title>
<updated>2018-08-12T17:59:33+00:00</updated>
<author>
<name>whitequark</name>
<email>whitequark@whitequark.org</email>
</author>
<published>2018-08-12T17:59:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=66fd1ebfae2fff815f27bf2be19469f40dd99c88'/>
<id>urn:sha1:66fd1ebfae2fff815f27bf2be19469f40dd99c88</id>
<content type='text'>
Fixes #35741.
</content>
</entry>
<entry>
<title>[RISCV] Enable LLVM backend.</title>
<updated>2018-08-01T13:32:22+00:00</updated>
<author>
<name>David Craven</name>
<email>david@craven.ch</email>
</author>
<published>2018-07-24T10:03:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2d5f62fb48536d69aa7de0d7504df278271ccf25'/>
<id>urn:sha1:2d5f62fb48536d69aa7de0d7504df278271ccf25</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #52824 - varkor:fix-llvm-ret-move-warnings, r=rkruppe</title>
<updated>2018-08-01T08:12:45+00:00</updated>
<author>
<name>Pietro Albini</name>
<email>pietro@pietroalbini.org</email>
</author>
<published>2018-08-01T08:12:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=61b9a516d3c0495596b21fae10eab0f82c4c7f7f'/>
<id>urn:sha1:61b9a516d3c0495596b21fae10eab0f82c4c7f7f</id>
<content type='text'>
Fix -Wpessimizing-move warnings in rustllvm/PassWrapper

These are producing warnings when building rustc (`warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]`).
</content>
</entry>
<entry>
<title>rustc_codegen_llvm: remove more unused functions.</title>
<updated>2018-07-30T17:10:25+00:00</updated>
<author>
<name>Irina Popa</name>
<email>irinagpopa@gmail.com</email>
</author>
<published>2018-07-10T15:00:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ebec156abfc25ce695227ed2c12c420244a433f8'/>
<id>urn:sha1:ebec156abfc25ce695227ed2c12c420244a433f8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix -Wpessimizing-move warnings in rustllvm/PassWrapper</title>
<updated>2018-07-29T11:20:06+00:00</updated>
<author>
<name>varkor</name>
<email>github@varkor.com</email>
</author>
<published>2018-07-29T11:20:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9ccd7eef1eeda8d207f62dae0c32d35cad7fa826'/>
<id>urn:sha1:9ccd7eef1eeda8d207f62dae0c32d35cad7fa826</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #52506 - alexcrichton:dont-duplicate-wasm-sections, r=michaelwoerister</title>
<updated>2018-07-23T13:42:23+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2018-07-23T13:42:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5665a2d36778693ca19215540a518ccf04eb0b1a'/>
<id>urn:sha1:5665a2d36778693ca19215540a518ccf04eb0b1a</id>
<content type='text'>
rustc: Work around an upstream wasm ThinLTO bug

This commit implements a workaround for an [upstream LLVM bug][1] where custom
sections were accidentally duplicated amongst codegen units when ThinLTO passes
were performed. This is due to the fact that custom sections for wasm are stored
as metadata nodes which are automatically imported into modules when ThinLTO
happens. The fix here is to forcibly delete the metadata node from imported
modules before LLVM has a chance to try to copy it over.

[1]: https://bugs.llvm.org/show_bug.cgi?id=38184
</content>
</entry>
<entry>
<title>rustc: Work around an upstream wasm ThinLTO bug</title>
<updated>2018-07-18T19:12:53+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2018-07-18T19:12:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e08fcbbd8d241ab68d72dc8b288ca55b8c1114fe'/>
<id>urn:sha1:e08fcbbd8d241ab68d72dc8b288ca55b8c1114fe</id>
<content type='text'>
This commit implements a workaround for an [upstream LLVM bug][1] where custom
sections were accidentally duplicated amongst codegen units when ThinLTO passes
were performed. This is due to the fact that custom sections for wasm are stored
as metadata nodes which are automatically imported into modules when ThinLTO
happens. The fix here is to forcibly delete the metadata node from imported
modules before LLVM has a chance to try to copy it over.

[1]: https://bugs.llvm.org/show_bug.cgi?id=38184
</content>
</entry>
</feed>
