<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/compiler/rustc_llvm, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-07-21T16:54:24+00:00</updated>
<entry>
<title>Rollup merge of #142097 - ZuseZ4:offload-host1, r=oli-obk</title>
<updated>2025-07-21T16:54:24+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>39484203+jieyouxu@users.noreply.github.com</email>
</author>
<published>2025-07-21T16:54:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5e3eb2512591df0cef52404f0ea4202f58935a54'/>
<id>urn:sha1:5e3eb2512591df0cef52404f0ea4202f58935a54</id>
<content type='text'>
gpu offload host code generation

r? ghost

This will generate most of the host side code to use llvm's offload feature.
The first PR will only handle automatic mem-transfers to and from the device.
So if a user calls a kernel, we will copy inputs back and forth, but we won't do the actual kernel launch.
Before merging, we will use LLVM's Info infrastructure to verify that the memcopies match what openmp offloa generates in C++. `LIBOMPTARGET_INFO=-1 ./my_rust_binary` should print that a memcpy to and later from the device is happening.

A follow-up PR will generate the actual device-side kernel which will then do computations on the GPU.
A third PR will implement manual host2device and device2host functionality, but the goal is to minimize cases where a user has to overwrite our default handling due to performance issues.

I'm trying to get a full MVP out first, so this just recognizes GPU functions based on magic names. The final frontend will obviously move this over to use proper macros, like I'm already doing it for the autodiff work.
This work will also be compatible with std::autodiff, so one can differentiate GPU kernels.

Tracking:
- https://github.com/rust-lang/rust/issues/131513
</content>
</entry>
<entry>
<title>Rollup merge of #144116 - nikic:llvm-21-fixes, r=dianqk</title>
<updated>2025-07-20T06:56:08+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-07-20T06:56:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d24684ef4f78f25e559eec469a49834c0e3cccf5'/>
<id>urn:sha1:d24684ef4f78f25e559eec469a49834c0e3cccf5</id>
<content type='text'>
Fixes for LLVM 21

This fixes compatibility issues with LLVM 21 without performing the actual upgrade. Split out from https://github.com/rust-lang/rust/pull/143684.

This fixes three issues:
 * Updates the AMDGPU data layout for address space 8.
 * Makes emit-arity-indicator.rs a no_core test, so it doesn't fail on non-x86 hosts.
 * Explicitly sets the exception model for wasm, as this is no longer implied by `-wasm-enable-eh`.
</content>
</entry>
<entry>
<title>Rollup merge of #142444 - KMJ-007:autodiff-codegen-test, r=ZuseZ4</title>
<updated>2025-07-19T06:55:34+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>476013+matthiaskrgr@users.noreply.github.com</email>
</author>
<published>2025-07-19T06:55:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=44ee51de0b053a3cd56db91982e95eb0c8f3132e'/>
<id>urn:sha1:44ee51de0b053a3cd56db91982e95eb0c8f3132e</id>
<content type='text'>
adding run-make test to autodiff

r? `@ZuseZ4`
</content>
</entry>
<entry>
<title>add various wrappers for gpu code generation</title>
<updated>2025-07-18T23:24:12+00:00</updated>
<author>
<name>Manuel Drehwald</name>
<email>git@manuel.drehwald.info</email>
</author>
<published>2025-07-02T23:35:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5958ebe829429e3595e8211e6cb1b0328d515ab7'/>
<id>urn:sha1:5958ebe829429e3595e8211e6cb1b0328d515ab7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Pass wasm exception model to TargetOptions</title>
<updated>2025-07-18T07:35:50+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>npopov@redhat.com</email>
</author>
<published>2025-07-11T08:11:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=12b19be741ea07934d7478bd8e450dca8f85afe5'/>
<id>urn:sha1:12b19be741ea07934d7478bd8e450dca8f85afe5</id>
<content type='text'>
This is no longer implied by -wasm-enable-eh.
</content>
</entry>
<entry>
<title>Avoid building C++ for rustc_llvm with --compile-time-deps</title>
<updated>2025-07-11T13:32:03+00:00</updated>
<author>
<name>bjorn3</name>
<email>17426603+bjorn3@users.noreply.github.com</email>
</author>
<published>2025-07-11T13:32:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=87958ad68314daa784e93db4462afc0c079bd3a8'/>
<id>urn:sha1:87958ad68314daa784e93db4462afc0c079bd3a8</id>
<content type='text'>
This saves about 30s.
</content>
</entry>
<entry>
<title>awhile -&gt; a while where appropriate</title>
<updated>2025-07-02T18:17:29+00:00</updated>
<author>
<name>наб</name>
<email>nabijaczleweli@nabijaczleweli.xyz</email>
</author>
<published>2025-07-01T05:21:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a0111ec7a1f895bd4517b8530596d408f1b58214'/>
<id>urn:sha1:a0111ec7a1f895bd4517b8530596d408f1b58214</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix: Fix TypePrintFn flag passing for autodiff codegen</title>
<updated>2025-07-02T02:55:21+00:00</updated>
<author>
<name>Karan Janthe</name>
<email>karanjanthe@gmail.com</email>
</author>
<published>2025-06-30T14:29:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5773d38c7a7d522e6d867de1e57375d129ae478e'/>
<id>urn:sha1:5773d38c7a7d522e6d867de1e57375d129ae478e</id>
<content type='text'>
Signed-off-by: Karan Janthe &lt;karanjanthe@gmail.com&gt;
</content>
</entry>
<entry>
<title>rustc_llvm: add Windows system libs only when cross-compiling from Windows</title>
<updated>2025-05-31T13:47:14+00:00</updated>
<author>
<name>Mateusz Mikuła</name>
<email>oss@mateuszmikula.dev</email>
</author>
<published>2025-04-27T11:10:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=81f61acf77b539af47291f23d5eb2617878a3e2a'/>
<id>urn:sha1:81f61acf77b539af47291f23d5eb2617878a3e2a</id>
<content type='text'>
This obviously doesn't work when cross-compiling from Linux.

Split out from: https://github.com/rust-lang/rust/pull/140772
</content>
</entry>
<entry>
<title>Experimental cygwin support in rustc</title>
<updated>2025-05-15T15:34:11+00:00</updated>
<author>
<name>王宇逸</name>
<email>Strawberry_Str@hotmail.com</email>
</author>
<published>2025-04-22T08:16:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=49553be30784711d7dc6976ef1335b74df7cbe44'/>
<id>urn:sha1:49553be30784711d7dc6976ef1335b74df7cbe44</id>
<content type='text'>
Co-authored-by: Ookiineko &lt;chiisaineko@protonmail.com&gt;
</content>
</entry>
</feed>
