summaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/modfetch/codehost/codehost.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2020-12-07 09:14:44 -0500
committerRuss Cox <rsc@golang.org>2020-12-09 17:05:32 +0000
commit837b35cc55c258bb57ac9fa337ed0783a6fcc617 (patch)
tree1e7f1f47df6d52e1fc92d6214602a037d115ad3e /src/cmd/go/internal/modfetch/codehost/codehost.go
parent0c4944066411c5570ad9e7b66ae414f409d5d826 (diff)
downloadgo-git-837b35cc55c258bb57ac9fa337ed0783a6fcc617.tar.gz
[dev.regabi] cmd/compile: adjust IR representations
Based on actually using the IR when prototyping adding type assertions, a few changes to improve it: - Merge DeferStmt and GoStmt, since they are variants of one thing. - Introduce LogicalExpr for && and ||, since they (alone) need an init list before Y. - Add an explicit op to various constructors to make them easier to use. - Add separate StructKeyExpr - it stores Value in a different abstract location (Left) than KeyExpr (Right). - Export all fields for use by rewrites (and later reflection). Passes buildall w/ toolstash -cmp. Change-Id: Iefbff2386d2bb9ef511ce53b7f92ff6c709dc991 Reviewed-on: https://go-review.googlesource.com/c/go/+/275883 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/go/internal/modfetch/codehost/codehost.go')
0 files changed, 0 insertions, 0 deletions