[LLVMdev] whether these transformations are doable and how?

Devang Patel devang.patel at gmail.com
Mon Apr 12 23:20:06 PDT 2010

> 3.  can I modify a function to take extra formal parameters? can I update
> all calls of the original function to take extra actual paramters?  The
> function might be called across multiple modules.   It seems this has to be
> done at both ModulePass and FunctionPass levels.

Check out DeadArgumentElimination pass. It does opposite of what you
want, but you'll get an idea.


More information about the llvm-dev mailing list