]> Cypherpunks repositories - gostls13.git/commit
[dev.simd] cmd/compile: adapters for simd
authorDavid Chase <drchase@google.com>
Sun, 30 Mar 2025 23:45:23 +0000 (10:45 +1100)
committerDavid Chase <drchase@google.com>
Wed, 28 May 2025 15:46:30 +0000 (08:46 -0700)
commit04b1030ae488851278257bac66ccf9925f1b87fb
tree78fb51ad0a23023eff0db1bfa35da6a2cd35074f
parent2ef7106881db51b485f092af93c1a1f01b60ab16
[dev.simd] cmd/compile: adapters for simd

This combines several CLs into a single patch of "glue"
for the generated SIMD extensions.

This glue includes GOEXPERIMENT checks that disable
the creation of user-visible "simd" types and
that disable the registration of "simd" intrinsics.

The simd type checks were changed to work for either
package "simd" or "internal/simd" so that moving that
package won't be quite so fragile.

cmd/compile, internal/simd: glue for adding SIMD extensions to Go
cmd/compile: theft of Cherry's sample SIMD compilation

Change-Id: Id44e2f4bafe74032c26de576a8691b6f7d977e01
Reviewed-on: https://go-review.googlesource.com/c/go/+/675598
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
26 files changed:
src/cmd/compile/internal/abi/abiutils.go
src/cmd/compile/internal/amd64/simdssa.go [new file with mode: 0644]
src/cmd/compile/internal/amd64/ssa.go
src/cmd/compile/internal/ssa/_gen/AMD64.rules
src/cmd/compile/internal/ssa/_gen/AMD64Ops.go
src/cmd/compile/internal/ssa/_gen/generic.rules
src/cmd/compile/internal/ssa/_gen/genericOps.go
src/cmd/compile/internal/ssa/_gen/main.go
src/cmd/compile/internal/ssa/_gen/rulegen.go
src/cmd/compile/internal/ssa/_gen/simdAMD64.rules [new file with mode: 0644]
src/cmd/compile/internal/ssa/_gen/simdAMD64ops.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/_gen/simdgenericOps.go [new file with mode: 0644]
src/cmd/compile/internal/ssa/config.go
src/cmd/compile/internal/ssa/decompose.go
src/cmd/compile/internal/ssa/expand_calls.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteAMD64.go
src/cmd/compile/internal/ssa/rewritegeneric.go
src/cmd/compile/internal/ssa/value.go
src/cmd/compile/internal/ssagen/intrinsics.go
src/cmd/compile/internal/ssagen/simdintrinsics.go [new file with mode: 0644]
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/types/size.go
src/cmd/compile/internal/types/type.go
src/internal/simd/dummy.s [new file with mode: 0644]
src/internal/simd/testdata/sample.go [new file with mode: 0644]