mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.simd] cmd/compile, simd: update generated files
This CL is generated by x/arch CL 694861 Change-Id: I2af1aaacbe9374d98b13be972713fc2cb1177927 Reviewed-on: https://go-review.googlesource.com/c/go/+/694918 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Junyang Shao <shaojunyang@google.com> Auto-Submit: Austin Clements <austin@google.com>
This commit is contained in:
parent
e33eb1a7a5
commit
702ee2d51e
1 changed files with 52 additions and 22 deletions
|
|
@ -1,62 +1,92 @@
|
||||||
// Copyright 2025 The Go Authors. All rights reserved.
|
// Code generated by x/arch/internal/simdgen using 'go run . -xedPath $XED_PATH -o godefs -goroot $GOROOT go.yaml types.yaml categories.yaml'; DO NOT EDIT.
|
||||||
// Use of this source code is governed by a BSD-style
|
|
||||||
// license that can be found in the LICENSE file.
|
|
||||||
|
|
||||||
//go:build goexperiment.simd
|
//go:build goexperiment.simd
|
||||||
|
|
||||||
// The build condition == if the experiment is not on, cmd/api TestCheck will see this and complain
|
|
||||||
// see also go/doc/comment, where "simd" is inserted to the package list of the experiment is not on.
|
|
||||||
|
|
||||||
package simd
|
package simd
|
||||||
|
|
||||||
import "internal/cpu"
|
import "internal/cpu"
|
||||||
|
|
||||||
// HasAVX checks AVX CPU feature.
|
// HasAVX returns whether the CPU supports the AVX feature.
|
||||||
|
//
|
||||||
|
// HasAVX is defined on all GOARCHes, but will only return true on
|
||||||
|
// GOARCH amd64.
|
||||||
func HasAVX() bool {
|
func HasAVX() bool {
|
||||||
return cpu.X86.HasAVX
|
return cpu.X86.HasAVX
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasAVXVNNI checks AVX CPU feature VNNI.
|
// HasAVX2 returns whether the CPU supports the AVX2 feature.
|
||||||
func HasAVXVNNI() bool {
|
//
|
||||||
return cpu.X86.HasAVXVNNI
|
// HasAVX2 is defined on all GOARCHes, but will only return true on
|
||||||
}
|
// GOARCH amd64.
|
||||||
|
|
||||||
// HasAVX2 checks AVX2 CPU feature.
|
|
||||||
func HasAVX2() bool {
|
func HasAVX2() bool {
|
||||||
return cpu.X86.HasAVX2
|
return cpu.X86.HasAVX2
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasAVX512 checks AVX512 CPU feature F+CD+BW+DQ+VL.
|
// HasAVX512 returns whether the CPU supports the AVX512F+CD+BW+DQ+VL features.
|
||||||
|
//
|
||||||
|
// These five CPU features are bundled together, and no use of AVX-512
|
||||||
|
// is allowed unless all of these features are supported together.
|
||||||
|
// Nearly every CPU that has shipped with any support for AVX-512 has
|
||||||
|
// supported all five of these features.
|
||||||
|
//
|
||||||
|
// HasAVX512 is defined on all GOARCHes, but will only return true on
|
||||||
|
// GOARCH amd64.
|
||||||
func HasAVX512() bool {
|
func HasAVX512() bool {
|
||||||
return cpu.X86.HasAVX512
|
return cpu.X86.HasAVX512
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasAVX512GFNI checks AVX512 CPU feature GFNI.
|
// HasAVX512BITALG returns whether the CPU supports the AVX512BITALG feature.
|
||||||
|
//
|
||||||
|
// HasAVX512BITALG is defined on all GOARCHes, but will only return true on
|
||||||
|
// GOARCH amd64.
|
||||||
|
func HasAVX512BITALG() bool {
|
||||||
|
return cpu.X86.HasAVX512BITALG
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasAVX512GFNI returns whether the CPU supports the AVX512GFNI feature.
|
||||||
|
//
|
||||||
|
// HasAVX512GFNI is defined on all GOARCHes, but will only return true on
|
||||||
|
// GOARCH amd64.
|
||||||
func HasAVX512GFNI() bool {
|
func HasAVX512GFNI() bool {
|
||||||
return cpu.X86.HasAVX512GFNI
|
return cpu.X86.HasAVX512GFNI
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasAVX512VBMI checks AVX512 CPU feature VBMI
|
// HasAVX512VBMI returns whether the CPU supports the AVX512VBMI feature.
|
||||||
|
//
|
||||||
|
// HasAVX512VBMI is defined on all GOARCHes, but will only return true on
|
||||||
|
// GOARCH amd64.
|
||||||
func HasAVX512VBMI() bool {
|
func HasAVX512VBMI() bool {
|
||||||
return cpu.X86.HasAVX512VBMI
|
return cpu.X86.HasAVX512VBMI
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasAVX512VBMI2 checks AVX512 CPU feature VBMI2
|
// HasAVX512VBMI2 returns whether the CPU supports the AVX512VBMI2 feature.
|
||||||
|
//
|
||||||
|
// HasAVX512VBMI2 is defined on all GOARCHes, but will only return true on
|
||||||
|
// GOARCH amd64.
|
||||||
func HasAVX512VBMI2() bool {
|
func HasAVX512VBMI2() bool {
|
||||||
return cpu.X86.HasAVX512VBMI2
|
return cpu.X86.HasAVX512VBMI2
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasAVX512VNNI checks AVX512 CPU feature VNNI
|
// HasAVX512VNNI returns whether the CPU supports the AVX512VNNI feature.
|
||||||
|
//
|
||||||
|
// HasAVX512VNNI is defined on all GOARCHes, but will only return true on
|
||||||
|
// GOARCH amd64.
|
||||||
func HasAVX512VNNI() bool {
|
func HasAVX512VNNI() bool {
|
||||||
return cpu.X86.HasAVX512VNNI
|
return cpu.X86.HasAVX512VNNI
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasAVX512VPOPCNTDQ checks AVX512 CPU feature VPOPCNTDQ
|
// HasAVX512VPOPCNTDQ returns whether the CPU supports the AVX512VPOPCNTDQ feature.
|
||||||
|
//
|
||||||
|
// HasAVX512VPOPCNTDQ is defined on all GOARCHes, but will only return true on
|
||||||
|
// GOARCH amd64.
|
||||||
func HasAVX512VPOPCNTDQ() bool {
|
func HasAVX512VPOPCNTDQ() bool {
|
||||||
return cpu.X86.HasAVX512VPOPCNTDQ
|
return cpu.X86.HasAVX512VPOPCNTDQ
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasAVX512BITALG checks AVX512 CPU feature BITALG
|
// HasAVXVNNI returns whether the CPU supports the AVXVNNI feature.
|
||||||
func HasAVX512BITALG() bool {
|
//
|
||||||
return cpu.X86.HasAVX512BITALG
|
// HasAVXVNNI is defined on all GOARCHes, but will only return true on
|
||||||
|
// GOARCH amd64.
|
||||||
|
func HasAVXVNNI() bool {
|
||||||
|
return cpu.X86.HasAVXVNNI
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue