Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

CmpXchg

Public Struct
std.zig.llvm.ir.ModuleBlock.FunctionBlock.CmpXchg
pub const CmpXchg = struct

Fields

ptr: u32
cmp: u32
new: u32
is_volatile: bool
success_ordering: Builder.AtomicOrdering
sync_scope: Builder.SyncScope
failure_ordering: Builder.AtomicOrdering
is_weak: bool
alignment: @Int(.unsigned, @bitSizeOf(Builder.Alignment))

Values

File

zig/llvm/ir.zig:1342
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
        pub const CmpXchg = struct {
            pub const ops = [_]AbbrevOp{
                .{ .literal = @backingInt(ModuleBlock.FunctionBlock.Code.INST_CMPXCHG) },
                ValueAbbrev,
                ValueAbbrev,
                ValueAbbrev,
                .{ .fixed = 1 },
                .{ .fixed = @bitSizeOf(Builder.AtomicOrdering) },
                .{ .fixed = @bitSizeOf(Builder.SyncScope) },
                .{ .fixed = @bitSizeOf(Builder.AtomicOrdering) },
                .{ .fixed = 1 },
                .{ .fixed = @bitSizeOf(Builder.Alignment) },
            };
            ptr: u32,
            cmp: u32,
            new: u32,
            is_volatile: bool,
            success_ordering: Builder.AtomicOrdering,
            sync_scope: Builder.SyncScope,
            failure_ordering: Builder.AtomicOrdering,
            is_weak: bool,
            alignment: @Int(.unsigned, @bitSizeOf(Builder.Alignment)),
        }