[LLVMdev] LLVM as a shared library

Eric Christopher echristo at gmail.com
Wed Aug 6 09:28:35 PDT 2014


> I haven’t yet worked out the cleanest way to do this.  There’s 2 options I
> think.  Either make some kind of command line registration available via the
> PassRegistry already passed to initialize, or we add another parameter to
> initialize which is the command line registry.
>
> What do you think?
>

I was thinking about this a while ago w.r.t. the backend options
coming from clang as well. One thought would be to add
elements/structures onto something like the LLVMContext and have them
be able to be set via populating a structure while we take the command
lines out/separated/etc that can also fill in the structure.

I think this would work for most of the command line options within
the passes as well, just give each one their own options structure?

*shrug*

-eric




More information about the llvm-dev mailing list