[LLVMbugs] [Bug 2128] New: interpreter should bind functions by type

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Mar 7 23:06:44 PST 2008


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

           Summary: interpreter should bind functions by type
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Interpreter
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu


Currently the Interpreter has a short list of functions it can bind to.

Instead, it should take the FunctionType, collapse it down to the ABI-relevant
bits (getTypeID already does this for each param) then cast the funcptr and
call through it.

This would mean having large switching statements (or template abuse?) to
create the casts for each possible combination of types. Or we could use
libffi, http://sources.redhat.com/libffi/ , which is very liberally licensed.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list