structstd.zig.llvm.Builder.Function.Instruction.AtomicRmw[src]

Fields

Source Code

Source code
pub const AtomicRmw = struct {
    info: MemoryAccessInfo,
    ptr: Value,
    val: Value,

    pub const Operation = enum(u5) {
        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),
    };
}