tinygo/compiler
Ayke van Laethem 1d7543e2bf all: switch to LLVM 16
This commit adds support for LLVM 16 and switches to it by default. That
means three LLVM versions are supported at the same time: LLVM 14, 15,
and 16.

This commit includes work by QuLogic:

  * Part of this work was based on a PR by QuLogic:
    https://github.com/tinygo-org/tinygo/pull/3649
    But I also had parts of this already implemented in an old branch I
    already made for LLVM 16.
  * QuLogic also provided a CGo fix here, which is also incorporated in
    this commit:
    https://github.com/tinygo-org/tinygo/pull/3869

The difference with the original PR by QuLogic is that this commit is
more complete:
  * It switches to LLVM 16 by default.
  * It updates some things to also make it work with a self-built LLVM.
  * It fixes the CGo bug in a slightly different way, and also fixes
    another one not included in the original PR.
  * It does not keep compiler tests passing on older LLVM versions. I
    have found this to be quite burdensome and therefore don't generally
    do this - the smoke tests should hopefully catch most regressions.
2023-09-18 21:58:02 +02:00
..
ircheck all: remove pointer ElementType calls 2022-10-19 22:23:19 +02:00
llvmutil compiler: move some llvmutil code into the compiler 2023-01-18 08:24:42 +01:00
testdata all: switch to LLVM 16 2023-09-18 21:58:02 +02:00
alias.go all: add type parameter to CreateCall 2022-10-19 22:23:19 +02:00
asserts.go compiler: add support for new unsafe slice/string functions 2023-01-17 08:38:54 +01:00
atomic.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
calls.go compiler: improve panic message when a runtime call is unavailable 2023-08-04 11:59:11 +02:00
channel.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
compiler.go compiler: Handle nil array and struct constants 2023-09-10 23:14:58 +02:00
compiler_test.go compiler: add min and max builtin support 2023-08-04 11:59:11 +02:00
defer.go feat: fix typos 2023-03-24 09:22:38 -07:00
errors.go all: fix staticcheck warnings 2021-09-27 15:47:12 +02:00
func.go compiler: correctly generate code for local named types 2023-03-21 22:22:03 +01:00
gc.go wasm: avoid miscompile with ThinLTO 2023-01-18 08:24:42 +01:00
goroutine.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
inlineasm.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
interface.go compiler,reflect: add support for [...]T -> []T in reflect 2023-09-10 13:05:18 +02:00
interrupt.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
intrinsics.go compiler: implement clear builtin for slices 2023-08-04 11:59:11 +02:00
llvm.go compiler: implement most math/bits functions 2023-03-29 20:55:09 +02:00
map.go compiler: implement clear builtin for maps 2023-08-04 11:59:11 +02:00
sizes.go compiler: fix unsafe.Sizeof for chan and map values 2022-09-01 03:53:27 +02:00
symbol.go all: switch to LLVM 16 2023-09-18 21:58:02 +02:00
syscall.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00
volatile.go compiler; add position information to createConstant 2023-03-05 17:13:16 -08:00