Rollup merge of #150966 - arch-powerpc64le, r=petrochenkov
rustc_target: Remove unused Arch::PowerPC64LE This variant has been added in https://github.com/rust-lang/rust/pull/147645, but actually unused since target_arch for powerpc64le- targets is "powerpc64". (The difference between powerpc64- and powerpc64le- targets is identified by target_endian.) Note: This is an internal cleanup and does NOT remove `powerpc64le-*` targets.
This commit is contained in:
commit
d23e780a57
8 changed files with 6 additions and 26 deletions
|
|
@ -144,7 +144,7 @@ impl CodegenCx<'_, '_> {
|
|||
}
|
||||
|
||||
// PowerPC64 prefers TOC indirection to avoid copy relocations.
|
||||
if matches!(self.tcx.sess.target.arch, Arch::PowerPC64 | Arch::PowerPC64LE) {
|
||||
if self.tcx.sess.target.arch == Arch::PowerPC64 {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1064,15 +1064,6 @@ pub(super) fn emit_va_arg<'ll, 'tcx>(
|
|||
AllowHigherAlign::Yes,
|
||||
ForceRightAdjust::Yes,
|
||||
),
|
||||
Arch::PowerPC64LE => emit_ptr_va_arg(
|
||||
bx,
|
||||
addr,
|
||||
target_ty,
|
||||
PassMode::Direct,
|
||||
SlotSize::Bytes8,
|
||||
AllowHigherAlign::Yes,
|
||||
ForceRightAdjust::No,
|
||||
),
|
||||
Arch::LoongArch32 => emit_ptr_va_arg(
|
||||
bx,
|
||||
addr,
|
||||
|
|
|
|||
|
|
@ -1725,7 +1725,6 @@ symbols! {
|
|||
postfix_match,
|
||||
powerpc,
|
||||
powerpc64,
|
||||
powerpc64le,
|
||||
powerpc_target_feature,
|
||||
powf16,
|
||||
powf32,
|
||||
|
|
|
|||
|
|
@ -261,7 +261,7 @@ impl InlineAsmArch {
|
|||
Arch::Mips | Arch::Mips32r6 => Some(Self::Mips),
|
||||
Arch::Mips64 | Arch::Mips64r6 => Some(Self::Mips64),
|
||||
Arch::PowerPC => Some(Self::PowerPC),
|
||||
Arch::PowerPC64 | Arch::PowerPC64LE => Some(Self::PowerPC64),
|
||||
Arch::PowerPC64 => Some(Self::PowerPC64),
|
||||
Arch::S390x => Some(Self::S390x),
|
||||
Arch::Sparc => Some(Self::Sparc),
|
||||
Arch::Sparc64 => Some(Self::Sparc64),
|
||||
|
|
|
|||
|
|
@ -702,7 +702,7 @@ impl<'a, Ty> FnAbi<'a, Ty> {
|
|||
Arch::RiscV32 | Arch::RiscV64 => riscv::compute_abi_info(cx, self),
|
||||
Arch::Wasm32 | Arch::Wasm64 => wasm::compute_abi_info(cx, self),
|
||||
Arch::Bpf => bpf::compute_abi_info(cx, self),
|
||||
arch @ (Arch::PowerPC64LE | Arch::SpirV | Arch::Other(_)) => {
|
||||
arch @ (Arch::SpirV | Arch::Other(_)) => {
|
||||
panic!("no lowering implemented for {arch}")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1873,7 +1873,6 @@ crate::target_spec_enum! {
|
|||
Nvptx64 = "nvptx64",
|
||||
PowerPC = "powerpc",
|
||||
PowerPC64 = "powerpc64",
|
||||
PowerPC64LE = "powerpc64le",
|
||||
RiscV32 = "riscv32",
|
||||
RiscV64 = "riscv64",
|
||||
S390x = "s390x",
|
||||
|
|
@ -1911,7 +1910,6 @@ impl Arch {
|
|||
Self::Nvptx64 => sym::nvptx64,
|
||||
Self::PowerPC => sym::powerpc,
|
||||
Self::PowerPC64 => sym::powerpc64,
|
||||
Self::PowerPC64LE => sym::powerpc64le,
|
||||
Self::RiscV32 => sym::riscv32,
|
||||
Self::RiscV64 => sym::riscv64,
|
||||
Self::S390x => sym::s390x,
|
||||
|
|
@ -1940,8 +1938,8 @@ impl Arch {
|
|||
|
||||
AArch64 | AmdGpu | Arm | Arm64EC | Avr | CSky | Hexagon | LoongArch32 | LoongArch64
|
||||
| M68k | Mips | Mips32r6 | Mips64 | Mips64r6 | Msp430 | Nvptx64 | PowerPC
|
||||
| PowerPC64 | PowerPC64LE | RiscV32 | RiscV64 | S390x | Sparc | Sparc64 | Wasm32
|
||||
| Wasm64 | X86 | X86_64 | Xtensa => true,
|
||||
| PowerPC64 | RiscV32 | RiscV64 | S390x | Sparc | Sparc64 | Wasm32 | Wasm64 | X86
|
||||
| X86_64 | Xtensa => true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -3445,7 +3443,6 @@ impl Target {
|
|||
Arch::Arm64EC => (Architecture::Aarch64, Some(object::SubArchitecture::Arm64EC)),
|
||||
Arch::AmdGpu
|
||||
| Arch::Nvptx64
|
||||
| Arch::PowerPC64LE
|
||||
| Arch::SpirV
|
||||
| Arch::Wasm32
|
||||
| Arch::Wasm64
|
||||
|
|
|
|||
|
|
@ -986,7 +986,6 @@ impl Target {
|
|||
Arch::AmdGpu
|
||||
| Arch::Avr
|
||||
| Arch::Msp430
|
||||
| Arch::PowerPC64LE
|
||||
| Arch::SpirV
|
||||
| Arch::Xtensa
|
||||
| Arch::Other(_) => &[],
|
||||
|
|
@ -1015,12 +1014,7 @@ impl Target {
|
|||
Arch::CSky => CSKY_FEATURES_FOR_CORRECT_FIXED_LENGTH_VECTOR_ABI,
|
||||
// FIXME: for some tier3 targets, we are overly cautious and always give warnings
|
||||
// when passing args in vector registers.
|
||||
Arch::Avr
|
||||
| Arch::Msp430
|
||||
| Arch::PowerPC64LE
|
||||
| Arch::SpirV
|
||||
| Arch::Xtensa
|
||||
| Arch::Other(_) => &[],
|
||||
Arch::Avr | Arch::Msp430 | Arch::SpirV | Arch::Xtensa | Arch::Other(_) => &[],
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
|
|||
| Arch::Bpf
|
||||
| Arch::Msp430
|
||||
| Arch::Nvptx64
|
||||
| Arch::PowerPC64LE
|
||||
| Arch::SpirV
|
||||
| Arch::Other(_)) => bug!("unsupported target architecture for malloc: `{arch}`"),
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue