mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[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>
This commit is contained in:
parent
2ef7106881
commit
04b1030ae4
26 changed files with 2196 additions and 675 deletions
10
src/cmd/compile/internal/ssa/_gen/simdAMD64ops.go
Normal file
10
src/cmd/compile/internal/ssa/_gen/simdAMD64ops.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
// Code generated by internal/simd/_gen using 'go run .'; DO NOT EDIT.
|
||||
|
||||
package main
|
||||
|
||||
func simdAMD64Ops(fp11, fp21, fp2m1, fp2m1fp1, fp2m1m1 regInfo) []opData {
|
||||
return []opData{
|
||||
// {name: "VPADDB", argLength: 2, reg: fp21, asm: "VPADDB", commutative: true},
|
||||
// etc, generated
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue