[llvm-commits] [llvm] r45850 - /llvm/trunk/lib/VMCore/Verifier.cpp

Duncan Sands baldrick at free.fr
Sun Jan 13 00:18:43 PST 2008


> > there are some issues that need to be fixed:
> > (1) the asm parser drops parameter attributes specified on the varargs
> > part of a call/invoke;
> > (2) when the DAE pass drops varargs call arguments, the parameter
> > attributes need to be trimmed, since otherwise you can have attributes
> > that don't correspond to a call argument any more;
> > (3) when instcombine resolves calls to a bitcast of a function into
> > a direct call, then parameter attributes will be lost on any varargs
> > part of a call.

These are all done.

> One more. When llvm-extract remove a function with byval parameters,  
> it also drops the attribute.

I don't know what llvm-extract is, so how about I leave that to you :)

There is one more problem place: ArgumentPromotion.  After rewriting a
function, it rewrites all calls to the function, but doesn't adjust their
parameter attributes.  See DeadArgumentElimination for an example where
parameter attributes are rewritten.  I don't have time to fix this now.

Ciao,

D.



More information about the llvm-commits mailing list