[LLVMdev] opt pass plugins on Windows?

Martin Tofall obsidium at uni-paderborn.de
Thu Jan 8 11:29:58 PST 2009


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:

VG> Hello,

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

VG> Best regards,
VG> Vlado

>> 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:
>> 
>> MT> Hello,
>> 
>> MT> I'm just starting out with LLVM, currently using Visual Studio on
>> MT> Windows. Now I'd like to write a custom pass that can be loaded
>> MT> dynamically as demonstrated in the 'hello world' tutorial.
>> MT> So far my DLL loads OK but the actual pass registration does not seem
>> MT> to work.
>> MT> My question then is (as I could not find any information on the
>> MT> subject): is this even possible on win32 or will I have to move to a
>> MT> different development platform?
>> 
>> MT> Thanks,
>> MT> Martin
>> 
>> MT> _______________________________________________
>> MT> LLVM Developers mailing list
>> MT> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> MT> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>> 
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

VG> _______________________________________________
VG> LLVM Developers mailing list
VG> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
VG> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list