Hi All,
Is it possible to write a opt pass , which can run on one particular function( input from command line) in a module ?
Thanks,
Abhishek
Hi All,
Is it possible to write a opt pass , which can run on one particular function( input from command line) in a module ?
Thanks,
Abhishek
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.
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 ?
Should be simple: add a command-line option for the pass name, and have the pass ignore any functions that don't have that name...
You can also use the llvm-extract tool to split the one function you're interested out into its own module.
-Chris