Files
zig/src
Andrew Kelley 461382ae94 no-copy semantics for function call init var and literal
```zig
export fn entry() void {
    var x = foo();
}
const Foo = struct {
    x: i32,
};
fn foo() Foo {
    return Foo{
        .x = 1234,
    };
}
```

```llvm
define void @entry() #2 !dbg !35 {
Entry:
  %x = alloca %Foo, align 4
  call fastcc void @foo(%Foo* sret %x), !dbg !45
  call void @llvm.dbg.declare(metadata %Foo* %x, metadata !39, metadata !DIExpression()), !dbg !46
  ret void, !dbg !47
}
define internal fastcc void @foo(%Foo* nonnull sret) unnamed_addr #2 !dbg !48 {
Entry:
  %1 = bitcast %Foo* %0 to i8*, !dbg !52
  call void @llvm.memcpy.p0i8.p0i8.i64(i8* align 4 %1, i8* align 4 bitcast (%Foo* @0 to i8*), i64 4, i1 false), !dbg !52
  ret void, !dbg !52
}
```
2019-05-31 01:08:16 -04:00
..
2019-05-30 23:16:11 -04:00
2019-04-04 22:07:15 -04:00
2019-04-04 22:07:15 -04:00
2018-07-07 00:25:32 -04:00
2018-09-05 23:23:11 -04:00
2019-05-09 20:11:56 -04:00
2019-05-29 14:39:13 -04:00
2019-05-30 23:16:11 -04:00
2016-09-19 11:54:01 -04:00
2016-12-01 21:08:12 -05:00
2019-05-30 23:16:11 -04:00
2019-05-20 23:14:49 +02:00
2019-04-24 23:34:19 -04:00
2019-03-23 13:46:50 -04:00
2019-05-29 19:09:58 -04:00
2019-05-27 20:59:19 -04:00
2019-05-29 19:09:58 -04:00
2019-05-29 19:09:58 -04:00
2019-05-29 14:39:13 -04:00
2018-10-27 11:35:01 -04:00