tinygo/cgo
Ayke van Laethem e2f532709f builder, compiler: compile and cache packages in parallel
This commit switches from the previous behavior of compiling the whole
program at once, to compiling every package in parallel and linking the
LLVM bitcode files together for further whole-program optimization.
This is a small performance win, but it has several advantages in the
future:

  - There are many more things that can be done per package in parallel,
    avoiding the bottleneck at the end of the compiler phase. This
    should speed up the compiler futher.
  - This change is a necessary step towards a non-LTO build mode for
    fast incremental builds that only rebuild the changed package, when
    compiler speed is more important than binary size.
  - This change refactors the compiler in such a way that it will be
    easier to inspect the IR for one package only. Inspecting this IR
    will be very helpful for compiler developers.
2021-03-21 11:51:35 +01:00
..
testdata Add support for Go 1.16. 2021-02-19 23:46:55 +01:00
cgo.go builder, compiler: compile and cache packages in parallel 2021-03-21 11:51:35 +01:00
cgo_test.go builder, compiler: compile and cache packages in parallel 2021-03-21 11:51:35 +01:00
const.go cgo: fix a bug in number tokenization 2020-01-03 23:44:58 +01:00
const_test.go cgo: fix a bug in number tokenization 2020-01-03 23:44:58 +01:00
libclang.go builder, compiler: compile and cache packages in parallel 2021-03-21 11:51:35 +01:00
libclang_config.go all: remove support for LLVM 9 2021-03-04 15:46:05 +01:00
libclang_config_llvm10.go main: use LLVM 11 by default when linking LLVM dynamically 2021-01-19 08:55:57 +01:00
libclang_stubs.c main: switch to LLVM 10 2020-04-09 20:23:51 +02:00
security.go cgo: implement #cgo CFLAGS 2019-11-25 09:32:03 +01:00
security_test.go cgo: implement #cgo CFLAGS 2019-11-25 09:32:03 +01:00
sync.go cgo: refactor; support multiple cgo files in a single package 2019-05-12 10:49:15 +02:00