Dave Abrahams
c27b447edb
Delete unintentionally-committed files
...
Swift SVN r7186
2013-08-12 23:21:41 +00:00
Dave Abrahams
128e69d934
[docs] Revise TextFormatting.* to reflect posted proposal
...
Swift SVN r7178
2013-08-12 21:13:03 +00:00
John McCall
14cb7001b3
Implement basic support for [weak].
...
Swift SVN r7041
2013-08-08 04:04:51 +00:00
John McCall
b77c430848
Add SIL-gen and some missing runtime support for [unowned].
...
Swift SVN r6881
2013-08-03 08:46:54 +00:00
Jordan Rose
674a03b085
Replace "oneof" with "union"...everywhere.
...
We haven't fully updated references to union cases, and enums still are not
their own thing yet, but "oneof" is gone. Long live "union"!
Swift SVN r6783
2013-07-31 21:33:33 +00:00
Peter O'Gorman
b62ebbbcd0
fix build on case-sensitive fs
...
Swift SVN r6772
2013-07-31 04:01:18 +00:00
Chris Lattner
fa49d75eb4
Add bool, int8, and float vectors of size 2 definitions and some supported operations.
...
Swift SVN r6768
2013-07-30 23:54:18 +00:00
Joe Groff
6e00dbf9b9
Remove the Swift version of the demangler.
...
This creates a regression in REPL printing for class instances, which now will print the mangled class name of the instance, since Object.className was using the Swift demangler to demangle the type name. REPL printing is getting an overhaul so I think this is OK for now.
Swift SVN r6704
2013-07-29 20:50:06 +00:00
Jordan Rose
2341903bb0
[Makefiles] Convert autoconf build to use modules.
...
Note that if you already have an autoconf build, you will need to erase
build/*/lib/*.swift (the first * being "all configurations").
Swift SVN r6534
2013-07-24 00:01:47 +00:00
Dave Zarzycki
af4e485b81
14443393 stdlib fails to build with different -o option
...
Somebody should verify that I didn't break the CMake build. Thanks!
Swift SVN r6346
2013-07-18 06:42:00 +00:00
Argyrios Kyrtzidis
d02ac70be2
[CMake] Pass "-isysroot ${MODULES_SDK}" for building stdlib/runtime.
...
This is because objc/NSObject.h, included by SwiftObject.mm, only exists in the 10.9 SDK.
Swift SVN r6343
2013-07-18 01:12:54 +00:00
Argyrios Kyrtzidis
341962ce92
[CMake] Introduce add_swift_compiler_flags() and add_swift_optimization_flags() to reduce copy-pasting.
...
Swift SVN r6342
2013-07-18 01:12:53 +00:00
Dmitri Hrybenko
0791041eb4
Revert the API change of r5893
...
This commit merges EnvironmentVariables and CommandLineArguments into a single
swift.Process global variable. POSIX-dependent parts are available as
extension with "import POSIX".
Original message:
stdlib: split the Process class into a POSIX-dependent (EnvironmentVariables)
and POSIX-independent (CommandLineArguments) parts
Swift SVN r6331
2013-07-17 17:55:24 +00:00
John McCall
7b86817b3c
Basic value structure for [weak] and [unowned] references.
...
Add a bunch of new entrypoints and give them terrible
implementations.
Swift SVN r6322
2013-07-17 09:20:20 +00:00
Doug Gregor
5240e9a442
Remove Vec4b/Vec4f. They can be added back when someone gives them more thought.
...
Swift SVN r6026
2013-07-05 22:57:08 +00:00
Dmitri Hrybenko
16d8ddc093
Revert wrong changes, did not intend to commit all that
...
Swift SVN r6010
2013-07-05 17:13:07 +00:00
Dmitri Hrybenko
b1b1c63be5
Add a comment for r6001
...
Swift SVN r6009
2013-07-05 17:11:38 +00:00
Dmitri Hrybenko
e662ec5bf8
Re-export libobjc from swift_stdlib_core
...
This fixes rdar://14265543 Building a program with a class requires Cocoa at
link time
Swift SVN r5982
2013-07-04 00:06:23 +00:00
Dmitri Hrybenko
8df5ab7998
stdlib/core/Assert*: prevent recursive assertions
...
Swift SVN r5935
2013-07-01 18:20:36 +00:00
Dmitri Hrybenko
260ac15f10
stdlib: split the Process class into a POSIX-dependent (EnvironmentVariables)
...
and POSIX-independent (CommandLineArguments) parts
Swift SVN r5895
2013-06-29 01:28:26 +00:00
Dmitri Hrybenko
8b7b85f769
stdlib/POSIX: add getopt() bindings
...
Swift SVN r5891
2013-06-28 23:54:18 +00:00
Dmitri Hrybenko
0e26015bb2
Splitting the standard library: move POSIX declarations from stdlib/core/Misc.swift to stdlib/POSIX
...
Swift SVN r5890
2013-06-28 23:46:01 +00:00
Dmitri Hrybenko
6dcaaa9b0d
Splitting the standard library: rename IS_STDLIB -> IS_STDLIB_CORE to reflect the reality
...
Swift SVN r5889
2013-06-28 23:10:38 +00:00
Dmitri Hrybenko
ea43c46262
Splitting the standard library: move runtime -> stdlib/runtime
...
Swift SVN r5887
2013-06-28 22:41:38 +00:00
Dmitri Hrybenko
77e43c2a1a
Splitting the standard library: move objc -> stdlib/objc
...
Swift SVN r5883
2013-06-28 22:15:07 +00:00
Dmitri Hrybenko
2d9233862a
Splitting the standard library: rename swift_stdlib.dylib ->
...
swift_stdlib_core.dylib according to the directory name.
Swift SVN r5881
2013-06-28 21:47:12 +00:00
Dmitri Hrybenko
a4589b1c51
Splitting the standard library: push the build system down to stdlib/{core,POSIX}
...
Now the Makefile-based build system builds a separate dylib for POSIX.
Swift SVN r5880
2013-06-28 21:13:56 +00:00
Dmitri Hrybenko
a4acfafe12
Splitting the standard library: build the POSIX library separately
...
Swift SVN r5868
2013-06-28 04:01:56 +00:00
Dmitri Hrybenko
387f08b1a7
Splitting the standard library: move stdlib/core/POSIX/ -> stdlib/POSIX/
...
Swift SVN r5867
2013-06-28 02:50:07 +00:00
Dmitri Hrybenko
bc2d7e6240
Splitting the standard library: move stdlib/core/{Makefile,CMakeLists.txt} -> stdlib/{Makefile,CMakeLists.txt}
...
We can not build recursively now because stdlib must be a single TU.
Swift SVN r5866
2013-06-28 02:46:00 +00:00
Dmitri Hrybenko
4bc9ac4ea7
Splitting the standard library: add stdlib/Makefile, stdlib/CMakeLists.txt
...
Swift SVN r5865
2013-06-28 02:34:07 +00:00
Dmitri Hrybenko
29cebdf797
Splitting the standard library: step 1: move stdlib -> stdlib/core
...
Swift SVN r5864
2013-06-28 02:31:01 +00:00
Dave Abrahams
2e0ff6e8ca
[stdlib] Add HeapBuffer: a reference-counted buffer of dynamic size
...
This will be useful in implementing Copy-On-Write value types
Swift SVN r5844
2013-06-27 20:47:18 +00:00
Doug Gregor
9a5c96a8c1
Introduce basic support for LLVM vectors as builtins.
...
This adds builtin types Builtin.VecNxT, where N is a natural number
and T is a builtin type, which map down to the LLVM type <N x T>.
Update varous builtins to support vector arguments, e.g., binary
operations, comparisons, negation. Add InsertElement and
ExtractElement builtins for vectors.
On top of these builtins, add Vec4f and Vec4b structs to the standard
library, which provide 4xFloat and 4xBool vectors, respectively, with
basic support for arithmetic. These are mostly straw men, to be burned
down at our leisure.
Some issues as yet unresolved:
- Comparisons of Vec4f'ss are producing bogus Vec4b's, which I
haven't tracked down yet.
- We still don't support the shuffle builtin, although it should be
easy
- More testing!
Swift SVN r5820
2013-06-26 21:16:36 +00:00
Chris Lattner
bc903a5513
Add a new -parse-stdlib command line option to better model autoimport
...
of swift vs builtin module (moving towards rdar://11187080). When
swift ultimately has "project files", this bit will come from there,
until then it is best to come from the command line.
Swift SVN r5739
2013-06-21 17:24:49 +00:00
Dmitri Hrybenko
6fa2efaf0b
stlib: Introduce a LifetimeManager -- a class to emulate precise lifetime.
...
This is needed to ensure that the objects are not deallocated when they are
passed as UnsafePointers to C APIs.
Also clean up our String <-> CString <-> UnsafePointer<UInt8> conversion
routines. Clean up all users and refactor users poking into CString's
internals whenever possible.
Swift SVN r5656
2013-06-18 21:51:46 +00:00
Dave Zarzycki
4dae2eb7c2
Remove Float{16,128}
...
We can always add these back later.
Swift SVN r5510
2013-06-07 17:32:56 +00:00
Dave Abrahams
a3f937a21c
[stdlib] Never break the Makefile build again!
...
Swift SVN r5482
2013-06-05 21:09:36 +00:00
Doug Gregor
b393311086
Unbreak Makefile build
...
Swift SVN r5469
2013-06-04 17:30:34 +00:00
Dave Abrahams
c5da3b6888
[stdlib] Add Indexable protocol and adapters
...
Swift SVN r5444
2013-06-03 20:09:24 +00:00
Dave Abrahams
1c0dea724c
[stdlib] Add Ranges of Forward and Bidirectional values
...
Swift SVN r5443
2013-06-03 20:09:23 +00:00
Dave Abrahams
baab5913ad
[stdlib] Dictionary uses Optional<String> instead of relying on String nullability
...
Swift SVN r5301
2013-05-24 16:39:23 +00:00
Chris Lattner
8f4f90606d
move the order of .swift files. This order crashes the compiler.
...
Swift SVN r5274
2013-05-22 21:32:35 +00:00
Dave Abrahams
b2b4bf9f32
[stdlib] Incorporate CodePoints; split tests out accordingly
...
Swift SVN r5273
2013-05-22 21:05:47 +00:00
Dave Abrahams
24af18987b
[stdlib] Generators and Adaptors
...
Allows us to write in terms of the "ideal" traversal protocol while
maintaining compatibilty with the existing one
Swift SVN r5101
2013-05-08 21:39:12 +00:00
Dave Abrahams
a793099ba2
Add Zip.swift to the stdlib Makefile
...
Swift SVN r5078
2013-05-07 15:31:37 +00:00
Dave Abrahams
78cb2016e6
Add Zip2, which zips two Enumerables
...
Swift SVN r5077
2013-05-07 02:14:24 +00:00
Doug Gregor
401cbf4058
Add Optional.swift to the list of stdlib sources in the makefile.
...
Swift SVN r5063
2013-05-06 21:32:20 +00:00
Dave Abrahams
9e0ecddfb9
stdlib: add Optional<T>
...
Swift SVN r5020
2013-05-01 23:19:48 +00:00
Dave Abrahams
2760b9ced7
WIP: CodePoints range with access to first() element
...
Swift SVN r4935
2013-04-27 13:31:14 +00:00