[llvm-dev] llvm.memcpy for struct copy
Matthias Braun via llvm-dev
llvm-dev at lists.llvm.org
Thu Feb 1 10:09:05 PST 2018
There's no need for anything else, you can bitcast any struct pointer to an i8 pointer (which is free/needs no instructions in all the targets I know of).
> On Jan 29, 2018, at 11:06 PM, ma jun via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> Hi all
> why does llvm.memcpy intrinsic only support i8* for first two arguments? and does clang will also transform struct copy into llvm.memcpy ? what format does IR looks like?
> Thanks !
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev