go/src/cmd
Matthew Dempsky ea522bc546 [dev.typeparams] cmd/compile: add and use ir.RawOrigExpr
This CL adds ir.RawOrigExpr, which can be used to represent arbitrary
constant expressions without needing to build and carry around an
entire IR representation of the original expression. It also allows
distinguishing how the constant was originally written by the
user (e.g., "0xff" vs "255").

This CL then also updates irgen to make use of this functionality for
expressions that were constant folded by types2.

Change-Id: I41e04e228e715ae2735c357b75633a2d08ee7021
Reviewed-on: https://go-review.googlesource.com/c/go/+/323210
Trust: Matthew Dempsky <mdempsky@google.com>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
2021-05-27 22:13:46 +00:00
..
addr2line
api cmd/api: disallow silent API additions after api/go1.n.txt is created 2021-05-03 19:14:16 +00:00
asm cmd/internal/obj/arm64: disable AL and NV for some condition operation instructions 2021-05-14 07:53:46 +00:00
buildid
cgo internal/buildcfg: move build configuration out of cmd/internal/objabi 2021-04-16 19:20:53 +00:00
compile [dev.typeparams] cmd/compile: add and use ir.RawOrigExpr 2021-05-27 22:13:46 +00:00
cover cmd/cover: use golang.org/x/tools/cover directly 2021-03-25 20:57:58 +00:00
dist cmd/dist: display first class port status in json output 2021-05-21 18:55:18 +00:00
doc cmd/doc: properly display interface methods 2021-03-19 03:05:26 +00:00
fix all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
go cmd/go: add a -compat flag to 'go mod tidy' 2021-05-25 13:18:26 +00:00
gofmt cmd/gofmt: always format non-directory arguments again 2021-04-30 16:17:01 +00:00
internal [dev.typeparams] cmd/compile: add morestack arg spilling code on ARM64 2021-05-26 23:35:02 +00:00
link [dev.typeparams] cmd/link: mangle symbol ABI name on Plan 9 2021-05-20 19:04:33 +00:00
nm cmd/dist,runtime: support cgo on openbsd/mips64 2021-04-28 12:51:42 +00:00
objdump cmd/internal/objfile: emit better error for Go object of a different version 2021-04-30 16:53:35 +00:00
pack cmd/pack: use testing.T.TempDir in tests 2021-04-07 13:24:10 +00:00
pprof cmd/vendor: upgrade pprof to latest 2021-05-08 14:59:49 +00:00
test2json all: introduce and use internal/execabs 2021-01-21 19:10:18 +00:00
trace runtime: move next_gc and last_next_gc into gcControllerState 2021-04-14 14:03:30 +00:00
vendor cmd: go get golang.org/x/tools/analysis@49064d23 && go mod vendor 2021-05-20 20:37:02 +00:00
vet cmd/vet: bring in sigchanyzer to report unbuffered channels to signal.Notify 2021-03-08 23:13:52 +00:00
README.vendor
go.mod cmd: go get golang.org/x/tools/analysis@49064d23 && go mod vendor 2021-05-20 20:37:02 +00:00
go.sum cmd/go: add a -compat flag to 'go mod tidy' 2021-05-25 13:18:26 +00:00

README.vendor

See src/README.vendor for information on loading vendored packages
and updating the vendor directory.