diff options
| author | bors <bors@rust-lang.org> | 2025-02-10 05:18:36 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-02-10 05:18:36 +0000 |
| commit | c03c38d5c2368cd2aa0e056dba060b94fc747f4e (patch) | |
| tree | a1b3efb8bcd3db6efcc8e02ba158e00595175407 /src/bootstrap | |
| parent | d9a4a47b8b3dc0bdff83360cea2013200d60d49c (diff) | |
| parent | 56795fb77a69bc61836537175564455067adada6 (diff) | |
| download | rust-c03c38d5c2368cd2aa0e056dba060b94fc747f4e.tar.gz rust-c03c38d5c2368cd2aa0e056dba060b94fc747f4e.zip | |
Auto merge of #134740 - Flakebi:amdgpu-target, r=workingjubilee
Add amdgpu target Add amdgpu target to rustc and enable the LLVM target. Fix compiling `core` with the amdgpu: The amdgpu backend makes heavy use of different address spaces. This leads to situations, where a pointer in one addrspace needs to be casted to a pointer in a different addrspace. `bitcast` is invalid for this case, `addrspacecast` needs to be used. Fix compilation failures that created bitcasts for such cases by creating pointer casts (which creates an `addrspacecast` under the hood) instead. MCP: https://github.com/rust-lang/compiler-team/issues/823 Tracking issue: #135024 Kinda related to the original amdgpu tracking issue #51575 (though that one has been closed for a while).
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/download-ci-llvm-stamp | 2 | ||||
| -rw-r--r-- | src/bootstrap/src/core/build_steps/llvm.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/download-ci-llvm-stamp b/src/bootstrap/download-ci-llvm-stamp index 42cecbf5df9..d2c0d380fb4 100644 --- a/src/bootstrap/download-ci-llvm-stamp +++ b/src/bootstrap/download-ci-llvm-stamp @@ -1,4 +1,4 @@ Change this file to make users of the `download-ci-llvm` configuration download a new version of LLVM from CI, even if the LLVM submodule hasn’t changed. -Last change is for: https://github.com/rust-lang/rust/pull/129788 +Last change is for: https://github.com/rust-lang/rust/pull/134740 diff --git a/src/bootstrap/src/core/build_steps/llvm.rs b/src/bootstrap/src/core/build_steps/llvm.rs index 25e5e9e6eb9..49bf04356d5 100644 --- a/src/bootstrap/src/core/build_steps/llvm.rs +++ b/src/bootstrap/src/core/build_steps/llvm.rs @@ -335,7 +335,7 @@ impl Step for Llvm { let llvm_targets = match &builder.config.llvm_targets { Some(s) => s, None => { - "AArch64;ARM;BPF;Hexagon;LoongArch;MSP430;Mips;NVPTX;PowerPC;RISCV;\ + "AArch64;AMDGPU;ARM;BPF;Hexagon;LoongArch;MSP430;Mips;NVPTX;PowerPC;RISCV;\ Sparc;SystemZ;WebAssembly;X86" } }; |
