<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/rustllvm/PassWrapper.cpp, branch 1.9.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.9.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.9.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2016-01-25T05:15:39+00:00</updated>
<entry>
<title>Register LLVM passes with the correct LLVM pass manager.</title>
<updated>2016-01-25T05:15:39+00:00</updated>
<author>
<name>Corey Farwell</name>
<email>coreyf@rwell.org</email>
</author>
<published>2016-01-25T01:22:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d9426210b197cb0be1db9838342349f38db135e3'/>
<id>urn:sha1:d9426210b197cb0be1db9838342349f38db135e3</id>
<content type='text'>
LLVM was upgraded to a new version in this commit:

https://github.com/rust-lang/rust/commit/f9d4149c29e8b989fa3624993be379f380e48dcf

which was part of this pull request:

https://github.com/rust-lang/rust/issues/26025

Consider the following two lines from that commit:

https://github.com/rust-lang/rust/commit/f9d4149c29e8b989fa3624993be379f380e48dcf#diff-a3b24dbe2ea7c1981f9ac79f9745f40aL462

https://github.com/rust-lang/rust/commit/f9d4149c29e8b989fa3624993be379f380e48dcf#diff-a3b24dbe2ea7c1981f9ac79f9745f40aL469

The purpose of these lines is to register LLVM passes. Prior to the that
commit, the passes being handled were assumed to be ModulePasses (a
specific type of LLVM pass) since they were being added to a ModulePass
manager. After that commit, both lines were refactored (presumably in an
attempt to DRY out the code), but the ModulePasses were changed to be
registered to a FunctionPass manager. This change resulted in
ModulePasses being run, but a Function object was being passed as a
parameter to the pass instead of a Module, which resulted in
segmentation faults.

In this commit, I changed relevant sections of the code to check the
type of the passes being added and register them to the appropriate pass
manager.

Closes https://github.com/rust-lang/rust/issues/31067
</content>
</entry>
<entry>
<title>Remove segmented stack option from LLVMRustCreateTargetMachine. Unused.</title>
<updated>2015-11-20T00:58:23+00:00</updated>
<author>
<name>Brian Anderson</name>
<email>banderson@mozilla.com</email>
</author>
<published>2015-11-19T19:32:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=99741700e54ce98c12eb754b60917de21c75c2f4'/>
<id>urn:sha1:99741700e54ce98c12eb754b60917de21c75c2f4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustllvm: Update to LLVM trunk</title>
<updated>2015-10-24T09:42:23+00:00</updated>
<author>
<name>Seo Sanghyeon</name>
<email>sanxiyn@gmail.com</email>
</author>
<published>2015-10-24T09:42:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b285f9202590050a7b480a99a074673630b11f4f'/>
<id>urn:sha1:b285f9202590050a7b480a99a074673630b11f4f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid using getDataLayout, deprecated in LLVM 3.7</title>
<updated>2015-10-13T06:11:59+00:00</updated>
<author>
<name>Seo Sanghyeon</name>
<email>sanxiyn@gmail.com</email>
</author>
<published>2015-10-13T06:11:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=22dc40821770db567915250af3f8c2fdb0c1ab81'/>
<id>urn:sha1:22dc40821770db567915250af3f8c2fdb0c1ab81</id>
<content type='text'>
</content>
</entry>
<entry>
<title>typos: fix a grabbag of typos all over the place</title>
<updated>2015-10-08T18:49:31+00:00</updated>
<author>
<name>Cristi Cobzarenco</name>
<email>cristi.cobzarenco@gmail.com</email>
</author>
<published>2015-10-07T22:11:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4b308b44e1d8204702f6912dda4dfc404aa2a87d'/>
<id>urn:sha1:4b308b44e1d8204702f6912dda4dfc404aa2a87d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>trans: Clean up handling the LLVM data layout</title>
<updated>2015-07-17T03:25:52+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-07-16T22:48:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=958d5638254958ea42652de7444b63f2e67e7fe3'/>
<id>urn:sha1:958d5638254958ea42652de7444b63f2e67e7fe3</id>
<content type='text'>
Turns out for OSX our data layout was subtly wrong and the LLVM update must have
exposed this. Instead of fixing this I've removed all data layouts from the
compiler to just use the defaults that LLVM provides for all targets. All data
layouts (and a number of dead modules) are removed from the compiler here.
Custom target specifications can still provide a custom data layout, but it is
now an optional key as the default will be used if one isn't specified.
</content>
</entry>
<entry>
<title>rustc: Update LLVM</title>
<updated>2015-06-17T05:56:42+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-05-14T19:10:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f9d4149c29e8b989fa3624993be379f380e48dcf'/>
<id>urn:sha1:f9d4149c29e8b989fa3624993be379f380e48dcf</id>
<content type='text'>
This commit updates the LLVM submodule in use to the current HEAD of the LLVM
repository. This is primarily being done to start picking up unwinding support
for MSVC, which is currently unimplemented in the revision of LLVM we are using.
Along the way a few changes had to be made:

* As usual, lots of C++ debuginfo bindings in LLVM changed, so there were some
  significant changes to our RustWrapper.cpp
* As usual, some pass management changed in LLVM, so clang was re-scrutinized to
  ensure that we're doing the same thing as clang.
* Some optimization options are now passed directly into the
  `PassManagerBuilder` instead of through CLI switches to LLVM.
* The `NoFramePointerElim` option was removed from LLVM, favoring instead the
  `no-frame-pointer-elim` function attribute instead.

Additionally, LLVM has picked up some new optimizations which required fixing an
existing soundness hole in the IR we generate. It appears that the current LLVM
we use does not expose this hole. When an enum is moved, the previous slot in
memory is overwritten with a bit pattern corresponding to "dropped". When the
drop glue for this slot is run, however, the switch on the discriminant can
often start executing the `unreachable` block of the switch due to the
discriminant now being outside the normal range. This was patched over locally
for now by having the `unreachable` block just change to a `ret void`.
</content>
</entry>
<entry>
<title>LLVM &lt; 3.5 is unsupported since bb18a3c</title>
<updated>2015-04-21T14:20:48+00:00</updated>
<author>
<name>Tamir Duberstein</name>
<email>tamird@gmail.com</email>
</author>
<published>2015-04-20T17:19:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ba276adab596bafe48a27dc02dcc5867446a52b5'/>
<id>urn:sha1:ba276adab596bafe48a27dc02dcc5867446a52b5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for target-cpu=native</title>
<updated>2015-03-10T00:56:51+00:00</updated>
<author>
<name>Julian Orth</name>
<email>ju.orth@gmail.com</email>
</author>
<published>2015-03-10T00:46:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=660b48fae5f54c4a4994b8c23550f580927775ab'/>
<id>urn:sha1:660b48fae5f54c4a4994b8c23550f580927775ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>optimize position independent code in executables</title>
<updated>2014-10-12T13:18:14+00:00</updated>
<author>
<name>Daniel Micay</name>
<email>danielmicay@gmail.com</email>
</author>
<published>2014-08-09T16:43:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4deb4bcba590e707e23670d8b40bc5520c5ab7fe'/>
<id>urn:sha1:4deb4bcba590e707e23670d8b40bc5520c5ab7fe</id>
<content type='text'>
Position independent code has fewer requirements in executables, so pass
the appropriate flag to LLVM in order to allow more optimization. At the
moment this means faster thread-local storage.
</content>
</entry>
</feed>
