[llvm-dev] How to remove memcpy

Wolfgang McSneed via llvm-dev llvm-dev at lists.llvm.org
Sat Oct 15 16:25:20 PDT 2016


That worked!

Thank you for your time!

Kind Regards,

Wolf

On Sat, Oct 15, 2016 at 6:22 PM, Joerg Sonnenberger via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> On Sat, Oct 15, 2016 at 06:18:48PM -0500, Wolfgang McSneed wrote:
> > No, there is no reason that can't be static. How do you recommend that I
> > define them?
>
> Just make them static const, so that a & b are effectively read-only
> global variables. That way, the function doesn't have to reinitialize
> them all the time.
>
> Joerg
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161015/65d948d4/attachment.html>


More information about the llvm-dev mailing list