[LLVMbugs] [Bug 17433] New: [NVPTX] compiling programs with indirect calls (via function pointers)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 1 14:11:15 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=17433

            Bug ID: 17433
           Summary: [NVPTX] compiling programs with indirect calls (via
                    function pointers)
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: unassignedbugs at nondot.org
          Reporter: bart.goossens at telin.ugent.be
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11314
  --> http://llvm.org/bugs/attachment.cgi?id=11314&action=edit
Test program with an indirect call that causes the bug

LLC (version 3.3svn, i686-pc-win32) with NVPTX back-end crashes when compiling
an LLVM program containing indirect calls.

>From the error message (see attached example) it seems that the back-end does
not know how to handle function pointers (despite the fact that the CUDA
compiler, NVCC supports them). The example compiles correctly with the x86
back-end, but not when targeting NVPTX.

According to the NVVM specification (see
http://docs.nvidia.com/cuda/nvvm-ir-spec/index.html), function pointers are
qualified by address space code addrspace(0) (=default), so not specifying an
address space should be fine. I tried to attach "callalign-metadata" to the
call, as described in the specification, but it did not make any difference.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131001/5f9582e5/attachment.html>


More information about the llvm-bugs mailing list