tinygo/compiler
Ayke van Laethem fab38a0749 compiler: use Clang data layout for complex numbers
Match data layout of complex numbers to that of Clang, for better
interoperability. This makes alignment of complex numbes the same as the
individual elements (real and imaginary), as is required by the C spec
and implemented in Clang, but unlike the gc compler. The Go language
specification is silent on this matter.

> Each complex type has the same object representation and alignment
> requirements as an array of two elements of the corresponding real
> type (float for float complex, double for double complex, long double
> for long double complex). The first element of the array holds the
> real part, and the second element of the array holds the imaginary
> component.

Source: https://en.cppreference.com/w/c/language/arithmetic_types
2019-02-18 17:17:56 +01:00
..
calls.go all: go fmt 2019-01-31 16:22:05 +01:00
channel.go all: go fmt 2019-01-31 16:22:05 +01:00
compiler.go compiler: use Clang data layout for complex numbers 2019-02-18 17:17:56 +01:00
defer.go all: update import paths to github.com/tinygo-org/tinygo 2019-01-31 17:43:19 +01:00
errors.go compiler: return error messages with source location 2018-12-01 17:41:15 +01:00
goroutine-lowering.go all: rename go-llvm to new import path 2019-01-27 19:26:16 +01:00
interface-lowering.go reflect: add support for non-named basic types 2019-02-05 17:11:09 +01:00
interface.go compiler: use Clang data layout for complex numbers 2019-02-18 17:17:56 +01:00
llvm.go all: rename go-llvm to new import path 2019-01-27 19:26:16 +01:00
map.go compiler: support for byte arrays as keys in maps 2019-01-31 16:35:22 +01:00
optimizer.go all: rename go-llvm to new import path 2019-01-27 19:26:16 +01:00
reflect.go reflect: add limited support for all type kinds 2019-02-05 17:11:09 +01:00
sizes.go compiler: refactor compiler into separate package 2018-09-22 20:32:28 +02:00
syscall.go compiler: add syscalls for 64-bit arm 2019-02-07 07:00:37 +01:00