Commit Graph

12 Commits

Author SHA1 Message Date
Daniel Rodríguez Troitiño
c02fa2dd45 [android] Add check for __aarch64__ besides __arm__ and __arm64__.
The spelling __arm64__ seems to be an Apple-only thing, which is not
provided when targetting Android, and probably other AArch64 Linuxes.
2020-04-11 17:30:16 -07:00
Stephen Canon
248c554524 Add Float16 to stdlib (#30130)
Add Float16 (IEEE 754 binary16) to the standard library, plus assorted runtime support operations.

Swift Evolution thread: https://forums.swift.org/t/se-0277-float16/33546
2020-04-06 17:57:44 -04:00
Stephen Canon
f8a9e56957 Importer support for float80 (#14971)
* First pass at implementing support for mapping between long double and Float80.

* Only define CLongDouble on platforms where I know what it is.

* remove some hacks that are no longer necessary.
2018-03-07 16:49:21 -05:00
Jordan Rose
315761c4cf [ClangImporter] Don't assume inner pointers are nullable.
Some inner pointers are explicitly annotated as _Nonnull, and we
should believe that. This is important when passing, say, pointers
to arrays.
2016-04-11 20:06:41 -07:00
Jordan Rose
a79a893f9a [test] Add new tests for pointers with explicit nullability. 2016-04-11 20:06:40 -07:00
Xi Ge
f1ae3bbb64 Revert "[test] Put variadic definitions in a platform-independent header and remove the platform requirement."
The linux bots are still in oblivion of the variadic c function error.

Swift SVN r32915
2015-10-27 19:41:45 +00:00
Xi Ge
e048947869 [test] Put variadic definitions in a platform-independent header and remove the platform requirement.
Swift SVN r32914
2015-10-27 19:11:57 +00:00
Joe Groff
c9f24d1f2e ClangImporter: Keep importing pointers to unimportable types as COpaquePointer in -enable-pointer-conversions mode.
Don't crash.

Swift SVN r19182
2014-06-25 21:35:21 +00:00
Joe Groff
527b97895a ClangImporter: Import void* parameters as C*VoidPointer.
Swift SVN r15878
2014-04-03 17:04:37 +00:00
Doug Gregor
1dd795998f Imported C functions never have API names.
The parameter names in C functions are not API in C and can easily be
inconsistent from one redeclaration to another. Therefore, those
parameter names are not considered API.


Swift SVN r15853
2014-04-03 04:13:29 +00:00
Joe Groff
b9299ed04d ClangImporter: Import pointer parameters as CMutablePointer/CConstPointer.
When we see pointer types in function or method parameters, import them as the bridged CMutablePointer/CConstPointer types instead of UnsafePointer, enabling the array and inout conversions with imported APIs.

Swift SVN r15705
2014-03-31 23:06:50 +00:00
Dmitri Hrybenko
d35cf945e6 Move Clang importer test SDK to a toplevel dir test/Inputs where it can be
shared between Clang importer and IDE tests


Swift SVN r11292
2013-12-14 02:20:32 +00:00