Commit Graph

361 Commits

Author SHA1 Message Date
simon gladman
fb9fa8dea3 Merge branch 'master' into accelerate-vDSP-fillClearGenerate 2019-04-02 10:07:52 +01:00
simon gladman
d84b0652fb Merge branch 'master' into accelerate-vDSP-complexOperations 2019-04-01 15:30:40 +01:00
simon gladman
9f752aa0d9 Add versions of operations that return the result. 2019-04-01 14:31:05 +01:00
simon gladman
fd42237e45 Merge branch 'master' into accelerate-vDSP-elementwiseVectorArithmetic 2019-04-01 10:58:18 +01:00
Michael Ilseman
b19c2cf9c3 [String] Add generic String.Index and range inits within a String
Adds a generic version of String.Index.init?(_:within:) and
Range<String.Index>.init?(_:in:).

Tests added
2019-03-29 15:43:00 -07:00
simon gladman
80c529dd89 Add operations that return their result. 2019-03-29 16:48:08 +00:00
simon gladman
23b75ed3b0 Merge branch 'master' into accelerate-vDSP-linearInterpolation 2019-03-29 16:17:23 +00:00
simon gladman
6f803763a6 Add operations that return result. 2019-03-29 16:16:57 +00:00
simon gladman
3b87572e99 Merge branch 'master' into accelerate-vDSP-miscConversions 2019-03-29 15:40:56 +00:00
simon gladman
40523b399e add operations that return the result 2019-03-29 15:38:45 +00:00
simon gladman
3c7768e35a Merge branch 'master' into accelerate-vDSP-singleVectorOperations 2019-03-29 14:50:18 +00:00
simon gladman
a3478e0b46 Create versions of operations that return the result. 2019-03-29 14:47:12 +00:00
simon gladman
42355b390d Merge branch 'master' into accelerate-vDSP-differenceEquationAndDownsampling 2019-03-29 13:37:56 +00:00
simon gladman
6a700fdc2a Add operations that return the result 2019-03-29 13:34:32 +00:00
simon gladman
ebffbbef39 Merge branch 'master' into accelerate-vDSP-convolution 2019-03-29 11:38:33 +00:00
simon gladman
850e1a48de Add operations that return a result. 2019-03-29 11:21:28 +00:00
simon gladman
2308927ac1 Merge branch 'master' into accelerate-vDSP-geometry 2019-03-29 10:48:45 +00:00
simon gladman
2547585013 Add versions of operations that return a result. 2019-03-29 10:48:13 +00:00
Simon Gladman
05a53a4c57 Merge branch 'master' into accelerate-vDSP-polynomialEvaluation 2019-03-29 07:50:35 +00:00
simon gladman
f1e98b6147 Add versions of operations that return the result as an array. 2019-03-28 17:22:29 +00:00
simon gladman
45e60ba75a Merge branch 'master' into accelerate-vDSP-clippingLimitThreshold 2019-03-28 16:41:42 +00:00
simon gladman
f5afb0d779 Create integrations functions that return the result. 2019-03-28 16:40:25 +00:00
simon gladman
5c4fc18013 Merge branch 'master' into accelerate-vDSP-slidingWindow 2019-03-28 16:08:22 +00:00
simon gladman
65f1e6314c Merge branch 'master' into accelerate-vDSP-integration 2019-03-28 15:45:22 +00:00
simon gladman
75ca8c03d8 Merge branch 'master' into accelerate-vDSP-linearInterpolation 2019-03-27 17:06:53 +00:00
simon gladman
393c404a9c Merge branch 'master' into accelerate-vDSP-complexOperations 2019-03-27 17:04:20 +00:00
simon gladman
4a2cc1803a Merge branch 'master' into accelerate-vDSP-singleVectorOperations 2019-03-27 16:55:55 +00:00
simon gladman
c6e594f456 Merge branch 'master' into accelerate-vDSP-slidingWindow 2019-03-27 16:54:39 +00:00
simon gladman
f39351ac24 Merge branch 'master' into accelerate-vDSP-miscConversions 2019-03-27 16:16:35 +00:00
simon gladman
92feb8acd4 Merge branch 'master' into accelerate-vDSP-geometry 2019-03-27 15:49:42 +00:00
simon gladman
b076cac904 Merge branch 'master' into accelerate-vDSP-differenceEquationAndDownsampling 2019-03-27 15:25:12 +00:00
simon gladman
2f45f2a332 Merge branch 'master' into accelerate-vDSP-vectorReduction 2019-03-27 15:21:19 +00:00
simon gladman
31116aa278 Merge branch 'master' into accelerate-vDSP-polynomialEvaluation 2019-03-27 15:16:44 +00:00
simon gladman
5e41b10df6 Merge branch 'master' into accelerate-vDSP-clippingLimitThreshold 2019-03-27 15:13:36 +00:00
Mike Ash
965953d7a0 Merge pull request #23451 from mikeash/magic-symbols-for-install-name
[Build] Use magic linker symbols to specify an @rpath-relative install name when targeting pre-stable-ABI OSes.
2019-03-27 08:10:30 -07:00
simon gladman
06f0565b6f Merge branch 'master' into accelerate-vDSP-fillClearGenerate 2019-03-27 15:08:57 +00:00
simon gladman
0e82e8f71f Merge branch 'master' into accelerate-vDSP-convolution 2019-03-27 14:56:46 +00:00
simon gladman
6597c0db31 Merge branch 'master' into accelerate-vDSP-integration 2019-03-27 14:53:45 +00:00
simon gladman
65e2eb6d8b Merge branch 'master' into accelerate-vDSP-elementwiseVectorArithmetic 2019-03-27 14:48:22 +00:00
simon gladman
c12cf57294 Merge branch 'master' into accelerate-vDSP-conversion 2019-03-27 14:45:10 +00:00
swift-ci
07a29d5ff7 Merge pull request #23515 from Luigi123/refactor-url 2019-03-26 10:53:39 -07:00
Stephen Canon
fbd1d4cecc Use the blessed (repeating: Scalar) init instead of (Scalar) in simd. (#23534) 2019-03-25 20:32:16 -04:00
Luigi
174d019111 Refactor if statements in URL.swift
I refactored some of the if statements in URL.swift to be guard instead.
This made the code shorter and easier to read.
This mirrors my commit on swift-corelibs-foundation (PR #2034)
2019-03-23 18:07:24 +09:00
Stephen Canon
1a9ae47d06 Teach the importer to import any clang vector type as SIMDn<Scalar>. (#23454)
* Teach the importer to import any vector type as SIMDN<Scalar>.

Instead of having a known set of vector types, check to see if the
element type conforms to SIMDScalar; if it does, see if we have a
SIMDN defined with the right number of elements. If both are satisfied,
import the vector type as that Swift type.

By making this change, we gain the ability to import vector types
that aren't defined in terms of the Darwin simd module, which lets
us use C API with vector types on other platforms. It also lets us
import *every* vector type that Swift can represent, rather than the
small subset that are currently hardcoded.

* Increased test coverage for increased SIMD types that we can import.

Includes some minor cleanup from review. Also eliminates the old
simd_sans_simd test, since we can now import all of these types even when the simd module isn't imported.
2019-03-22 22:11:22 -04:00
Thomas Roughton
e0c9a6e17c SIMD Overlay: inline deprecated methods (#23250)
On Swift 5, using the deprecated `SIMD.init(_ scalar: Scalar)` initialiser rather than `SIMD.init(repeating scalar: Scalar)` will cause the type to fail to be specialised, resulting in performance degradation. Mark this method and `static prefix func -` as `@_transparent` to ensure they are correctly specialised.
2019-03-22 16:19:53 -04:00
Mike Ash
998b833f65 Make sure magic-symbols-for-install-name.c is above GYB_SOURCES in all files. 2019-03-22 10:04:40 -04:00
Mike Ash
4fb99998ae [Build] Use magic linker symbols to specify an @rpath-relative install name when targeting pre-stable-ABI OSes.
Magic symbols of the form $ld$install_name$os9.0$@rpath/libswiftCore.dylib tell the linker to use that install name when targeting that OS version. Use these symbols to specify an @rpath install name for all back-deployment libraries when targeting watchOS 2.0-5.1, iOS 7.0-12.1, and macOS 10.9-10.14.

rdar://problem/45027809
2019-03-22 10:04:39 -04:00
simon gladman
3a5934d7c5 Rename pointers for vDSP_vsub and vDSP_vsubD to match vDSP function parameter names. 2019-03-21 09:59:13 +00:00
Michael Gottesman
384882d5f3 Merge pull request #23201 from compnerd/patience-is-not-always-a-virtue
build: introduce and switch to GYB_SOURCES
2019-03-20 13:27:32 -07:00
simon gladman
f62897ae67 Remove by and from parameter names for divide and subtract operations and fix subtract operation parameter order. 2019-03-19 13:37:04 +00:00