Aaron Gray
2009-Jul-18 21:21 UTC
[LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
Hi, I am working on the COFF backend and am wondering where llvm.memcpy gets lowered to memcpy ? It seems to be done by the assembler backends and would have thought it would either be done by a lowering pass or done by the mangler but it does not seem to be either. Many thanks in advance, Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090718/7beb4828/attachment.html>
Chris Lattner
2009-Jul-18 21:37 UTC
[LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
On Jul 18, 2009, at 2:21 PM, Aaron Gray wrote:> Hi, > > I am working on the COFF backend and am wondering where llvm.memcpy > gets lowered to memcpy ?The instruction selector does this, it turns it into "ExternalGlobal" operands.> > It seems to be done by the assembler backendsWhat code are you referring to? -Chris
Eli Friedman
2009-Jul-18 21:41 UTC
[LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
On Sat, Jul 18, 2009 at 2:21 PM, Aaron Gray<aaronngray.lists at googlemail.com> wrote:> I am working on the COFF backend and am wondering where llvm.memcpy gets > lowered to memcpy ?It's done by ISel. See SelectionDAG::getMemcpy. -Eli
Aaron Gray
2009-Jul-18 21:56 UTC
[LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
I am iterating through Modules symbols for 'test/CodeGen/X86/memcpy.bc I get :- ---------- Functions ---------- llvm.memcpy.i64 Mangled name = llvm.memcpy.i64 DefaultVisibility ExternalLinkage - Externally visible. my_memcpy Mangled name = my_memcpy DefaultVisibility ExternalLinkage - Externally visible. my_memcpy2 Mangled name = my_memcpy2 DefaultVisibility ExternalLinkage - Externally visible. abort Mangled name = abort DefaultVisibility ExternalLinkage - Externally visible. ----------- Globals ----------- ----------- Aliases ----------- I am using this to define my symbols, but the relocations contain 'memcpy'. Aaron 2009/7/18 Eli Friedman <eli.friedman at gmail.com>> On Sat, Jul 18, 2009 at 2:21 PM, Aaron > Gray<aaronngray.lists at googlemail.com> wrote: > > I am working on the COFF backend and am wondering where llvm.memcpy gets > > lowered to memcpy ? > > It's done by ISel. See SelectionDAG::getMemcpy. > > -Eli > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090718/76216c54/attachment.html>
Apparently Analagous Threads
- [LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
- [LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
- [LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
- [LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?
- [LLVMdev] Where does llvm.memcpy.i64 and friends get lowered ?