diff options
author | Cherry Mui <cherryyz@google.com> | 2021-08-03 19:35:55 -0400 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-08-03 18:32:07 -0700 |
commit | 22e40cc7feb8abda85762e4f07719836d5c57f1a (patch) | |
tree | 006460b18638cda9e6daada502ef6f79ee7820e3 /gcc/doc | |
parent | fa1407c7613214cb4a45734fdb14c4756a83808a (diff) | |
download | gcc-22e40cc7feb8abda85762e4f07719836d5c57f1a.zip gcc-22e40cc7feb8abda85762e4f07719836d5c57f1a.tar.gz gcc-22e40cc7feb8abda85762e4f07719836d5c57f1a.tar.bz2 |
compiler: support new language constructs in escape analysis
Previous CLs add new language constructs in Go 1.17, specifically,
unsafe.Add, unsafe.Slice, and conversion from a slice to a pointer
to an array. This CL handles them in the escape analysis.
At the point of the escape analysis, unsafe.Add and unsafe.Slice
are still builtin calls, so just handle them in data flow.
Conversion from a slice to a pointer to an array has already been
lowered to a combination of compound expression, conditional
expression and slice info expressions, so handle them in the
escape analysis.
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/339671
Diffstat (limited to 'gcc/doc')
0 files changed, 0 insertions, 0 deletions