Lines Matching refs:arch

467 func RegisterDefaultArchVariantFeatures(os OsType, arch ArchType, features ...string) {
471 if !InList(feature, archFeatures[arch]) {
472 panic(fmt.Errorf("Invalid feature %q for arch %q variant \"\"", feature, arch))
479 defaultArchFeatureMap[os][arch] = features
942 func filterToArch(targets []Target, arch ArchType) []Target {
944 if targets[i].Arch.ArchType != arch {
953 arch, multilib, target reflect.Type member
991 for i, arch := range archTypeList {
994 for _, archVariant := range archVariants[arch] {
998 for _, feature := range archFeatures[arch] {
1012 Name: arch.Field,
1055 arch: reflect.PtrTo(archType),
1118 Arch: reflect.Zero(t.arch).Interface(),
1272 arch := m.Arch()
1293 t := arch.ArchType
1295 if arch.ArchType != Common {
1306 v := variantReplacer.Replace(arch.ArchVariant)
1319 if arch.CpuVariant != arch.ArchVariant {
1320 c := variantReplacer.Replace(arch.CpuVariant)
1334 for _, feature := range arch.ArchFeatures {
1357 if os.Linux() && arch.ArchType != Common {
1358 field := "Linux_" + arch.ArchType.Name
1359 prefix := "target.linux_" + arch.ArchType.Name
1363 if os.Bionic() && arch.ArchType != Common {
1384 if arch.ArchType != Common {
1401 if (arch.ArchType == X86 && (hasArmAbi(arch) ||
1403 (arch.ArchType == Arm &&
1409 if (arch.ArchType == X86_64 && (hasArmAbi(arch) ||
1411 (arch.ArchType == Arm &&
1456 arch, err := decodeArch(os, archName, archVariant, cpuVariant, abi)
1466 nativeBridgeRelativePathStr = arch.ArchType.String()
1472 Arch: arch,
1552 func hasArmAbi(arch Arch) bool {
1553 return PrefixInList(arch.Abi, "arm")
1587 arch string member
1660 arch, err := decodeArch(os, config.arch, &config.archVariant,
1668 Arch: arch,
1676 func decodeArch(os OsType, arch string, archVariant, cpuVariant *string, abi []string) (Arch, error…
1684 archType, ok := archTypeMap[arch]
1686 return Arch{}, fmt.Errorf("unknown arch %q", arch)