[LLVMdev] What would cause instructions to NOT make it into the module?

Rick Mann rmann at latencyzero.com
Thu Jan 24 00:04:16 PST 2013


On Jan 23, 2013, at 22:06 , "Caldarale, Charles R" <Chuck.Caldarale at unisys.com> wrote:

>> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] 
>> On Behalf Of Sean Silva
>> Subject: Re: [LLVMdev] What would cause instructions to NOT make it into the module?
> 
>> It is a pass that can be run like any other pass. See createVerifierPass().
> 
> You can also just call verifyModule() with the appropriate parameters; it's defined in include/llvm/Analysis/Verifier.h.

It turns out, many of the APIs will happily accept a NULL module. I tracked down where I was failing to pass the module to the classes that were calling LLVM. Now all is well again.

Thank you for the tip!

-- 
Rick





More information about the llvm-dev mailing list