[LLVMdev] AddReadAttrs vs. TargetMachine?

Nico listiges at arcor.de
Wed Nov 26 13:46:36 PST 2008


In addition to my first mail here is the error message I get from a  
linux box:

llc: symbol lookup error: /myproject/build/Release/lib/mybackend.so:  
undefined symbol: _ZN4llvm22createAddReadAttrsPassEv

Any idea?

Thanks a lot,
Nico


On Nov 25, 2008, at 5:12 PM, Nico wrote:

> Hi,
>
> I want to invoke the AddReadAttrs pass with my software backend
> (derived from TargetMachine like CBackend).
> CBackend uses addPassesToEmitWholeFile-method for invoking several
> passes. I tried to use the same method, but it failed on runtime.
> Running llc with my backend produces (mac os x 10.5 and llvm 2.4):
>
> dyld: lazy symbol binding failed: Symbol not found:
> __ZN4llvm22createAddReadAttrsPassEv
>   Referenced from: /myproject/build/Release/lib/mybackend.dylib
>   Expected in: flat namespace
>
> dyld: Symbol not found: __ZN4llvm22createAddReadAttrsPassEv
>   Referenced from: /myproject/build/Release/lib/mybackend.dylib
>   Expected in: flat namespace
>
>
> Is it even possible to invoke such a pass from a backend?
> Or is it only possible to run opt -addreadattrs first with bitcode-
> file and then llc ?
>
> Thanks,
> Nico
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list