tinygo/compiler/testdata
Ayke van Laethem 409688e67a compiler: fix equally named structs in different scopes
For example, in this code:

    type kv struct {
           v float32
    }

    func foo(a *kv) {
           type kv struct {
                   v byte
           }
    }

Both 'kv' types would be given the same LLVM type, even though they are
different types! This is fixed by only creating a LLVM type once per Go
type (types.Type).

As an added bonus, this change gives a performance improvement of about
0.4%. Not that much, but certainly not nothing for such a small change.
2021-09-08 10:02:57 +02:00
..
basic.go compiler: fix equally named structs in different scopes 2021-09-08 10:02:57 +02:00
basic.ll compiler: fix equally named structs in different scopes 2021-09-08 10:02:57 +02:00
float.go compiler: test float to int conversions and fix upper-bound calculation 2021-01-19 14:02:32 +01:00
float.ll compiler: use wasm for tests 2021-05-09 17:40:13 +02:00
func.go compiler: add func tests 2021-04-12 12:07:42 +02:00
func.ll compiler: use wasm for tests 2021-05-09 17:40:13 +02:00
go1.17.go compiler: add support for new language features of Go 1.17 2021-08-30 09:18:58 +02:00
go1.17.ll compiler: add support for new language features of Go 1.17 2021-08-30 09:18:58 +02:00
goroutine-cortex-m-qemu.ll scheduler: task.Data made 64bit to avoid overflow 2021-06-01 15:00:07 +02:00
goroutine-wasm.ll scheduler: task.Data made 64bit to avoid overflow 2021-06-01 15:00:07 +02:00
goroutine.go compiler: add support for running a builtin in a goroutine 2021-05-26 20:21:08 +02:00
interface.go compiler: add interface IR test 2021-03-28 14:00:37 +02:00
interface.ll compiler: refactor method names 2021-06-17 12:17:32 +02:00
intrinsics-cortex-m-qemu.ll compiler: move LLVM math builtin support into the compiler 2021-08-10 20:08:27 +02:00
intrinsics-wasm.ll compiler: move LLVM math builtin support into the compiler 2021-08-10 20:08:27 +02:00
intrinsics.go compiler: move LLVM math builtin support into the compiler 2021-08-10 20:08:27 +02:00
pointer.go compiler: refactor and add tests 2021-01-15 14:43:43 +01:00
pointer.ll compiler: use wasm for tests 2021-05-09 17:40:13 +02:00
pragma.go compiler: add function and global section pragmas 2021-06-24 15:00:30 +02:00
pragma.ll compiler: add function and global section pragmas 2021-06-24 15:00:30 +02:00
slice.go compiler: add *ssa.MakeSlice bounds tests 2021-08-17 08:16:27 +02:00
slice.ll compiler: fix max possible slice 2021-08-17 08:16:27 +02:00
string.go compiler: optimize string literals and globals 2021-04-08 11:40:59 +02:00
string.ll compiler: use wasm for tests 2021-05-09 17:40:13 +02:00