tinygo/compiler/testdata
Ayke van Laethem f180339d6b compiler: add alloc attributes to runtime.alloc
This gives a small improvement now, and is needed to be able to use the
Heap2Stack transform that's available in the Attributor pass. This
Heap2Stack transform could replace our custom OptimizeAllocs pass.

Most of the changes are just IR that changed, the actual change is
relatively small.

To give an example of why this is useful, here is the code size before
this change:

    $ tinygo build -o test -size=short ./testdata/stdlib.go
       code    data     bss |   flash     ram
      95620    1812     968 |   97432    2780

    $ tinygo build -o test -size=short ./testdata/stdlib.go
       code    data     bss |   flash     ram
      95380    1812     968 |   97192    2780

That's a 0.25% reduction. Not a whole lot, but nice for such a small
patch.
2023-03-22 00:34:43 +01:00
..
basic.go
basic.ll
channel.go compiler: avoid zero-sized alloca in channel operations 2021-09-09 11:24:52 +02:00
channel.ll compiler: add alloc attributes to runtime.alloc 2023-03-22 00:34:43 +01:00
defer-cortex-m-qemu.ll
defer.go
float.go
float.ll
func.go compiler: add func tests 2021-04-12 12:07:42 +02:00
func.ll compiler: add alloc attributes to runtime.alloc 2023-03-22 00:34:43 +01:00
gc.go
gc.ll
generics.go
generics.ll
go1.20.go
go1.20.ll
goroutine-cortex-m-qemu-tasks.ll
goroutine-wasm-asyncify.ll
goroutine.go compiler: add support for the go keyword on interface methods 2021-10-31 14:17:25 +01:00
interface.go compiler: simplify interface lowering 2021-10-31 14:17:25 +01:00
interface.ll compiler: add alloc attributes to runtime.alloc 2023-03-22 00:34:43 +01:00
pointer.go compiler: remove unsafe.Pointer(uintptr(v) + idx) optimization 2023-03-03 16:55:13 +01:00
pointer.ll compiler: add alloc attributes to runtime.alloc 2023-03-22 00:34:43 +01:00
pragma.go all: format code according to Go 1.19 rules 2022-08-04 12:18:32 +02:00
pragma.ll
slice.go all: drop support for Go 1.16 and Go 1.17 2022-08-30 12:38:06 +02:00
slice.ll compiler: add alloc attributes to runtime.alloc 2023-03-22 00:34:43 +01:00
string.go compiler: fix indices into strings and arrays 2021-11-13 11:04:24 +01:00
string.ll
zeromap.go compiler: zero struct padding during map operations 2023-02-25 22:40:08 +01:00
zeromap.ll compiler: add alloc attributes to runtime.alloc 2023-03-22 00:34:43 +01:00