mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
compiler: delete powerpc backend stub
nobody is currently working on this
This commit is contained in:
parent
edf785db0f
commit
80a9b8f326
3 changed files with 3 additions and 64 deletions
|
|
@ -559,7 +559,6 @@ set(ZIG_STAGE2_SOURCES
|
||||||
src/arch/arm/Mir.zig
|
src/arch/arm/Mir.zig
|
||||||
src/arch/arm/abi.zig
|
src/arch/arm/abi.zig
|
||||||
src/arch/arm/bits.zig
|
src/arch/arm/bits.zig
|
||||||
src/arch/powerpc/CodeGen.zig
|
|
||||||
src/arch/riscv64/abi.zig
|
src/arch/riscv64/abi.zig
|
||||||
src/arch/riscv64/bits.zig
|
src/arch/riscv64/bits.zig
|
||||||
src/arch/riscv64/CodeGen.zig
|
src/arch/riscv64/CodeGen.zig
|
||||||
|
|
|
||||||
|
|
@ -1,51 +0,0 @@
|
||||||
const builtin = @import("builtin");
|
|
||||||
const std = @import("std");
|
|
||||||
|
|
||||||
const Air = @import("../../Air.zig");
|
|
||||||
const codegen = @import("../../codegen.zig");
|
|
||||||
const InternPool = @import("../../InternPool.zig");
|
|
||||||
const link = @import("../../link.zig");
|
|
||||||
const Zcu = @import("../../Zcu.zig");
|
|
||||||
|
|
||||||
const assert = std.debug.assert;
|
|
||||||
const log = std.log.scoped(.codegen);
|
|
||||||
|
|
||||||
pub fn legalizeFeatures(_: *const std.Target) ?*const Air.Legalize.Features {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn generate(
|
|
||||||
bin_file: *link.File,
|
|
||||||
pt: Zcu.PerThread,
|
|
||||||
src_loc: Zcu.LazySrcLoc,
|
|
||||||
func_index: InternPool.Index,
|
|
||||||
air: *const Air,
|
|
||||||
liveness: *const Air.Liveness,
|
|
||||||
) codegen.CodeGenError!noreturn {
|
|
||||||
_ = bin_file;
|
|
||||||
_ = pt;
|
|
||||||
_ = src_loc;
|
|
||||||
_ = func_index;
|
|
||||||
_ = air;
|
|
||||||
_ = liveness;
|
|
||||||
|
|
||||||
unreachable;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn generateLazy(
|
|
||||||
bin_file: *link.File,
|
|
||||||
pt: Zcu.PerThread,
|
|
||||||
src_loc: Zcu.LazySrcLoc,
|
|
||||||
lazy_sym: link.File.LazySymbol,
|
|
||||||
code: *std.ArrayListUnmanaged(u8),
|
|
||||||
debug_output: link.File.DebugInfoOutput,
|
|
||||||
) codegen.CodeGenError!void {
|
|
||||||
_ = bin_file;
|
|
||||||
_ = pt;
|
|
||||||
_ = src_loc;
|
|
||||||
_ = lazy_sym;
|
|
||||||
_ = code;
|
|
||||||
_ = debug_output;
|
|
||||||
|
|
||||||
unreachable;
|
|
||||||
}
|
|
||||||
|
|
@ -34,7 +34,7 @@ fn devFeatureForBackend(backend: std.builtin.CompilerBackend) dev.Feature {
|
||||||
.stage2_arm => .arm_backend,
|
.stage2_arm => .arm_backend,
|
||||||
.stage2_c => .c_backend,
|
.stage2_c => .c_backend,
|
||||||
.stage2_llvm => .llvm_backend,
|
.stage2_llvm => .llvm_backend,
|
||||||
.stage2_powerpc => .powerpc_backend,
|
.stage2_powerpc => unreachable,
|
||||||
.stage2_riscv64 => .riscv64_backend,
|
.stage2_riscv64 => .riscv64_backend,
|
||||||
.stage2_sparc64 => .sparc64_backend,
|
.stage2_sparc64 => .sparc64_backend,
|
||||||
.stage2_spirv => .spirv_backend,
|
.stage2_spirv => .spirv_backend,
|
||||||
|
|
@ -52,7 +52,7 @@ fn importBackend(comptime backend: std.builtin.CompilerBackend) type {
|
||||||
.stage2_arm => @import("arch/arm/CodeGen.zig"),
|
.stage2_arm => @import("arch/arm/CodeGen.zig"),
|
||||||
.stage2_c => @import("codegen/c.zig"),
|
.stage2_c => @import("codegen/c.zig"),
|
||||||
.stage2_llvm => @import("codegen/llvm.zig"),
|
.stage2_llvm => @import("codegen/llvm.zig"),
|
||||||
.stage2_powerpc => @import("arch/powerpc/CodeGen.zig"),
|
.stage2_powerpc => unreachable,
|
||||||
.stage2_riscv64 => @import("arch/riscv64/CodeGen.zig"),
|
.stage2_riscv64 => @import("arch/riscv64/CodeGen.zig"),
|
||||||
.stage2_sparc64 => @import("arch/sparc64/CodeGen.zig"),
|
.stage2_sparc64 => @import("arch/sparc64/CodeGen.zig"),
|
||||||
.stage2_spirv => @import("codegen/spirv.zig"),
|
.stage2_spirv => @import("codegen/spirv.zig"),
|
||||||
|
|
@ -77,7 +77,6 @@ pub fn legalizeFeatures(pt: Zcu.PerThread, nav_index: InternPool.Nav.Index) ?*co
|
||||||
.stage2_riscv64,
|
.stage2_riscv64,
|
||||||
.stage2_sparc64,
|
.stage2_sparc64,
|
||||||
.stage2_spirv,
|
.stage2_spirv,
|
||||||
.stage2_powerpc,
|
|
||||||
=> |backend| {
|
=> |backend| {
|
||||||
dev.check(devFeatureForBackend(backend));
|
dev.check(devFeatureForBackend(backend));
|
||||||
return importBackend(backend).legalizeFeatures(target);
|
return importBackend(backend).legalizeFeatures(target);
|
||||||
|
|
@ -91,7 +90,6 @@ pub fn legalizeFeatures(pt: Zcu.PerThread, nav_index: InternPool.Nav.Index) ?*co
|
||||||
pub const AnyMir = union {
|
pub const AnyMir = union {
|
||||||
aarch64: @import("arch/aarch64/Mir.zig"),
|
aarch64: @import("arch/aarch64/Mir.zig"),
|
||||||
arm: @import("arch/arm/Mir.zig"),
|
arm: @import("arch/arm/Mir.zig"),
|
||||||
powerpc: noreturn, //@import("arch/powerpc/Mir.zig"),
|
|
||||||
riscv64: @import("arch/riscv64/Mir.zig"),
|
riscv64: @import("arch/riscv64/Mir.zig"),
|
||||||
sparc64: @import("arch/sparc64/Mir.zig"),
|
sparc64: @import("arch/sparc64/Mir.zig"),
|
||||||
x86_64: @import("arch/x86_64/Mir.zig"),
|
x86_64: @import("arch/x86_64/Mir.zig"),
|
||||||
|
|
@ -102,7 +100,6 @@ pub const AnyMir = union {
|
||||||
return switch (backend) {
|
return switch (backend) {
|
||||||
.stage2_aarch64 => "aarch64",
|
.stage2_aarch64 => "aarch64",
|
||||||
.stage2_arm => "arm",
|
.stage2_arm => "arm",
|
||||||
.stage2_powerpc => "powerpc",
|
|
||||||
.stage2_riscv64 => "riscv64",
|
.stage2_riscv64 => "riscv64",
|
||||||
.stage2_sparc64 => "sparc64",
|
.stage2_sparc64 => "sparc64",
|
||||||
.stage2_x86_64 => "x86_64",
|
.stage2_x86_64 => "x86_64",
|
||||||
|
|
@ -119,7 +116,6 @@ pub const AnyMir = union {
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
inline .stage2_aarch64,
|
inline .stage2_aarch64,
|
||||||
.stage2_arm,
|
.stage2_arm,
|
||||||
.stage2_powerpc,
|
|
||||||
.stage2_riscv64,
|
.stage2_riscv64,
|
||||||
.stage2_sparc64,
|
.stage2_sparc64,
|
||||||
.stage2_x86_64,
|
.stage2_x86_64,
|
||||||
|
|
@ -150,7 +146,6 @@ pub fn generateFunction(
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
inline .stage2_aarch64,
|
inline .stage2_aarch64,
|
||||||
.stage2_arm,
|
.stage2_arm,
|
||||||
.stage2_powerpc,
|
|
||||||
.stage2_riscv64,
|
.stage2_riscv64,
|
||||||
.stage2_sparc64,
|
.stage2_sparc64,
|
||||||
.stage2_x86_64,
|
.stage2_x86_64,
|
||||||
|
|
@ -188,7 +183,6 @@ pub fn emitFunction(
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
inline .stage2_aarch64,
|
inline .stage2_aarch64,
|
||||||
.stage2_arm,
|
.stage2_arm,
|
||||||
.stage2_powerpc,
|
|
||||||
.stage2_riscv64,
|
.stage2_riscv64,
|
||||||
.stage2_sparc64,
|
.stage2_sparc64,
|
||||||
.stage2_x86_64,
|
.stage2_x86_64,
|
||||||
|
|
@ -215,10 +209,7 @@ pub fn generateLazyFunction(
|
||||||
zcu.getTarget();
|
zcu.getTarget();
|
||||||
switch (target_util.zigBackend(target, zcu.comp.config.use_llvm)) {
|
switch (target_util.zigBackend(target, zcu.comp.config.use_llvm)) {
|
||||||
else => unreachable,
|
else => unreachable,
|
||||||
inline .stage2_powerpc,
|
inline .stage2_riscv64, .stage2_x86_64 => |backend| {
|
||||||
.stage2_riscv64,
|
|
||||||
.stage2_x86_64,
|
|
||||||
=> |backend| {
|
|
||||||
dev.check(devFeatureForBackend(backend));
|
dev.check(devFeatureForBackend(backend));
|
||||||
return importBackend(backend).generateLazy(lf, pt, src_loc, lazy_sym, code, debug_output);
|
return importBackend(backend).generateLazy(lf, pt, src_loc, lazy_sym, code, debug_output);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue