[LLVMdev] run function pass conditionally
Carlo Alberto Ferraris
cafxx at strayorange.com
Wed Aug 24 04:11:47 PDT 2011
Nella citazione mercoledì 24 agosto 2011 10:07:48, Yabin Hu ha scritto:
> Hi all,
>
> I want to run a legacy function-level pass on only parts of the
> functions of a module (for example, only those functions named with
> "_built_in_" prefix).
> How can i do it?
> I don't want to rewrite the pass itself.
simply check, at the beginning of runOnFunction, that the condition is
met: if not, simply return 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cafxx.vcf
Type: text/x-vcard
Size: 230 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110824/94ea7a80/attachment.vcf>
More information about the llvm-dev
mailing list