<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/codegen/function-arguments.rs, branch 1.24.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.24.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.24.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-02-01T20:14:24+00:00</updated>
<entry>
<title>rustc_trans: keep LLVM types for trait objects anonymous.</title>
<updated>2018-02-01T20:14:24+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2018-01-30T22:23:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=06e74a930da1a5d721e27cd0be3fdb0c2f4ec786'/>
<id>urn:sha1:06e74a930da1a5d721e27cd0be3fdb0c2f4ec786</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_trans: work around i686-pc-windows-msvc byval align LLVM bug.</title>
<updated>2017-11-19T15:58:38+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2017-11-19T10:13:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=88e4d2c2918428d55e34cd57c11279ea839c8822'/>
<id>urn:sha1:88e4d2c2918428d55e34cd57c11279ea839c8822</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: unpack scalar newtype layout ABIs.</title>
<updated>2017-11-19T00:43:55+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2017-10-08T23:31:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=37a7521ef93b2e2d7a4cd04df38929d841b8ffcc'/>
<id>urn:sha1:37a7521ef93b2e2d7a4cd04df38929d841b8ffcc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: encode scalar pairs in layout ABI.</title>
<updated>2017-11-19T00:43:32+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2017-10-06T07:25:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cdeb4b0d258c19f57ee6fb089126656e18324367'/>
<id>urn:sha1:cdeb4b0d258c19f57ee6fb089126656e18324367</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_trans: compute better align/dereferenceable attributes from pointees.</title>
<updated>2017-11-19T00:14:33+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2017-10-03T07:45:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f8d5d0c30c32c20163e45c3c1521add198b63afc'/>
<id>urn:sha1:f8d5d0c30c32c20163e45c3c1521add198b63afc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_trans: go through layouts uniformly for fat pointers and variants.</title>
<updated>2017-11-19T00:14:32+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2017-09-21T17:40:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b723af284a22e6c0f2d85c104067138c33f8859d'/>
<id>urn:sha1:b723af284a22e6c0f2d85c104067138c33f8859d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_trans: always insert alignment padding, even before the first field.</title>
<updated>2017-11-19T00:14:28+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2017-06-25T09:42:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8afa3a01e61906459a25d305176137e14ba3f835'/>
<id>urn:sha1:8afa3a01e61906459a25d305176137e14ba3f835</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_trans: use *[T; 0] for slice data pointers instead of *T.</title>
<updated>2017-11-19T00:14:28+00:00</updated>
<author>
<name>Eduard-Mihai Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2017-06-26T15:33:50+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0a1fcc32a65c87646fe1613ea00c9447f04a646b'/>
<id>urn:sha1:0a1fcc32a65c87646fe1613ea00c9447f04a646b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update codegen tests.</title>
<updated>2017-11-07T07:54:38+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo</email>
</author>
<published>2017-10-30T17:18:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9fd4be9c2e4ef563aaa00f0d8a631e315547daf0'/>
<id>urn:sha1:9fd4be9c2e4ef563aaa00f0d8a631e315547daf0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Avoid unnecessary copies of arguments that are simple bindings</title>
<updated>2017-10-26T10:54:34+00:00</updated>
<author>
<name>Björn Steinbrink</name>
<email>bsteinbr@gmail.com</email>
</author>
<published>2017-10-11T18:49:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0473a4f1d8f5e10c1ec97b1f7b4918308e1c1090'/>
<id>urn:sha1:0473a4f1d8f5e10c1ec97b1f7b4918308e1c1090</id>
<content type='text'>
Initially MIR differentiated between arguments and locals, which
introduced a need to add extra copies assigning the argument to a
local, even for simple bindings. This differentiation no longer exists,
but we're still creating those copies, bloating the MIR and LLVM IR we
emit.

Additionally, the current approach means that we create debug info for
both the incoming argument (marking it as an argument), and then
immediately shadow it a local that goes by the same name. This can be
confusing when using e.g. "info args" in gdb, or when e.g. a debugger
with a GUI displays the function arguments separately from the local
variables, especially when the binding is mutable, because the argument
doesn't change, while the local variable does.
</content>
</entry>
</feed>
