Commit Graph

13406 Commits

Author SHA1 Message Date
Daniel Rodríguez Troitiño
59c669936d [stdlib] Remove documentation piece that it is not longer true.
Since a4e9109 (#17396), both the hashes and the equality of numeric
types inside of AnyHashable do not follow the rules that this part of
the comment was talking about.

I couldn't find an easy example that shows the same behaviour, so I
decided to remove the comment completely.
2019-03-18 14:10:50 -07:00
simon gladman
990a408794 Swift overlays to vDSP_vswsum and vDSP_vswsumD for sliding
window summation over single- and double-precision vectors.
2019-03-18 17:34:08 +00:00
simon gladman
d8e73fc99d Remove unnecessary prefixes to tuple parameters. 2019-03-18 16:21:32 +00:00
Saleem Abdulrasool
46bb45a51a SwiftPrivate: add isClosed property
Since the `_FDOutputStream` type does not conform to a protocol, the
required interface was missed.  The changes in
fbce6e7873 introduced a use of the
`isClosed` property which broke the Windows build.  This should fix the
windows build.
2019-03-18 08:05:26 -07:00
simon gladman
034a33adde Add missing operations: vDSP_zvabs and vDSP_zvmags. 2019-03-18 12:51:22 +00:00
simon gladman
781f163149 Better naming for tuple parameters. 2019-03-18 10:49:11 +00:00
simon gladman
9b833319b0 * Remove parameter labels from commutative operations.
* Fix parameter / operation naming mismatch.
2019-03-18 10:16:07 +00:00
Harlan Haskins
e8d474aa11 Merge pull request #23343 from harlanhaskins/mangled-lassi
[Demangle] Check for old-style mangling in getObjCClassByMangledName
2019-03-17 22:24:34 -07:00
Bob Wilson
ef1d9bc7f8 Stop using the _branchHint function
LLVM r355981 changed various intrinsic functions, including expect,
to require immediate arguments. Swift's _branchHint function has an
expected value that is passed in as an argument, so that it cannot
use LLVM's expect intrinsic. The good news is that _branchHint is only
ever used with immediate arguments, so we can just move the intrinsic
into _fastPath and _slowPath and use those instead of _branchHint.

As was noted in the documentation, the _fastPath and _slowPath names are
confusing but we have passed the point where we can simply rename them.
We could add new names but would still need to keep the old ones around
for binary compatibility, and it is not clear that it is worth the
trouble. I have removed that note from the documentation.
2019-03-17 22:13:51 -07:00
Harlan Haskins
fbce6e7873 [StdlibUnittest] Allow tests to require a new process
When testing runtime lookup changes, we want to make sure each test runs in isolation. Add a new modifier, `.requireOwnProcess()`, to enable tests to guarantee they’re run in isolation.
2019-03-17 17:29:36 -07:00
Simon Gladman
8f9c475939 Swift Overlays to vDSP Linear Interpolation Operations 2019-03-17 07:24:20 +00:00
Simon Gladman
171f6e27de vDSP Swift Overlays to Complex Vector Operations
Swift overlays for calculating phase, copying, conjugating, and general arithmetic against `DSPSplitComplex`.
2019-03-17 06:30:16 +00:00
swift-ci
cf632b903d Merge pull request #23342 from compnerd/who-has-the-time 2019-03-16 21:18:52 -07:00
Saleem Abdulrasool
59fb469ae9 SwiftOnoneSupport: create the import library always
This needs to be added to the release mode builds as well which stopped
generating exported interfaces.
2019-03-16 19:34:35 -07:00
Harlan Haskins
76dd00beb6 [Demangle] Check for old-style mangling in getObjCClassByMangledName
This caused an issue where the runtime was unable to find subclasses of
resilient subclasses of NSObject until they were first registered by their
sugared name with NSClassFromString or were instantiated directly.

rdar://48892003
2019-03-15 19:03:39 -07:00
Saleem Abdulrasool
4473b7464c WinSDK: add convenience conversions for FILETIME/time_t
This conversion is error prone and pretty common.  Provide a helper
initializer and conversion through a getter.
2019-03-15 16:16:56 -07:00
swift-ci
497e94e89d Merge pull request #23235 from mikeash/remove-stable-abi-bit-configuration 2019-03-15 15:31:58 -07:00
swift-ci
6e7202e0f6 Merge pull request #23174 from lorentey/tacoma-narrows 2019-03-15 14:48:33 -07:00
Karoy Lorentey
300595eed4 [Foundation] Collapse as AnyObject as! Foo cast sequences 2019-03-15 13:26:58 -07:00
swift-ci
80657a2675 Merge pull request #22914 from ravikandhadai/loggingAPI-PR 2019-03-14 19:10:53 -07:00
Karoy Lorentey
1162ed6cba [runtime] Report an error for casting failure in _bridgeNonVerbatimFromObjectiveC 2019-03-14 18:20:41 -07:00
Ravi Kandhadai
592bca7202 [oslog] [stdlib-private] Add a prototype of the new os_log swift APIs
that accept string interpolations.

The prototypes are added to stdlib/private directory and will be
used only in tests and in experimental code.
2019-03-14 15:26:21 -07:00
iliaskarim
c8cfb2d6eb Update FixedArray.swift.gyb
Fix typo
2019-03-14 14:40:35 -04:00
simon gladman
0ab30574eb vDSP Swift Overlays to Vector-Vector Extrema and Single-Vector Operations
A suite of Swift overlays to vDSP operations for vector-vector extrema, absolute and negation, in-place reversing and sorting, and single-vector arithmetic.
2019-03-14 16:41:27 +00:00
eeckstein
ece36345b9 Merge pull request #23249 from eeckstein/runtime-malloc-removal2
Avoid malloc allocations in the runtime, part 2
2019-03-14 08:47:41 -07:00
simon gladman
6fad0cf948 Code review changes - better parameter naming for downsample, and rename differenceEquation to twoPoleTwoZeroFilter. 2019-03-14 14:13:24 +00:00
simon gladman
e6e3d424f2 Swift overlays to Accelerate.vDSP 1D and 2D convolution operations. 2019-03-14 13:45:18 +00:00
simon gladman
f3bdb4b835 Swift overlays to vDSP dot product, hypotenuse, and distance squared operations. 2019-03-14 10:50:00 +00:00
Saleem Abdulrasool
4f3a9ac46c Merge pull request #23199 from compnerd/trimming-the-fat
build: excise the concept of fat libraries
2019-03-13 16:58:39 -07:00
Mike Ash
48f9ac9de5 [Stdlib] Reconstitute the documentation part of the comment on AnyKeyPath. 2019-03-13 15:56:00 -04:00
Erik Eckstein
3c73685b93 runtime: avoid memory allocations in checkTransitiveCompleteness
Use SmallVector instead of std::vector and a SmallPtrSet-like implementation for the set.
2019-03-13 11:49:58 -07:00
Erik Eckstein
abccbd8c8c runtime: make the old remangler allocation free.
Extract common code from the old and new remangler into a common base class.
This lets the old remangler benefit from the changes I did recently in the new remangler.
2019-03-13 11:49:58 -07:00
Erik Eckstein
4186c69103 runtime: Fix a compiler warning in release the build 2019-03-13 11:49:58 -07:00
Mike Ash
c38f613aec [Stdlib] Remove a / from the comment describing the ObjC runtime name for AnyKeyPath.
With three /'s, it got interpreted as documentation, which it definitely is not meant to be.
2019-03-13 13:59:53 -04:00
simon gladman
d069a1e063 Rename vDSP reduction functions to disambiguate at every use site. 2019-03-13 16:49:54 +00:00
simon gladman
99d8e573c6 vDSP - Swift overlays to vDSP_desamp and vDSP_deq22. 2019-03-13 15:34:11 +00:00
simon gladman
34e8b1afbe Add missing operations: vDSP_sve_svesq and vDSP_sve_svesqD. 2019-03-13 14:57:27 +00:00
simon gladman
92dc74330a vDSP Vector Reduction Functions
Swift overlays to functions for summing, averaging, and finding extrema in collections.

Note current guidance is to not abbreviate "minimum" and "maximum" in new APIs, hence me avoiding `min` and `max` function names.
2019-03-13 13:40:47 +00:00
Mike Ash
597dcd8f3f [Stdlib][Frontend][CMake] Remove SWIFT_DARWIN_ENABLE_STABLE_ABI_BIT option, make it permanently on. 2019-03-13 09:31:50 -04:00
simon gladman
49246470f8 vDSP Elementwise Vector-Vector and Vector-Scalar Arithmetic
A suite of Swift overlays to the vDSP elementwise arithmetic operations.
2019-03-13 10:53:45 +00:00
simon gladman
c64f42a763 Replace using single element arrays to pass scalar values with withUnsafePointer. 2019-03-13 10:08:10 +00:00
Saleem Abdulrasool
4b9e9d3164 build: excise the concept of fat libraries
This was used for the swift-reflection-test tool.  Instead of using fat
binaries, use the target binary itself.  This simplifies the build logic
as well as paves the road to sub-builds for each target rather than a
monolithic build as we have today.

Originally, the swift-reflection-test was a host tool that linked
against the target libraries since it was testing the target layout.
Now that the tool has been split into a host and target component
(5ea5bb06a3) and we have target and host
libraries that we can link against appropriately, we do not need to link
against the FAT binary.  Since there was exactly one use of this
functionality, switching that from fat linking to regular linking allows
us to remove this functionality entirely.  Switch to regular linking and
remove the option.
2019-03-12 22:30:20 -07:00
Itai Ferber
0235a81cd5 Merge pull request #23244 from itaiferber/data-underestimated-sequence-initializer-fix
Fix off-by-one when initializing Data with discontiguous, underestimated Sequences
2019-03-12 19:25:06 -07:00
Itai Ferber
7ce6f840d1 Fix off-by-one when initializing Data with discontiguous, underestimated sequences 2019-03-12 14:26:58 -07:00
simon gladman
c2d286bbf5 vDSP Miscellaneous Conversions
This commit contains operations for:

* Split complex to/from interleaved complex conversion.
* Polar to/from rectangular coordinate conversion.
* Power and amplitude to decibel conversion.
2019-03-12 15:27:36 +00:00
simon gladman
12374f3a49 Swift Overlays to Accelerate vDSP Polynomial Evaluation Functions 2019-03-12 11:54:40 +00:00
simon gladman
d80065d5c6 Swift overlays to Accelerate.vDSP clipping, limit, and threshold operations. 2019-03-12 11:06:09 +00:00
Saleem Abdulrasool
8ed5c1a4bc build: introduce and switch to GYB_SOURCES
This avoids us having to pattern match every source file which should
help speed up the CMake generation.  A secondary optimization is
possible with CMake 3.14 which has the ability to remove the last
extension component without having to resort to regular expressions.  It
also helps easily identify the GYB'ed sources.
2019-03-11 13:48:54 -07:00
Stephen Canon
20a1781842 Minor improvement for the documentation of ulp and ulpOfOne. (#23211)
1. Move discussion of `DBL_EPSILON` etc. onto `ulpOfOne` instead of `ulp`.
2. Add text explaining that `ulpOfOne` is a poor value to use for approximate comparison.
2019-03-11 13:06:41 -04:00
simon gladman
6b7d7f6702 Merge remote-tracking branch 'refs/remotes/origin/accelerate-vDSP-conversion' 2019-03-11 16:57:27 +00:00