]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify algorithm kinds
authorKeith Randall <khr@golang.org>
Thu, 14 Mar 2024 17:25:18 +0000 (10:25 -0700)
committerKeith Randall <khr@golang.org>
Mon, 18 Mar 2024 15:28:05 +0000 (15:28 +0000)
commitd25579293374bdc2d10864f7fa0ac9f89bb87fd9
tree7a7fe9eeb01afb42799d484229109939c2d9b0f1
parent0a6f05e30f58023bf45f747a79c20751db2bcfe7
cmd/compile: simplify algorithm kinds

Add a ANOALG kind which is "ANOEQ, plus has a part that is marked Noalg".
That way, AlgType can return just a kind.
The field we used to return was used only to get this bit of information.

Change-Id: Iaa409742825cc1f19ab414b1f5b74c1f112ed5f3
Reviewed-on: https://go-review.googlesource.com/c/go/+/572075
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/compare/compare.go
src/cmd/compile/internal/reflectdata/alg.go
src/cmd/compile/internal/types/alg.go
src/cmd/compile/internal/types/algkind_string.go