go/src/cmd/compile/internal/gc
Keith Randall db16de9203 runtime: remove kindNoPointers
We already have the ptrdata field in a type, which encodes exactly
the same information that kindNoPointers does.

My problem with kindNoPointers is that it often leads to
double-negative code like:

   t.kind & kindNoPointers != 0

Much clearer is:

   t.ptrdata == 0

Update #27167

Change-Id: I92307d7f018a6bbe3daca4a4abb4225e359349b1
Reviewed-on: https://go-review.googlesource.com/c/go/+/169157
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-03-25 20:46:35 +00:00
..
builtin cmd/compile,runtime: provide index information on bounds check failure 2019-03-18 17:33:38 +00:00
testdata src, misc: apply gofmt 2019-02-19 20:38:28 +00:00
alg.go cmd/compile: bulk rename 2018-11-19 00:02:53 +00:00
align.go cmd/compile: better documentation around checkwidth 2018-10-31 04:30:10 +00:00
bexport.go cmd/compile: merge TPTR32 and TPTR64 as TPTR 2018-10-04 04:08:08 +00:00
bimport.go cmd/compile/internal/gc: remove binary package export format 2018-10-03 19:24:17 +00:00
bitset.go cmd/compile: inline calls to local closures 2017-10-11 22:32:36 +00:00
bootstrap.go cmd/compile: add mutex profiling support 2017-04-05 22:10:54 +00:00
builtin.go cmd/compile,runtime: provide index information on bounds check failure 2019-03-18 17:33:38 +00:00
builtin_test.go all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
bv.go cmd/compile/internal/gc: various minor cleanups 2018-08-20 13:27:53 +00:00
class_string.go cmd: re-generate all stringer files 2018-03-10 21:20:50 +00:00
closure.go cmd/compile: inline checknil 2019-02-26 19:28:58 +00:00
const.go cmd/compile: cleanup OREAL/OIMAG constant folding 2019-03-13 23:31:04 +00:00
constFold_test.go cmd/compile: use std "DO NOT EDIT" comment for generated files 2017-03-31 18:50:40 +00:00
dcl.go cmd/compile: bulk rename 2018-11-19 00:02:53 +00:00
dump.go cmd/compile/internal/gc: add alternative node dumper for debugging 2018-10-01 21:53:00 +00:00
dwinl.go cmd/compile: use existing instructions instead of nops for inline marks 2019-03-25 16:49:29 +00:00
esc.go cmd/compile: move Strongly Connected Components code into new file 2019-03-14 21:23:37 +00:00
export.go cmd/compile: do not export float or complex constants with -asmhdr 2019-02-11 23:25:55 +00:00
fixedbugs_test.go cmd/compile: move Issue 16214 test, delete asm_test file 2018-04-16 11:51:56 +00:00
float_test.go cmd/compile: skip float32 constant folding test on 387 builder 2018-09-14 12:39:54 +00:00
fmt.go cmd/compile: rewrite f(g()) for multi-value g() during typecheck 2019-03-14 21:00:20 +00:00
gen.go cmd/compile, cmd/link: separate stable and internal ABIs 2018-11-12 20:46:55 +00:00
global_test.go cmd/compile: use innermost line number for -S 2018-12-11 20:24:45 +00:00
go.go cmd/compile: port callnew to ssa conversion 2019-03-20 19:38:50 +00:00
gsubr.go cmd/compile: don't bother compiling functions named "_" 2019-02-26 20:56:24 +00:00
iexport.go cmd/compile: rewrite f(g()) for multi-value g() during typecheck 2019-03-14 21:00:20 +00:00
iface_test.go cmd/compile: inline convT2{I,E} when result doesn't escape 2016-09-19 02:37:08 +00:00
iimport.go cmd/compile: rewrite f(g()) for multi-value g() during typecheck 2019-03-14 21:00:20 +00:00
init.go cmd/compile: rename init function from init.ializers back to init 2019-03-18 20:41:12 +00:00
inl.go cmd/compile: rewrite f(g()) for multi-value g() during typecheck 2019-03-14 21:00:20 +00:00
inl_test.go encoding/base64: speed up the decoder 2019-03-13 10:39:58 +00:00
lang_test.go cmd/compile: correct check for valid -lang version 2018-11-13 00:08:32 +00:00
lex.go cmd/compile, misc/cgo: fix fortran tests on aix/ppc64 2019-03-22 13:52:59 +00:00
lex_test.go cmd/compile/internal/gc: update cgo_import_dynamic for AIX 2018-11-06 13:52:48 +00:00
logic_test.go cmd/compile: add tests for logical simplification rewrite rules 2016-05-26 22:16:52 +00:00
main.go cmd/compile: separate data and function LSyms 2019-01-11 00:45:49 +00:00
mapfile_mmap.go cmd/compile: add indexed export format 2018-04-24 01:05:27 +00:00
mapfile_read.go cmd/compile: add indexed export format 2018-04-24 01:05:27 +00:00
mkbuiltin.go cmd/compile: factor out Pkg, Sym, and Type into package types 2017-04-07 03:04:00 +00:00
mpfloat.go cmd/compile: remove work-arounds for handling underscores in numbers 2019-03-12 22:59:06 +00:00
mpint.go cmd/compile: don't report redundant error for invalid integer literals 2019-03-12 22:59:12 +00:00
noder.go cmd/compile: don't mix internal float/complex constants of different precision 2019-02-19 21:05:17 +00:00
norace.go cmd/compile: randomize compilation order when race-enabled 2017-04-27 19:27:22 +00:00
obj.go cmd/internal/obj: don't dedup symbols in WriteObjFile 2018-11-03 15:12:58 +00:00
op_string.go cmd/compile: port callnew to ssa conversion 2019-03-20 19:38:50 +00:00
order.go cmd/compile: rewrite f(g()) for multi-value g() during typecheck 2019-03-14 21:00:20 +00:00
pgen.go cmd/compile: better handling for PAUTOHEAP in DWARF inline gen 2019-03-25 14:03:40 +00:00
pgen_test.go cmd/compile: merge TPTR32 and TPTR64 as TPTR 2018-10-04 04:08:08 +00:00
phi.go all: update comment URLs from HTTP to HTTPS, where possible 2018-06-01 21:52:00 +00:00
plive.go cmd/compile: don't bother compiling functions named "_" 2019-02-26 20:56:24 +00:00
pprof.go cmd/compile: add mutex profiling support 2017-04-05 22:10:54 +00:00
race.go cmd/compile: randomize compilation order when race-enabled 2017-04-27 19:27:22 +00:00
racewalk.go cmd,runtime: enable race detector on arm64 2018-11-13 16:57:22 +00:00
range.go cmd/compile: omit write barriers for slice clears of go:notinheap pointers 2018-12-05 21:54:54 +00:00
reflect.go runtime: remove kindNoPointers 2019-03-25 20:46:35 +00:00
reproduciblebuilds_test.go cmd/compile: add a test for reproducible build with anonymous interfaces 2018-08-28 19:23:26 +00:00
scc.go cmd/compile: move Strongly Connected Components code into new file 2019-03-14 21:23:37 +00:00
scope.go cmd/compile/internal/gc: various cleanups 2018-03-24 19:44:18 +00:00
scope_test.go internal/testenv: remove SetModVendor 2019-03-08 23:40:24 +00:00
select.go cmd/compile: bulk rename 2018-11-19 00:02:53 +00:00
shift_test.go cmd/compile: test non-constant shifts 2016-06-01 00:06:00 +00:00
sinit.go cmd/compile: better write barrier removal when initializing new objects 2019-03-18 21:16:19 +00:00
sizeof_test.go cmd/compile: extract inline related fields into separate Inline type 2018-04-05 05:12:36 +00:00
ssa.go cmd/compile: use existing instructions instead of nops for inline marks 2019-03-25 16:49:29 +00:00
ssa_test.go cmd/compile: move last compile tests to new test infrastructure 2018-08-24 22:59:12 +00:00
subr.go cmd/compile: inline checknil 2019-02-26 19:28:58 +00:00
swt.go cmd/compile: suppress typecheck errors in a type switch case with broken type 2019-02-27 08:22:03 +00:00
swt_test.go cmd/compile: don't mix internal float/complex constants of different precision 2019-02-19 21:05:17 +00:00
syntax.go cmd/compile: port callnew to ssa conversion 2019-03-20 19:38:50 +00:00
timings.go cmd/compile: add compiler phase timing 2016-08-17 17:27:04 +00:00
trace.go cmd/compile/internal/gc: add runtime/trace support 2016-10-12 13:57:26 +00:00
truncconst_test.go cmd/compile: diagnose constant division by complex zero 2017-04-12 17:29:28 +00:00
typecheck.go cmd/compile: fix importing rewritten f(g()) calls 2019-03-18 19:43:38 +00:00
types.go cmd/compile: merge TPTR32 and TPTR64 as TPTR 2018-10-04 04:08:08 +00:00
types_acc.go cmd/compile: factor out Pkg, Sym, and Type into package types 2017-04-07 03:04:00 +00:00
universe.go cmd/compile: fix ICE due to bad rune width 2018-12-20 19:35:04 +00:00
unsafe.go cmd/compile: bulk rename 2018-11-19 00:02:53 +00:00
util.go cmd/compile: add mutex profiling support 2017-04-05 22:10:54 +00:00
walk.go cmd/compile: port callnew to ssa conversion 2019-03-20 19:38:50 +00:00