Commit Graph

21821 Commits

Author SHA1 Message Date
Dave Zarzycki
c205840079 Add Float16 and Float128 but only typecheck them
Swift SVN r3672
2013-01-04 06:26:15 +00:00
Dave Zarzycki
2ed2aaa3f5 Add Float80 and limit it to x86/x86_64 with a build system hack
Swift SVN r3671
2013-01-04 06:26:13 +00:00
Dave Zarzycki
33076b5b38 Split FloatingPoint.swift into Float32.swift and Float64.swift
Swift SVN r3670
2013-01-04 06:26:11 +00:00
Dave Zarzycki
ef7c502b33 Move policy out of Misc.swift into Policy.swift
Also, until the typechecker improves, be paranoid and concat the Policy
file upfront at build time.

Swift SVN r3649
2013-01-02 22:48:21 +00:00
Dave Zarzycki
ba7f0b0f2c Enable '==' and '!=' for class references
This may not be how we want to implement class equality checks in the
long run, but in the short term this is _very_ handy. See also:
<rdar://problem/12939898> ER: formalize root classes

This also removes support for greater-than/less-than on Vectors, which
makes no sense given that this has everything to do with the randomness
of the memory allocator and nothing intrinsic about Vectors or class
references in general.

Swift SVN r3628
2012-12-31 01:43:58 +00:00
Doug Gregor
d2c40eeccd Move the ObjCBool type into the 'objc' module.
Swift SVN r3533
2012-12-18 22:06:48 +00:00
Dave Zarzycki
c825debf2f Cleanup Enumeration
I tried to transform getEnumeratorType() into a VarDecl, but IRGen hasn't implement this feature yet.

Swift SVN r3527
2012-12-18 02:12:19 +00:00
Doug Gregor
97ea8e66c3 Split the Objective-C types in the standard library into a separate file.
Eventually, the Objective-C types will move to a separate Objective-C
support layer. For now, they sit in the standard library.


Swift SVN r3463
2012-12-13 00:22:28 +00:00
Dave Zarzycki
36fc6a0c27 Make assert() work correctly in debug and release builds respectively
Yay for build system hacks! And thank you Doug for proposing this
instead of my original CPP hack...

Swift SVN r3446
2012-12-12 16:24:44 +00:00
Doug Gregor
3f9b2d0aab Add missing CTypes.swift, since I accidentally committed its use.
Swift SVN r3327
2012-12-03 15:35:34 +00:00
Doug Gregor
a79f61a4a7 Add missing #include to fix compilation with mainline Clang
Swift SVN r3326
2012-12-03 15:34:03 +00:00
Dave Zarzycki
5e7b9928fd Move Range out of Misc.swift into Range.swift
Swift SVN r3299
2012-11-29 21:51:26 +00:00
Dave Zarzycki
ac4ddce56d Move CString out and extend
Swift SVN r3296
2012-11-29 19:33:54 +00:00
Dave Zarzycki
25e83e44b6 Move Slice<T> and UnsafePointer<T> out of Misc.swift
Swift SVN r3294
2012-11-29 19:33:40 +00:00
Dave Zarzycki
fa5c235bff Move crude input shims to InputStream.swift
We need to replace and flush input streaming later with genuine parsing.

Swift SVN r3170
2012-11-13 22:52:00 +00:00
Dave Zarzycki
5e485a91f1 Move I/O logic out of Misc.swift
Also remove contentious [US]{8,16,32,64,128} types

Swift SVN r3169
2012-11-13 22:36:44 +00:00
Dave Zarzycki
e9d2c11710 Workaround lack of modules: fake 'errno'
Swift SVN r3162
2012-11-13 00:24:08 +00:00
Dave Zarzycki
79d61845de Crude filesystem directory support
Swift SVN r3078
2012-10-28 22:11:41 +00:00
Dave Zarzycki
7e8a16a69e Workaround 12202655 -- Rework type resolution
Swift SVN r3070
2012-10-26 18:21:40 +00:00
Dave Zarzycki
18ec3de9f9 Partition POSIX shims and/or API
Swift SVN r3063
2012-10-26 04:31:21 +00:00
Dave Zarzycki
4d8739f083 Accept limitations of LLVM build system
1) Move the low-level runtime code into swift/runtime
2) Move the high-level "standard library" code into swift/stdlib

The key difference is that the 'runtime' contains language support logic
(like retain/release logic) that the compiler assumes to always exist
and may assume intimate details about the implementation. This library
will have intimate knowledge of the swift ABI.

In contrast, the 'stdlib' can be completely rewritten and the
language/compiler make little if any assumptions about it. It is
expected to reexport fundamental types and operators, and implement
fundamental policies (precedence, implicit conversions, etc).

Swift SVN r3045
2012-10-23 21:33:52 +00:00