Added values to AtomicRmw.Operation enum fields

This commit is contained in:
antlilja 2024-01-20 00:22:57 +01:00
parent 6df8302be6
commit ff76ba64d6

View File

@ -4691,21 +4691,21 @@ pub const Function = struct {
val: Value,
pub const Operation = enum(u5) {
xchg,
add,
sub,
@"and",
nand,
@"or",
xor,
max,
min,
umax,
umin,
fadd,
fsub,
fmax,
fmin,
xchg = 0,
add = 1,
sub = 2,
@"and" = 3,
nand = 4,
@"or" = 5,
xor = 6,
max = 7,
min = 8,
umax = 9,
umin = 10,
fadd = 11,
fsub = 12,
fmax = 13,
fmin = 14,
none = std.math.maxInt(u5),
fn toLlvm(self: Operation) llvm.AtomicRMWBinOp {