[LLVMdev] My top 5 LLVM wishes
Matthijs Kooijman
matthijs at stdin.nl
Thu Jun 12 02:53:26 PDT 2008
> 5) A way to tell the optimizer whether we are compiling an application
> or a library - specifically, I'd like to be able to tell it to prune all
> globals not reachable from 'main'. (It currently does this in llc, but
> I'd like to be able to operate on a bitcode file.)
I think the internalize pass does exactly this, you could just run opt
-internalize on your bitcode before running other optimizations to get this
effect?
Gr.
Matthijs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080612/729a7c99/attachment.sig>
More information about the llvm-dev
mailing list