
Also add unit tests. This is the first of several transformation (optimization/lowering) passes that I'd like to move to the new transform package. This separates the compiler from the optimizer. Also, it finally adds unit tests for the compiler, not just end-to-end compilation tests. This should improve robustness and should make it easier to change these transformation passes in the future. While the heap-to-stack transform is relatively simple, other passes are much more complex. Adding unit tests not only helps robustness over time, but also doubles as documentation as to what these transformation passes do exactly.
10 строки
296 Б
Modula-2
10 строки
296 Б
Modula-2
module github.com/tinygo-org/tinygo
|
|
|
|
go 1.11
|
|
|
|
require (
|
|
github.com/blakesmith/ar v0.0.0-20150311145944-8bd4349a67f2
|
|
github.com/marcinbor85/gohex v0.0.0-20180128172054-7a43cd876e46
|
|
golang.org/x/tools v0.0.0-20190227180812-8dcc6e70cdef
|
|
tinygo.org/x/go-llvm v0.0.0-20190818154551-95bc4ffe1add
|
|
)
|