[LLVMbugs] [Bug 290] NEW: Bugpoint doesn't support uses of external fns by immediate constant exprs
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Fri Mar 12 10:58:01 PST 2004
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=290
Summary: Bugpoint doesn't support uses of external fns by
immediate constant exprs
Product: tools
Version: trunk
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: bugpoint
AssignedTo: unassignedbugs at nondot.org
ReportedBy: gaeke+bugs at uiuc.edu
I hit the "UNSUPPORTED: external function used as a global initializer!" abort in bugpoint today, and I
think a relatively simple enhancement to make would be to support things like
%tmp.16 = call %struct.line* (...)* cast (%struct.line* ()* %next_active_node to %struct.line* (...)*)( )
You get things like this when you have K&R style function prototypes.
We could attack this by specifically checking for constant cast exprs that are not wrapped in anything
and only used in a single call instruction. But a more general solution would be to check that the
function's use is a constant expr such that
1) the constant expr has only one use
2) the constant expr's use is either
a) an instruction, or
b) a constant expr conforming to 1) & 2).
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list