[LLVMdev] pass for one function

Duncan Sands baldrick at free.fr
Fri Mar 13 01:36:30 PDT 2009


On Friday 13 March 2009 07:51:18 abhishek Singh wrote:
> Hi All,Is it possible to write a opt pass , which can run on one particular
> function( input from command line) in a module ?

You can add a global variable to your module that consists
of an array of strings.  Each string is the name of a function
your pass should optimize.

Ciao,

Duncan.



More information about the llvm-dev mailing list