Zig 0.17.0-dev (Split by item) 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.
std › zig › llvm › Builder › WipFunction › callMemMove Public Function callMemMove Doc Source 7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355 pub fn callMemMove (
self : *WipFunction ,
dst : Value ,
dst_align : Alignment ,
src : Value ,
src_align : Alignment ,
len : Value ,
kind : MemoryAccessKind ,
) Allocator .Error !Instruction .Index {
var dst_attrs = [_ ]Attribute .Index {try self .builder .attr (.{ .@"align" = .wrap (dst_align ) })};
var src_attrs = [_ ]Attribute .Index {try self .builder .attr (.{ .@"align" = .wrap (src_align ) })};
const value = try self .callIntrinsic (
.normal ,
try self .builder .fnAttrs (&.{
.none ,
.none ,
try self .builder .attrs (&dst_attrs ),
try self .builder .attrs (&src_attrs ),
}),
.memmove ,
&.{ dst .typeOfWip (self ), src .typeOfWip (self ), len .typeOfWip (self ) },
&.{ dst , src , len , switch (kind ) {
.normal => Value .false ,
.@"volatile" => Value .true ,
} },
undefined ,
);
return value .unwrap ().instruction ;
}