[swift-lldb-dev] Support for the Swift calling convention in lldb

2016-10-13 Thread Arnold Schwaighofer via swift-lldb-dev
Hi LLDB team, as part of the ABI work for this year we would like to adopt the swift calling convention. I am working on the swift/llvm side of this. Adopt the new Swift calling convention The swift calling convention “swiftcc” together with the “swifterror” and “swiftself” attribute will ch

Re: [swift-lldb-dev] Support for the Swift calling convention in lldb

2016-10-13 Thread Todd Fiala via swift-lldb-dev
Hi Arnold! Thanks for the heads up. Comments below. > On Oct 13, 2016, at 12:32 PM, Arnold Schwaighofer via swift-lldb-dev > wrote: > > Hi LLDB team, > > as part of the ABI work for this year we would like to adopt the swift > calling convention. > > I am working on the swift/llvm side of

Re: [swift-lldb-dev] Support for the Swift calling convention in lldb

2016-10-13 Thread Arnold Schwaighofer via swift-lldb-dev
> On Oct 13, 2016, at 12:47 PM, Todd Fiala wrote: > > e identify C/C++ code that was using this calling convention? I think, llvm would have to mark such functions with a DWARF entry? I don’t know how much DWARF info generated by a clang that supports swiftcc would shield an older lldb from h

Re: [swift-lldb-dev] Support for the Swift calling convention in lldb

2016-10-13 Thread Todd Fiala via swift-lldb-dev
> On Oct 13, 2016, at 12:54 PM, ematej...@apple.com wrote: > > + Michael to see this thread (he’s the ABI DRI from the frontend side.) > > Ewa >> On Oct 13, 2016, at 12:47 PM, Todd Fiala via swift-lldb-dev >> mailto:swift-lldb-dev@swift.org>> wrote: >> >> Hi Arnold! >> >> Thanks for the heads

Re: [swift-lldb-dev] Support for the Swift calling convention in lldb

2016-10-13 Thread Jim Ingham via swift-lldb-dev
> On Oct 13, 2016, at 12:47 PM, Todd Fiala via swift-lldb-dev > wrote: > > Hi Arnold! > > Thanks for the heads up. Comments below. > >> On Oct 13, 2016, at 12:32 PM, Arnold Schwaighofer via swift-lldb-dev >> wrote: >> >> Hi LLDB team, >> >> as part of the ABI work for this year we would

Re: [swift-lldb-dev] Support for the Swift calling convention in lldb

2016-10-13 Thread Adrian Prantl via swift-lldb-dev
My understanding was that once Swift switches to the new calling convention, every function in the Swift namespace (^_T.*) would implicitly use the Swift calling convention. If this assertion should for some reason not be true, we will have to decorate the functions in DWARF with a calling conve

Re: [swift-lldb-dev] Support for the Swift calling convention in lldb

2016-10-13 Thread Jim Ingham via swift-lldb-dev
I commented in the Radar. "step-out" captures the return and error values. That's done in some hand-rolled code in lldb, so that would have to be modified. Longer term it would be great if Swift (and Clang) had a function that did: Function Decl -> dwarf expression for return location, then

Re: [swift-lldb-dev] Support for the Swift calling convention in lldb

2016-10-13 Thread Jason Molenda via swift-lldb-dev
> On Oct 13, 2016, at 1:07 PM, Todd Fiala via swift-lldb-dev > wrote: > I’m not entirely sure of all the places that care. > > * Possibly the unwinder, although that might not care since it needs to > handle hand-rolled assembly and everything in between. Jason could say more > here. Havi