]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: function "property" defs for inl heuristics
authorThan McIntosh <thanm@google.com>
Thu, 29 Jun 2023 17:43:50 +0000 (13:43 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 10 Aug 2023 18:52:53 +0000 (18:52 +0000)
commit03d457a2214366f209f5855afc0a93e6c36c6e1f
tree4c84630e20f8577545a7e7ba0205ef1b1e4d241d
parent7c2b69080a0b9e35174cc9c93497b6e7176f8275
cmd/compile: function "property" defs for inl heuristics

Add definitions for a set of Go function "properties" intended to be
useful for driving inlining decisions. This CL just defines a set of
flags and a container to hold them; a subsequent CL will add code to
compute the properties for a function given its IR/AST representation.

Updates #61502.

Change-Id: Ifa26c1ad055c02ca0ce9cf37078cee7b3385e18a
Reviewed-on: https://go-review.googlesource.com/c/go/+/511556
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/compile/internal/inline/inlheur/funcprop_string.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/funcpropbits_string.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/function_properties.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/parampropbits_string.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/resultpropbits_string.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/serialize.go [new file with mode: 0644]
src/cmd/compile/internal/inline/inlheur/tserial_test.go [new file with mode: 0644]