]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: rename gen and builtin to _gen and _builtin
authorRuss Cox <rsc@golang.org>
Fri, 30 Sep 2022 14:59:23 +0000 (10:59 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 4 Oct 2022 19:35:46 +0000 (19:35 +0000)
These two directories are full of //go:build ignore files.
We can ignore them more easily by putting an underscore
at the start of the name. That also works around a bug
in Go 1.17 that was not fixed until Go 1.17.3.

Change-Id: Ia5389b65c79b1e6d08e4fef374d335d776d44ead
Reviewed-on: https://go-review.googlesource.com/c/go/+/435472
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
37 files changed:
src/cmd/compile/internal/ssa/_gen/386.rules [moved from src/cmd/compile/internal/ssa/gen/386.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/386Ops.go [moved from src/cmd/compile/internal/ssa/gen/386Ops.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/386splitload.rules [moved from src/cmd/compile/internal/ssa/gen/386splitload.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/AMD64.rules [moved from src/cmd/compile/internal/ssa/gen/AMD64.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/AMD64Ops.go [moved from src/cmd/compile/internal/ssa/gen/AMD64Ops.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/AMD64splitload.rules [moved from src/cmd/compile/internal/ssa/gen/AMD64splitload.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/ARM.rules [moved from src/cmd/compile/internal/ssa/gen/ARM.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/ARM64.rules [moved from src/cmd/compile/internal/ssa/gen/ARM64.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/ARM64Ops.go [moved from src/cmd/compile/internal/ssa/gen/ARM64Ops.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/ARMOps.go [moved from src/cmd/compile/internal/ssa/gen/ARMOps.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/LOONG64.rules [moved from src/cmd/compile/internal/ssa/gen/LOONG64.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/LOONG64Ops.go [moved from src/cmd/compile/internal/ssa/gen/LOONG64Ops.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/MIPS.rules [moved from src/cmd/compile/internal/ssa/gen/MIPS.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/MIPS64.rules [moved from src/cmd/compile/internal/ssa/gen/MIPS64.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/MIPS64Ops.go [moved from src/cmd/compile/internal/ssa/gen/MIPS64Ops.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/MIPSOps.go [moved from src/cmd/compile/internal/ssa/gen/MIPSOps.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/PPC64.rules [moved from src/cmd/compile/internal/ssa/gen/PPC64.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/PPC64Ops.go [moved from src/cmd/compile/internal/ssa/gen/PPC64Ops.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/README [moved from src/cmd/compile/internal/ssa/gen/README with 94% similarity]
src/cmd/compile/internal/ssa/_gen/RISCV64.rules [moved from src/cmd/compile/internal/ssa/gen/RISCV64.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/RISCV64Ops.go [moved from src/cmd/compile/internal/ssa/gen/RISCV64Ops.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/S390X.rules [moved from src/cmd/compile/internal/ssa/gen/S390X.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/S390XOps.go [moved from src/cmd/compile/internal/ssa/gen/S390XOps.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/Wasm.rules [moved from src/cmd/compile/internal/ssa/gen/Wasm.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/WasmOps.go [moved from src/cmd/compile/internal/ssa/gen/WasmOps.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/cover.bash [moved from src/cmd/compile/internal/ssa/gen/cover.bash with 100% similarity]
src/cmd/compile/internal/ssa/_gen/dec.rules [moved from src/cmd/compile/internal/ssa/gen/dec.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/dec64.rules [moved from src/cmd/compile/internal/ssa/gen/dec64.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/dec64Ops.go [moved from src/cmd/compile/internal/ssa/gen/dec64Ops.go with 91% similarity]
src/cmd/compile/internal/ssa/_gen/decOps.go [moved from src/cmd/compile/internal/ssa/gen/decOps.go with 90% similarity]
src/cmd/compile/internal/ssa/_gen/generic.rules [moved from src/cmd/compile/internal/ssa/gen/generic.rules with 100% similarity]
src/cmd/compile/internal/ssa/_gen/genericOps.go [moved from src/cmd/compile/internal/ssa/gen/genericOps.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/main.go [moved from src/cmd/compile/internal/ssa/gen/main.go with 99% similarity]
src/cmd/compile/internal/ssa/_gen/rulegen.go [moved from src/cmd/compile/internal/ssa/gen/rulegen.go with 99% similarity]
src/cmd/compile/internal/typecheck/_builtin/coverage.go [moved from src/cmd/compile/internal/typecheck/builtin/coverage.go with 100% similarity]
src/cmd/compile/internal/typecheck/_builtin/runtime.go [moved from src/cmd/compile/internal/typecheck/builtin/runtime.go with 100% similarity]
src/cmd/compile/internal/typecheck/mkbuiltin.go

similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/386Ops.go
rename to src/cmd/compile/internal/ssa/_gen/386Ops.go
index 88e061151e10ea31bdd8af80f327554161983132..c66650cdacafb35ff6f303f70045b68ae05e3f73 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import "strings"
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/AMD64Ops.go
rename to src/cmd/compile/internal/ssa/_gen/AMD64Ops.go
index fc42fa5e28b8218a1e4a5752355731b779804ddb..75c5ab643f950b6e6f04d0e3592321ebe93a8ced 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import "strings"
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/ARM64Ops.go
rename to src/cmd/compile/internal/ssa/_gen/ARM64Ops.go
index 0e6e6e4a5f3dbf95522b4a09b16a762aee206241..f7cc47bae2b0dc3577d5a560df9936537ba87903 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import "strings"
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/ARMOps.go
rename to src/cmd/compile/internal/ssa/_gen/ARMOps.go
index 3803f273c1dafd5bd85354635d1dcc13673fe3e1..de477a22af8ce9270eeca4d8f8b1068b75321a64 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import "strings"
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/LOONG64Ops.go
rename to src/cmd/compile/internal/ssa/_gen/LOONG64Ops.go
index a59b592445ac0cf49be866b005e8f7c7d3788d70..2cc0f975a14ed040a69fff65ed8440f90b235fc0 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import "strings"
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/MIPS64Ops.go
rename to src/cmd/compile/internal/ssa/_gen/MIPS64Ops.go
index 7b18c42ffb91e35c73e202a7e0b62f9dbb3b9754..89c87720ed317117416efe3f4534b650e688658a 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import "strings"
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/MIPSOps.go
rename to src/cmd/compile/internal/ssa/_gen/MIPSOps.go
index 523847badc9ce2d77db0c54757e81e50e2d706bd..22a7a5c867dfd838b32e0a2407a724efb2a986b9 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import "strings"
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/PPC64Ops.go
rename to src/cmd/compile/internal/ssa/_gen/PPC64Ops.go
index 30a6f6fe07d4b88f9392bb1126b05062955ed644..3a87c1d2a706a48b8f93627c4fa664719e43b426 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import "strings"
similarity index 94%
rename from src/cmd/compile/internal/ssa/gen/README
rename to src/cmd/compile/internal/ssa/_gen/README
index 6d2c6bb47798db1d4a462c8eb771493515207048..0c7ceba7eb953c906835595193c2bdbf4433d07c 100644 (file)
@@ -4,4 +4,4 @@
 
 This package generates opcode tables, rewrite rules, etc. for the ssa compiler.
 Run it with go-1.13 (or above):
-   go run *.go
+   go run .
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/RISCV64Ops.go
rename to src/cmd/compile/internal/ssa/_gen/RISCV64Ops.go
index f09910782d5e24c399beda7bd416ced7046b37c4..09b1620962654af535faaf5f350787aa40668549 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import (
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/S390XOps.go
rename to src/cmd/compile/internal/ssa/_gen/S390XOps.go
index eef8a2557ca39d51e91cb5c5715d3b4d5678c0a2..896fdaa20fd75433bb6ab986b2592d486f200074 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import "strings"
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/WasmOps.go
rename to src/cmd/compile/internal/ssa/_gen/WasmOps.go
index edfba4ee99b774962a26cedf43994527ee939d11..33529e729d37061e6527810e68d308dbc2cdd35f 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 import "strings"
similarity index 91%
rename from src/cmd/compile/internal/ssa/gen/dec64Ops.go
rename to src/cmd/compile/internal/ssa/_gen/dec64Ops.go
index 78fcea885aa8b250304d0064e32ad0b03f52bc8e..bba218ed40903f93f56ef28b7ba3d618f2303f30 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 var dec64Ops = []opData{}
similarity index 90%
rename from src/cmd/compile/internal/ssa/gen/decOps.go
rename to src/cmd/compile/internal/ssa/_gen/decOps.go
index d5cd79378c76a3041e007bc197c171f7272a4bda..0cc11cb4c0f78c095a46b8e02dd4aa9d05deafde 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 var decOps = []opData{}
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/genericOps.go
rename to src/cmd/compile/internal/ssa/_gen/genericOps.go
index d09b9aab7573acbc29c33fad29812fd20ad28959..a4c8fc9c6925daefd8e4533b424985e3fb51e3fd 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 package main
 
 // Generic opcodes typically specify a width. The inputs and outputs
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/main.go
rename to src/cmd/compile/internal/ssa/_gen/main.go
index 81740dcf1c02ac7d06caa90fbfa61c0fb18f97b2..2fbd94df45fa4b0b8dc321faba1cb3f156a59a8b 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build ignore
-// +build ignore
-
 // The gen command generates Go code (in the parent directory) for all
 // the architecture-specific opcodes, blocks, and rewrites.
 package main
similarity index 99%
rename from src/cmd/compile/internal/ssa/gen/rulegen.go
rename to src/cmd/compile/internal/ssa/_gen/rulegen.go
index fc9b4c9b3e74b829ee53f983bc050a231975beec..20b35dc448a631040909d4f3f3fa312295e88bcd 100644 (file)
@@ -2,9 +2,6 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build gen
-// +build gen
-
 // This program generates Go code that applies rewrite rules to a Value.
 // The generated code implements a function of type func (v *Value) bool
 // which reports whether if did something.
index aa3a94a19a4f92ebf6077c25fbfdf11e14b1f4ec..af71a9096392f8383a73bcd9b603c03356593d6d 100644 (file)
@@ -80,7 +80,7 @@ func params(tlist ...*types.Type) []*types.Field {
 
 func mkbuiltin(w io.Writer, name string) {
        fset := token.NewFileSet()
-       f, err := parser.ParseFile(fset, filepath.Join("builtin", name+".go"), nil, 0)
+       f, err := parser.ParseFile(fset, filepath.Join("_builtin", name+".go"), nil, 0)
        if err != nil {
                log.Fatal(err)
        }