]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: add ir.BasicLit to represent literals
authorMatthew Dempsky <mdempsky@google.com>
Fri, 18 Dec 2020 04:17:04 +0000 (20:17 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 22 Dec 2020 17:04:46 +0000 (17:04 +0000)
commitc8610e4700bee51898197987de5335b8527079e8
tree957514feea6135c466a9e83f967cbbbb204e6cf9
parent3512cde10ac5e466527d69313b8250b2ea0146b1
[dev.regabi] cmd/compile: add ir.BasicLit to represent literals

This CL changes so that all literals are represented with a new,
smaller ir.BasicLit type, so that ir.Name is only used to represent
declared constants.

Passes buildall w/ toolstash -cmp.

Change-Id: I4702b8e3fa945617bd05881d7a2be1205f229633
Reviewed-on: https://go-review.googlesource.com/c/go/+/279153
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/universe.go
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/name.go
src/cmd/compile/internal/ir/node_gen.go
src/cmd/compile/internal/ir/val.go