[swift-dev] help with looking up Foundation.NSString

2016-03-20 Thread Rafkind, Jon via swift-dev
I am trying to retrieve the ValueDecl associated with an NSString using the swiftc code base. I can find the Foundation module, but I cannot seem to retrieve the NSString type out of it. swift::ModuleDecl * foundation = context->getLoadedModule(context->getIdentifier("Foundation")); // this i

Re: [swift-dev] [Discussion] New refcount representation

2016-03-20 Thread John Calsbeek via swift-dev
> One scheme that I want to investigate for ObjC's use is to allocate a flat > array of side allocations, and store an index into that array in the isa > field's extra bits. Depending on architecture that allows between 256K and > 64M objects with side allocations before falling back to a global

Re: [swift-dev] [Discussion] New refcount representation

2016-03-20 Thread Brent Royal-Gordon via swift-dev
>> You don't talk much about it, but I think you're suggesting that the strong >> and unowned refcounts would still be packed into the same fields. It's worth >> noting that your clever high-bit-indicates-slow-path trick would *not* work >> on the unowned refcount, though that matters less since

[swift-dev] Issue cross compiling swift-llvm for iOS from OS X

2016-03-20 Thread Andrew Hyatt via swift-dev
I am having an issue cross compiling swift-llvm for iOS from OS X. This is my command: utils/build-script -R -i --host-target iphoneos-armv7s --no-assertions -c -- --native-llvm-tools-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ --user-config-ar

Re: [swift-dev] Cross compilation for linux failed on Mac

2016-03-20 Thread Труб Илья via swift-dev
So, I cancel my question since it was incorrect. I pointed out arm-linux target with "xcrun -sdk macosx" before swiftc, so all targets unless native were rejected. But I have once more interesting question about compiler behaviour. All below written actions are done on Mac. I invoke swiftc: 1) wi