[LLVMdev] pass for one function
Chris Lattner
clattner at apple.com
Fri Mar 13 08:27:12 PDT 2009
On Mar 13, 2009, at 1:36 AM, Duncan Sands wrote:
> 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.
You can also use the llvm-extract tool to split the one function
you're interested out into its own module.
-Chris
More information about the llvm-dev
mailing list