[PTX] simplify call emission

Nathan Sidwell nathan@acm.org
Thu Nov 26 14:19:00 GMT 2015


I've committed this patch to simplify some more call emission machinery.

write_func_decl_from_insn was doing more work than necessary.
1) it doesn't need to examine the callee to figure out whether this is an 
indirect call or not.  It's callers have already done this, and can pass in the 
relevant info (name or NULL).

2) it doesn't need to deal with split regs.  That was already done when the call 
was expanded.

nvptx_output_call_insn had the same issue with split regs.

I changed the formatting slightly, so the proto-1.c testcase needed a tweak. 
While there I canged the fn name from nearly-but-not-quite acc_on_device, to 
'foo', so it didn;t look superficially like a builtin test.

nathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trunk-ptx-libcall.patch
Type: text/x-patch
Size: 8088 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151126/4fb7f7ef/attachment.bin>


More information about the Gcc-patches mailing list