opt pass plugins on Windows?

Hello,

I'm just starting out with LLVM, currently using Visual Studio on
Windows. Now I'd like to write a custom pass that can be loaded
dynamically as demonstrated in the 'hello world' tutorial.
So far my DLL loads OK but the actual pass registration does not seem
to work.
My question then is (as I could not find any information on the
subject): is this even possible on win32 or will I have to move to a
different development platform?

Thanks,
Martin

Hello,

this is just a quick follow-up to my previous email. I now tried
statically linking the 'hello' pass to opt which does seem to work.
But I'm not sure if this is reliable or if I'm bound to run into
problems later, so any comments on this issue would be appreciated.

Martin

Wednesday, January 7, 2009, 2:54:52 AM, you wrote:

Hello,

What kind of error did you get with your first try with opt and Hello pass?
Is it somehow similar to errors reported in bug 2771?

Best regards,
Vlado

Hallo,

I did not get any error messages. The DLL is loaded by
DynamicLibrary::LoadLibraryPermanently but it looks like there is no
interface between opt and my DLL, so passes get registered separately
in opt and the DLL. I guess using DLLs simply won't work.

Thanks,
Martin

Thursday, January 8, 2009, 12:14:21 PM, you wrote: