Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] viewCFG call from opt loaded shared lib"
2011 Feb 11
0
[LLVMdev] Function::viewCFG() undefined reference
Hello all,
I am getting an undefined reference to Function::viewCFG()
I have a function list iterator F and I am trying to get the CFG through
F->viewCFG();
other function calls through the F pointer are working.
- I have included the libraries: pthread, ffi, dl, m, LLVMAsmParse, LLVMCore, LLVMSupport, LLVMSystem.
- I have dot and gv in my path, and I have reconfigured and rebuilt LLVM
2009 Jan 04
0
[LLVMdev] link problem with llvm-pass
Dear Nico,
I believe you need to add LLVMipa to the list of libraries to link into
your tool. FindUsedTypes::ID is defined in lib/Analysis/IPA.
I think it would be LLVMipa.a if you added it to LLVMLIBS and ipa if you
added it to LINK_COMPONENTS.
-- John T.
Nico wrote:
> Hi,
>
> I tried to implement an 'llc'-like tool in my project to manage
> different passes and a
2010 Aug 05
3
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
Anton,
Thanks for your comment.
2nd patch attached.
- s/SharedDir/SharedLibDir/g
- move prefix=cyg sunk into if(cygwin or mingw)
arigato gozaimasu...Takumi
* Additional issues
- You may build LLVMHello.dll but I don't modify lib/Transforms/Makefile.
Because making LLVMHello.dll requires the library LLVM.dll,
but it oughta be on the way to making libs at building
2009 Jan 04
1
[LLVMdev] link problem with llvm-pass
Dear John,
thanks! I was irritated by the path of the header file/declaration.
It is not like the definition in a subdirectory. Sorry my fault.
Is there an overview where classes and link options are mapped to each
other?
Kind regards,
Nico
On Jan 4, 2009, at 4:07 PM, John Criswell wrote:
> Dear Nico,
>
> I believe you need to add LLVMipa to the list of libraries to link
>
2009 Jan 02
2
[LLVMdev] link problem with llvm-pass
Hi,
I tried to implement an 'llc'-like tool in my project to manage
different passes and a target machine.
I use given llvm project structure to avoid problems but I have a link
problem and don't know how to solve it:
The target machine uses 'FindUsedTypes' pass and when I try to use my
target machine in the tool I got "Undefined symbols:
2006 Aug 28
0
[LLVMdev] opt -load error on Darwin
On Mon, 28 Aug 2006, Jing Yu wrote:
I don't really have any ideas beyond what Reid has already said, but:
> pollux:~/test jingyu$ opt -load
> /Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so -help
> Error opening '/Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so':
> Can't open :/Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so:
>
2006 Aug 28
3
[LLVMdev] opt -load error on Darwin
Thank you, Reid.
I have applied tha patch to ltdl.c ltdl.h. The problem still exists. I
looked up the symbol on libLLVMCore.a, and found three U-entries and one
T-entry. However, the Darwin linker is not able to find the T-entry. Any
idea?
pollux:~/test jingyu$ opt -load
/Users/jingyu/tools/build-ppc/Release/lib/LLVMHello.so -help
Error opening
2011 Sep 14
0
[LLVMdev] LLVMHello pass compile error under Cygwin
Graham, good morning.
To build LLVMHello on cygming, you should configure llvm with --enable-shared .
Even with enable-shared, you might build lib/Transforms/Hello manually.
(yeah, on cygming, LLVMHello should depend on tools/llvm-shlib)
And, you'd be better to build with --enable-optimized.
With enable-shared, llvm-shlib tends to fail with too many debug symbols.
HTH, ...Takumi
2011 Sep 14
2
[LLVMdev] LLVMHello pass compile error under Cygwin
I've built LLVM/Clang from svn under Cygwin on Windows 7. I'd like to
build on the LLVMHello pass example, however, when I try:
$ cd $LLVM/lib/Transforms/Hello
$ make
I receive a large number of errors which start with:
llvm[0]: Linking Debug+Asserts Loadable Module LLVMHello.dll
/cygdrive/c/Users/Graham/home/projects/llvm_cygwin/lib/Transforms/Hello/Debug+Asserts/Hello.o:
In function
2009 Nov 01
1
[LLVMdev] Issue compiling LLVM 2.6 on Windows with MinGW
Hello,
I downloaded LLVM 2.6 and was attempting to compile it with TDM-GCC
4.4.1-tdm2-sjlj + cmake 2.6.4 and this happened:
=============Console===================
C:\projects\game-editor\LLVM\build-root>mingw32-make
[ 2%] Built target LLVMSystem
[ 5%] Built target LLVMSupport
[ 7%] Built target tblgen
[ 7%] Built target intrinsics_gen
[ 10%] Built target LLVMCore
[ 12%] Built target
2011 Sep 15
2
[LLVMdev] LLVMHello pass compile error under Cygwin
Thankyou Takumi,
Without --enable-optimized I get a"File too big" error from the linker:
...
llvm[1]: Linking all LLVMLibs together for LLVM-3.0svn
/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
/cygdrive/c/Users/Graham/home/projects/llvm_cygwin3/tools/llvm-shlib/Debug+Asserts/LLVM-3.0svn.a.o:
too many sections (59747)
2010 Aug 05
2
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
Good summer, all!
This patch enables ENABLE_SHARED=1 to build DLL based LLVM toolchain.
I have checked this on Cygwin-1.5, Cygwin-1.7, mingw(msysgit) and
mingw-cross-fedora12.
I can separate this patch into some parts; cleanups, adding
definitions and adding rules.
Any feedbacks are welcome.
Have fun!
...Takumi
* Pros
- reduction of linking time of toolchain.
- capability of -load
2010 Jul 22
1
[LLVMdev] Is there a guide to LLVM's components?
> > I found an LLVM dependency graph at
> >
> > https://llvm.org/svn/llvm-
> project/llvm/tags/RELEASE_16/docs/UsingLibraries.html#dependencies
> >
> > but it's really messy and hard to follow. From that graph I made a
> > cleaner graph by hand (attached)... sorry about the fax-quality
> > scan. But I have some questions about it...
> >
>
2006 Aug 28
0
[LLVMdev] opt -load error on Darwin
On Sun, 2006-08-27 at 21:57 -0500, Jing Yu wrote:
> Hi,
>
Hi Jing,
> I am following the instructions on Writing an LLVM Pass on
> Darwin(8.7.0) powerpc. The loadable library is built. But "opt -load
> " gives error saying "Symbol not found". I am using LLVM 1.8. Could
> someone tell me how to fix it? I have tried the same procedure on
> Pentium4 Redhat9.
2006 Aug 28
2
[LLVMdev] opt -load error on Darwin
Hi,
I am following the instructions on Writing an LLVM Pass on Darwin(8.7.0)
powerpc. The loadable library is built. But "opt -load " gives error saying
"Symbol not found". I am using LLVM 1.8. Could someone tell me how to fix
it? I have tried the same procedure on Pentium4 Redhat9. Everything is ok
there. So I think there must be some specific problem on Darwin that I
should
2009 Jul 19
2
[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
Thanks, Shu,
I guess I haven't updated since my post went out.
There are actually 2 problems:
1. mis-compilation:
My LLVM-2.5 turned out to be mis-compiled using gcc-4.4.0 (surprise to
me) on Debian4-32b.
I tried a few different compilers, and gcc-4.0.4 (a relatively old one,
again surprised me) seems to work out fine.
Question: is there a good/quick/reliable way to figure out whether a
2009 Jul 20
0
[LLVMdev] LLVM Hello Pass load error when using opt -load Hello.so
> Question: is there a good/quick/reliable way to figure out whether a
> certain gcc compiler will mis-compile?
http://llvm.org/docs/GettingStarted.html#brokengcc lists documented
problems with different versions of gcc.
I use gcc-4.3.2 with ubuntu 8.10 and haven't had any problems
> 2. I ran into exactly the problem you pointed out. (Thank you)
> The Makefile needs some update
2007 Aug 06
0
[LLVMdev] clang builds on Sparc/Linux!
On Tue, 24 Jul 2007 wilsonk at cpsc.ucalgary.ca wrote:
Hi Kelly,
Sorry for the delay, I'm way behind in email :(
> I built llvm-2.0 (the svn version) by just typing "./configure;make". I
> then downloaded clang from the svn repository (revision 40382) and changed
> to it's directory under .../llvm/tools/clang. I did a "make" without
> incident for clang,
2014 Apr 18
2
[LLVMdev] "lazy symbol binding failed" with dynamically loaded pass in opt
Hi Tim, Dear List,
Am 18.04.2014 um 10:08 schrieb Tim Northover <t.p.northover at gmail.com>:
> One common problem (the only one I really know about, unfortunately)
> is trying to load a module into Xcode's copy of "opt" rather than one
> from the same tree as your module.
I just double-checked that I use the opt executable from the same tree I use to build the
2009 Oct 12
1
[LLVMdev] current state of building analysis passes out-of-tree with llvm-config?
Hi,
what's the current state of being able to build simple analysis passes
out-of-tree against only llvm headers and libraries with llvm-config?
I see that clang and klee do not use llvm-config but for example
rubinius does. Should both approaches be documented?
Currently for example docs/WritingAnLLVMPass.html says
"you need to create a new directory somewhere in the LLVM source