November 23, 2015
On Monday, 23 November 2015 at 00:04:44 UTC, deadalnix wrote:
> I'd be very interested by the LLVM IR that this spout out.

Here's the IR for https://github.com/Syniurge/Calypso/blob/master/tests/calypso/eh/std_exception.d :

  https://paste.kde.org/pjxrqjjhp

> Also, good work, pulling that one is hard.

It wasn't that hard to be honest, I took many shortcuts thanks to Clang and Calypso.

But even without them it's doable. About the issue you mentioned in the other thread, I don't think generating std::type_info values will be too big of a hindrance for Walter. Looking at cxxabi.h the classes derived from type_info all have simple layouts so generating values at least for classes singly inheriting from std::exception should be achievable without too much sweat.
November 24, 2015
On Monday, 23 November 2015 at 23:33:21 UTC, Elie Morisse wrote:
> On Monday, 23 November 2015 at 00:04:44 UTC, deadalnix wrote:
>> I'd be very interested by the LLVM IR that this spout out.
>
> Here's the IR for https://github.com/Syniurge/Calypso/blob/master/tests/calypso/eh/std_exception.d :
>
>   https://paste.kde.org/pjxrqjjhp
>
>> Also, good work, pulling that one is hard.
>
> It wasn't that hard to be honest, I took many shortcuts thanks to Clang and Calypso.
>
> But even without them it's doable. About the issue you mentioned in the other thread, I don't think generating std::type_info values will be too big of a hindrance for Walter. Looking at cxxabi.h the classes derived from type_info all have simple layouts so generating values at least for classes singly inheriting from std::exception should be achievable without too much sweat.

Yeah that's what I wanted to look int he IR. Where is _D_ZTISt9exception7__tiwrap defined ? Looks like you trimed the output :(
November 24, 2015
On Tuesday, 24 November 2015 at 06:44:31 UTC, deadalnix wrote:
> Yeah that's what I wanted to look int he IR. Where is _D_ZTISt9exception7__tiwrap defined ? Looks like you trimed the output :(

Sorry I got a little heavy handed, here's the full IR: https://paste.kde.org/piivojs0s
November 25, 2015
On Tuesday, 24 November 2015 at 22:51:40 UTC, Elie Morisse wrote:
> On Tuesday, 24 November 2015 at 06:44:31 UTC, deadalnix wrote:
>> Yeah that's what I wanted to look int he IR. Where is _D_ZTISt9exception7__tiwrap defined ? Looks like you trimed the output :(
>
> Sorry I got a little heavy handed, here's the full IR: https://paste.kde.org/piivojs0s

<3 <3 <3 <3

November 25, 2015
On Wednesday, 25 November 2015 at 01:04:19 UTC, deadalnix wrote:
> On Tuesday, 24 November 2015 at 22:51:40 UTC, Elie Morisse wrote:
>> On Tuesday, 24 November 2015 at 06:44:31 UTC, deadalnix wrote:
>>> Yeah that's what I wanted to look int he IR. Where is _D_ZTISt9exception7__tiwrap defined ? Looks like you trimed the output :(
>>
>> Sorry I got a little heavy handed, here's the full IR: https://paste.kde.org/piivojs0s
>
> <3 <3 <3 <3

I can't find the runtime that goes with this. My best guess was here: https://github.com/Syniurge/druntime/blob/release-0.16.1/src/ldc/eh/common.d But it doesn't check the source language.

Can I get some pointers ?
November 25, 2015
On Wednesday, 25 November 2015 at 06:57:14 UTC, deadalnix wrote:
> I can't find the runtime that goes with this. My best guess was here: https://github.com/Syniurge/druntime/blob/release-0.16.1/src/ldc/eh/common.d But it doesn't check the source language.
>
> Can I get some pointers ?

In case you haven't found already, the rest of the changes lies next door in libunwind.d. Then if you're after the differences from vanilla LDC you could ctrl+f for // CALYPSO comments (I've made a habit of tagging all the departures from vanilla code with these), or you could browse the diff from the single commit:

https://github.com/Syniurge/druntime/commit/d33d8bf32c739bf9a30705dfc764718c817f16b1#diff-da783b0dc7ec2a5b78b6c4479a320d08
Next ›   Last »
1 2 3 4