compiler: support inlining functions that use index expressions
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 10 Jun 2019 21:34:12 +0000 (21:34 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 10 Jun 2019 21:34:12 +0000 (21:34 +0000)
commite898243c23c82247ec01b32f551402ca52f32927
treeb0d9c35dc562318a0568ad5a47888711864bc4c1
parent35c19de69645b18eeef7dbecfcd98b19f9948c84
compiler: support inlining functions that use index expressions

    Also move the determine_types pass on an inlined function body to one
    place, rather than doing it ad hoc as needed.

    This adds 79 new inlinable functions in the standard library, such as
    bytes.HasPrefix and bytes.LastIndexByte.

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/181261

From-SVN: r272133
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/expressions.h
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/import.cc
gcc/go/gofrontend/statements.cc