Skip to content

Commit

Permalink
zig update: remove aarch64_32 tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Organ1sm authored and Vexu committed Jul 31, 2024
1 parent 4f574a6 commit 6f27119
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/aro/Attribute.zig
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@ pub fn applyFunctionAttributes(p: *Parser, ty: Type, attr_buf_start: usize) !Typ
else => try p.errStr(.callconv_not_supported, tok, p.tok_ids[tok].lexeme().?),
},
.vectorcall => switch (p.comp.target.cpu.arch) {
.x86, .aarch64, .aarch64_be, .aarch64_32 => try p.attr_application_buf.append(p.gpa, attr),
.x86, .aarch64, .aarch64_be => try p.attr_application_buf.append(p.gpa, attr),
else => try p.errStr(.callconv_not_supported, tok, p.tok_ids[tok].lexeme().?),
},
},
Expand Down
2 changes: 1 addition & 1 deletion src/aro/Compilation.zig
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ fn generateBuiltinTypes(comp: *Compilation) !void {
.arm, .armeb, .thumb, .thumbeb => .{
.specifier = if (os != .windows and os != .netbsd and os != .openbsd) .uint else .int,
},
.aarch64, .aarch64_be, .aarch64_32 => .{
.aarch64, .aarch64_be => .{
.specifier = if (!os.isDarwin() and os != .netbsd) .uint else .int,
},
.x86_64, .x86 => .{ .specifier = if (os == .windows) .ushort else .int },
Expand Down
10 changes: 3 additions & 7 deletions src/aro/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ pub fn float80Type(target: std.Target) ?Type {
pub fn defaultFunctionAlignment(target: std.Target) u8 {
return switch (target.cpu.arch) {
.arm, .armeb => 4,
.aarch64, .aarch64_32, .aarch64_be => 4,
.aarch64, .aarch64_be => 4,
.sparc, .sparcel, .sparc64 => 4,
.riscv64 => 2,
else => 1,
Expand Down Expand Up @@ -327,7 +327,6 @@ pub const FPSemantics = enum {
pub fn halfPrecisionType(target: std.Target) ?FPSemantics {
switch (target.cpu.arch) {
.aarch64,
.aarch64_32,
.aarch64_be,
.arm,
.armeb,
Expand Down Expand Up @@ -483,7 +482,6 @@ pub fn get32BitArchVariant(target: std.Target) ?std.Target {
.kalimba,
.lanai,
.wasm32,
.aarch64_32,
.spirv,
.spirv32,
.loongarch32,
Expand Down Expand Up @@ -548,7 +546,6 @@ pub fn get64BitArchVariant(target: std.Target) ?std.Target {
.x86_64,
=> {}, // Already 64 bit

.aarch64_32 => copy.cpu.arch = .aarch64,
.arm => copy.cpu.arch = .aarch64,
.armeb => copy.cpu.arch = .aarch64_be,
.loongarch32 => copy.cpu.arch = .loongarch64,
Expand Down Expand Up @@ -581,9 +578,8 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
const llvm_arch = switch (target.cpu.arch) {
.arm => "arm",
.armeb => "armeb",
.aarch64 => "aarch64",
.aarch64 => if (target.abi == .ilp32) "aarch64_32" else "aarch64",
.aarch64_be => "aarch64_be",
.aarch64_32 => "aarch64_32",
.arc => "arc",
.avr => "avr",
.bpfel => "bpfel",
Expand Down Expand Up @@ -696,7 +692,7 @@ pub fn toLLVMTriple(target: std.Target, buf: []u8) []const u8 {
writer.writeByte('-') catch unreachable;

const llvm_abi = switch (target.abi) {
.none => "unknown",
.none, .ilp32 => "unknown",
.gnu => "gnu",
.gnuabin32 => "gnuabin32",
.gnuabi64 => "gnuabi64",
Expand Down

0 comments on commit 6f27119

Please sign in to comment.