| ... | @@ -1982,6 +1982,10 @@ pub const Alignment = enum(u6) { | ... | @@ -1982,6 +1982,10 @@ pub const Alignment = enum(u6) { |
| 1982 | return if (self == .default) null else @as(u64, 1) << @intFromEnum(self); | 1982 | return if (self == .default) null else @as(u64, 1) << @intFromEnum(self); |
| 1983 | } | 1983 | } |
| 1984 | | 1984 | |
| | 1985 | pub fn toLlvm(self: Alignment) u6 { |
| | 1986 | return if (self == .default) 0 else (@intFromEnum(self) + 1); |
| | 1987 | } |
| | 1988 | |
| 1985 | pub fn format( | 1989 | pub fn format( |
| 1986 | self: Alignment, | 1990 | self: Alignment, |
| 1987 | comptime prefix: []const u8, | 1991 | comptime prefix: []const u8, |