<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/codegen/cffi, branch 1.84.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.84.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.84.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-10-06T16:12:25+00:00</updated>
<entry>
<title>more `asm!` -&gt; `naked_asm!` in tests</title>
<updated>2024-10-06T16:12:25+00:00</updated>
<author>
<name>Folkert de Vries</name>
<email>folkert@folkertdev.nl</email>
</author>
<published>2024-09-05T15:48:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bc0a9543a3e8843a908d3e256e70b75441ef2743'/>
<id>urn:sha1:bc0a9543a3e8843a908d3e256e70b75441ef2743</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `-Zlint-llvm-ir`</title>
<updated>2024-08-29T10:12:31+00:00</updated>
<author>
<name>DianQK</name>
<email>dianqk@dianqk.net</email>
</author>
<published>2024-08-29T10:12:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9589eb95d2872337e932c8b5dc26bdb5cb3dc15b'/>
<id>urn:sha1:9589eb95d2872337e932c8b5dc26bdb5cb3dc15b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use the aligned size for alloca at args when the pass mode is cast.</title>
<updated>2024-07-01T22:33:35+00:00</updated>
<author>
<name>DianQK</name>
<email>dianqk@dianqk.net</email>
</author>
<published>2024-06-30T13:33:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c453dcd62abba536d0580ad9b880b86d46e911ce'/>
<id>urn:sha1:c453dcd62abba536d0580ad9b880b86d46e911ce</id>
<content type='text'>
The `load` and `store` instructions in LLVM access the aligned size.
</content>
</entry>
<entry>
<title>Remove c_unwind from tests and fix tests</title>
<updated>2024-06-19T12:54:55+00:00</updated>
<author>
<name>Gary Guo</name>
<email>gary@garyguo.net</email>
</author>
<published>2023-08-25T12:52:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5812b1fd124768991b690621654aea3eea7400f4'/>
<id>urn:sha1:5812b1fd124768991b690621654aea3eea7400f4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Run rustfmt on `tests/codegen/`.</title>
<updated>2024-05-31T05:56:43+00:00</updated>
<author>
<name>Nicholas Nethercote</name>
<email>n.nethercote@gmail.com</email>
</author>
<published>2024-05-29T04:11:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=72800d3b896a5733d08213ec357f3a875f1f5b0e'/>
<id>urn:sha1:72800d3b896a5733d08213ec357f3a875f1f5b0e</id>
<content type='text'>
Except for `simd-intrinsic/`, which has a lot of files containing
multiple types like `u8x64` which really are better when hand-formatted.

There is a surprising amount of two-space indenting in this directory.

Non-trivial changes:
- `rustfmt::skip` needed in `debug-column.rs` to preserve meaning of the
  test.
- `rustfmt::skip` used in a few places where hand-formatting read more
  nicely: `enum/enum-match.rs`
- Line number adjustments needed for the expected output of
  `debug-column.rs` and `coroutine-debug.rs`.
</content>
</entry>
<entry>
<title>Auto merge of #122053 - erikdesjardins:alloca, r=nikic</title>
<updated>2024-04-24T03:00:44+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2024-04-24T03:00:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=29a56a3b1c06a624c0c06728c0af756d09df6b1b'/>
<id>urn:sha1:29a56a3b1c06a624c0c06728c0af756d09df6b1b</id>
<content type='text'>
Stop using LLVM struct types for alloca

The alloca type has no semantic meaning, only the size (and alignment, but we specify it explicitly) matter. Using `[N x i8]` is a more direct way to specify that we want `N` bytes, and avoids relying on LLVM's struct layout. It is likely that a future LLVM version will change to an untyped alloca representation.

Split out from #121577.

r? `@ghost`
</content>
</entry>
<entry>
<title>Rollup merge of #123249 - goolmoos:naked_variadics, r=pnkfelix</title>
<updated>2024-04-12T15:41:33+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-04-12T15:41:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=4a0e9e0debeb29f5cf0ae4e886c8c9a1cbb2fe78'/>
<id>urn:sha1:4a0e9e0debeb29f5cf0ae4e886c8c9a1cbb2fe78</id>
<content type='text'>
do not add prolog for variadic naked functions

fixes #99858
</content>
</entry>
<entry>
<title>do not add prolog for variadic naked functions</title>
<updated>2024-04-12T12:29:39+00:00</updated>
<author>
<name>Guy Shefy</name>
<email>guyshefyb@gmail.com</email>
</author>
<published>2024-03-30T13:33:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9139d7252de74c30539afb35dc05e3536456971b'/>
<id>urn:sha1:9139d7252de74c30539afb35dc05e3536456971b</id>
<content type='text'>
fixes #99858
</content>
</entry>
<entry>
<title>use [N x i8] for alloca types</title>
<updated>2024-04-12T01:42:35+00:00</updated>
<author>
<name>Erik Desjardins</name>
<email>erikdesjardins@users.noreply.github.com</email>
</author>
<published>2024-02-24T05:48:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f4426c189f2587fc5e8f48bf518cc75a37d93d0f'/>
<id>urn:sha1:f4426c189f2587fc5e8f48bf518cc75a37d93d0f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add tests for PassMode::Cast fixes</title>
<updated>2024-03-17T04:39:21+00:00</updated>
<author>
<name>Erik Desjardins</name>
<email>erikdesjardins@users.noreply.github.com</email>
</author>
<published>2024-03-17T04:25:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8d5fd94e6292b298e59a637d84fa16bed30d64d4'/>
<id>urn:sha1:8d5fd94e6292b298e59a637d84fa16bed30d64d4</id>
<content type='text'>
Tests added in cast-target-abi.rs, covering the single element, array,
and prefix cases in `CastTarget::llvm_type`, and the Rust-is-larger/smaller
cases in the Rust&lt;-&gt;ABI copying code.

ffi-out-of-bounds-loads.rs was overhauled to be runnable on any
platform. Its alignment also increases due to the removal of a `min` in
the previous commit; this was probably an insufficient workaround for
this issue or similar. The higher alignment is fine, since the alloca is
actually aligned to 8 bytes, as the test checks now confirm.
</content>
</entry>
</feed>
