[LLVMdev] LiveValues Pass

Rotem Varon varonrotem at gmail.com
Sat Jun 6 01:12:12 PDT 2009


Hi,

I tried to use the LiveValues pass without success.
I did exactly as you wrote me but no luck for me.
I am getting this error :

[rotem at localhost ~]$ opt -load
/home/rotem/Desktop/install/Release/lib/BBPass.so -BBPass <
/home/rotem/Desktop/tmp/BBtry.bc > /dev/null
Error opening '/home/rotem/Desktop/install/Release/lib/BBPass.so':
/home/rotem/Desktop/install/Release/lib/BBPass.so: undefined symbol:
_ZN4llvm10LiveValues2IDE
  -load request ignored.
opt: Unknown command line argument '-BBPass'.  Try: 'opt --help'

I tried also to relocate the LiveValues to the same directory of me pass.
This is the error:

llvm[0]: Compiling BBPass.cpp for Release build  (PIC)
llvm[0]: Compiling LiveValues.cpp for Release build  (PIC)
LiveValues.cpp: In member function 'llvm::LiveValues::Memo&
llvm::LiveValues::compute(const llvm::Value*)':
LiveValues.cpp:150: error: 'const class llvm::PHINode' has no member named
'getIncomingValueNumForOperand'

I really need your help here
Thank you.





On Tue, Jun 2, 2009 at 2:10 PM, Dan Gohman <gohman at apple.com> wrote:

>
> On Jun 2, 2009, at 5:54 AM, Rotem Varon wrote:
> >
> > This questions are on the LiveValues pass:
> > Do i need to set the "LiveValues" pass in the PassManager as a
> > prerequisite? if so how do i get the results ?
>
> Yes; it's a standard analysis pass. See
> http://llvm.org/docs/WritingAnLLVMPass.html
> for information about interactions between passes.
>
> > How do i get/use the results of LiveValuse pass in my pass?
> > Is there documentation in the LLVM site (beside of the comments on
> > the file)?
> > Can i simply use its public function ?
>
> There are Doxygen comments which can be read either in the file itself
> or via http://llvm.org/doxygen/
>
> Dan
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090606/5a99089a/attachment.html>


More information about the llvm-dev mailing list