Files
tinygo/compiler
Ayke van Laethem cf640290a3 compiler: add "target-cpu" and "target-features" attributes
This matches Clang, and with that, it adds support for inlining between
Go and C because LLVM only allows inlining if the "target-cpu" and
"target-features" string attributes match.

For example, take a look at the following code:

    // int add(int a, int b) {
    //   return a + b;
    // }
    import "C"

    func main() {
        println(C.add(3, 5))
    }

The 'add' function is not inlined into the main function before this
commit, but after it, it can be inlined and trivially be optimized to
`println(8)`.
2021-11-10 11:16:13 +01:00
..
2021-10-03 16:28:34 +02:00
2021-09-27 15:47:12 +02:00
2021-09-27 15:47:12 +02:00
2021-11-06 09:40:15 +01:00
2021-09-27 15:47:12 +02:00