November 14, 2016
On Monday, 14 November 2016 at 10:45:08 UTC, Kagamin wrote:
> On Saturday, 12 November 2016 at 18:55:19 UTC, Johan Engelen wrote:
>> I am not enough of a D expert to come up with a good way to do this.
>
> Spec says pragma can be applied to statements: https://dlang.org/spec/pragma.html

Excellent.
November 14, 2016
On Saturday, 12 November 2016 at 15:44:28 UTC, deXtoRious wrote:
> I have not found any way to make LDC perform the same optimizations as Clang's best case (simply static void, no weak attribute) and have run out of ideas. Furthermore, I have no idea why the aforementioned changes in the function declaration affect the both optimizers in this way, or whether finer control over vectorization/loop unrolling is possible in LDC. Any thoughts?

LDC can compile to llvm bitcode, you can then generate object code from it with llc and its various options. AFAIK, LLVM equivalent of a private symbol is "hidden" attribute, you can try to apply that, though lto shouldn't be affected by it.
1 2 3
Next ›   Last »