Commit Graph

15 Commits

Author SHA1 Message Date
Max Desiatov
454e5ea98f Fix test/Misc/target-cpu.swift (#81137)
It expected `apple-a7`, while the new value is `apple-a4` for `WATCHTARGETCPU2`.

rdar://150074485
2025-04-29 14:11:18 -07:00
Saleem Abdulrasool
e89bfcf63f ClangImporter: handle -target-cpu for x86 targets
`-mcpu` is a deprecated "alias" (unsupported) on x86 targets for
`-mtune`. Unlike `-mcpu`, `-mtune` simply tunes the code for the CPU but
does not prevent execution on other targets. In order to match the
behaviour of `-mcpu` on ARM, we must use both `-march=` and `-mtune=`.
Adjust this behaviour to allow tuning of code for non-Darwin targets.
2024-04-01 14:31:52 -07:00
Alexis Laferrière
5730163f35 [ClangImporter] Update clang invocation to use the marketing names of CPUs
Update the clang invocation to use the marketing name of Apple CPUs.

rdar://problem/64918604
2020-07-19 14:18:08 -07:00
Lei Zhang
81ece42b18 Fix objc_simd test failure on s390x 2019-08-16 11:22:35 -07:00
Bob Wilson
812a3223ba Update another instance of a "cortex-a8" to match LLVM r304390. 2017-07-31 13:55:38 -07:00
Bob Wilson
31c8ae0c5e Adjust expected test output to match LLVM r304390.
It is not clear to me if we want that LLVM change to apply to Apple
platforms, so I filed rdar://problem/33626867 to follow up on that.
2017-07-31 09:48:18 -07:00
Vivian Kong
7fe35b4d78 Set default CPU for s390x to support conversion between unsigned integers and floating point numbers (#9647) 2017-07-13 11:20:25 -07:00
David Farler
b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
Dmitri Gribenko
4324e7c903 Remove conditional compilation of tvOS 2015-12-01 14:43:45 -07:00
Dmitri Hrybenko
7f94cbe74b More CMake support and #ifs for hiding tvOS
Swift SVN r28781
2015-05-19 20:30:03 +00:00
David Farler
b2e8f7d21c Typo: cortex-a8 -> cortex-a7 for armv7k watchos test line
Swift SVN r26288
2015-03-19 00:43:11 +00:00
David Farler
8eb30c417b Update watchOS test run lines to use armv7k explicitly
Swift SVN r26287
2015-03-19 00:26:48 +00:00
David Farler
544ef4002d Merge tvOS and watchOS Support
- Add frontend and standard library build support for tvOS.
- Add frontend support for watchOS.

watchOS standard library builds are still disabled during SDK bring-up.

To build for TVOS, specify --tvos to build-script.
To build for watchOS, specify --watchos to build-script (not yet supported).

This patch does not include turning on full tests for TVOS or watchOS, and
will be included in a follow-up patch.

Swift SVN r26278
2015-03-18 21:35:07 +00:00
Jordan Rose
49a6c8eb7b Do all target info management in Clang, and drop -target-abi / -target-feature.
Previously we hardcoded a few important default CPUs, ABIs, and features into
Swift's driver, duplicating work in Clang. Now that we're using Clang's
driver to create the Clang "sub-compiler", we can delegate this work to Clang.

As part of this, I've dropped the options for -target-abi (which was a
frontend-only option anyway) and -target-feature (which was a hidden driver
option and is a frontend-only option in /Clang/). We can revisit this later
if it becomes interesting. I left in -target-cpu, which is now mapped
directly to Clang's -mcpu=.

Swift SVN r22449
2014-10-01 23:55:40 +00:00