[LLVMdev] Calling with register indirect reference instead of memory indirect reference.

Murali, Sriram sriram.murali at intel.com
Fri Mar 1 08:00:40 PST 2013


Hi Anton, 
I am attaching the Selection DAG before legalize stage (pre and post application of the patch). The test case with one int argument (fn_ptr_int_..) fails and the test case with no argument( fn_ptr_void...) doesn’t error out.  I also attached the LLVM IR for the test cases if that might be of some help.

Thanks
Ram

-----Original Message-----
From: Anton Korobeynikov [mailto:anton at korobeynikov.info] 
Sent: Friday, March 01, 2013 2:56 AM
To: Murali, Sriram
Cc: llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Calling with register indirect reference instead of memory indirect reference.

Hello

> I am wondering if the modification made to the DAG is causing a 
> problem, and can it be done at all? If I cannot do this, is there any 
> other place I can look at, to make this work.
It's hard to tell w/o seeing the exact code / DAG. Note, however, that this assertion is seen on simple LLVM IR:
http://llvm.org/bugs/show_bug.cgi?id=15053

So, it might be not your bug after all.

--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fn_ptr_int_post.png
Type: image/png
Size: 251146 bytes
Desc: fn_ptr_int_post.png
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130301/797c4e95/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fn_ptr_int_pre.png
Type: image/png
Size: 222527 bytes
Desc: fn_ptr_int_pre.png
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130301/797c4e95/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fn_ptr_void_post.png
Type: image/png
Size: 205647 bytes
Desc: fn_ptr_void_post.png
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130301/797c4e95/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fn_ptr_void_pre.png
Type: image/png
Size: 175714 bytes
Desc: fn_ptr_void_pre.png
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130301/797c4e95/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fn_ptr_int_post.ll
Type: application/octet-stream
Size: 846 bytes
Desc: fn_ptr_int_post.ll
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130301/797c4e95/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fn_ptr_void_post.ll
Type: application/octet-stream
Size: 835 bytes
Desc: fn_ptr_void_post.ll
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130301/797c4e95/attachment-0001.obj>


More information about the llvm-dev mailing list