Displaying 20 results from an estimated 6000 matches similar to: "LLVMHello doesn't work - Loadable modules"
2018 Mar 08
2
Externally loadable Alias Analysis pass
Hello,
I am currently working with the implementation of CFL Andersen algorithmand
I am trying to do some improvements to the Andersen algorithm.
I would like to create loadable module .so and run clang with my e.g.
"cfl-anders-improved.so" to avoid the "long" way - generating IR, running
opt with my improved algorithm to generate optimalized code and then
building it.
Is a
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
2010 Aug 05
0
[LLVMdev] [PATCH] Capability of Win32.DLL with ENABLE_SHARED
Hi Takumi,
> Any feedbacks are welcome.
> Have fun!
This seems to be pretty useful addition to LLVM on windows! And it
seems the only painless way to make plugins working, yay!
For me the patch looks pretty good. One minor thing: could you please
rename SharedDir => SharedLibDir
Thanks!
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg
2010 Apr 18
3
[LLVMdev] .so file creation for new passes
Hello,
I was going through the LLVM docs "writing an LLVM Pass". Can someone tell
me how to create the Hello.so file as it is said in the document. It talks
about compiling the Hello pass using gmake. I am a Windows user (windows 7,
cmake, visual studio 9 2008). I cant use cmake here as this hello pass has
links to the llvm's solution file, I mean It uses some of the header files
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
2010 Apr 18
0
[LLVMdev] .so file creation for new passes
Hi !
The Hello world pass sources are in llvm/lib/Transform/Hello/*
If you compile llvm, the Hello library will be compiled too. It's not
installed but it's in build_directory/Debug/lib/LLVMHello.so (or in
build_directory/Release/lib/LLVMHello.so)
Olivier.
On Sun, Apr 18, 2010 at 7:35 AM, kalyan ponnala <ponnala.kalyan at gmail.com>wrote:
> Hello,
>
> I was going
2016 Mar 01
3
Problem with mingw32 DLL build
Folks, there is an issue pretty buried in the commits list that I suspect
should have wider visibility.
See r262188 and subsequent discussion. To summarize: it appears that
mingw32 was unable to correctly produce a static data member when
instantiated as a base class. The "fix" is to then explicitly instantiate
the base class separately from its use in a base class.
I think this is
2015 Sep 17
2
Problems building LLVMHello, spaces in path
I recently had a problem creating LLVMHello.
I used this CMake file
#!/bin/sh
# clangcmake.sh
cmake -G "Eclipse CDT4 - Unix Makefiles" -DLLVM_TARGETS_TO_BUILD="X86"
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE="Debug"
-DCMAKE_ECLIPSE_VERSION=4.5 -DCMAKE_CXX_COMPILER=clang++
-DCMAKE_C_COMPILER=clang ../llvm
then I ran
make LLVMHello
and the build failed
2013 Mar 26
6
[LLVMdev] Feedback required on proper dllexport/import implementation
Hello,
while improving and extending support for dllexport/import I have
noticed that the current way these are implemented is problematic and I
would like some input on how to proceed.
Currently dllexport/dllimport is treated as linkage type. This conflicts
with inlined functions because there is no linkage for the combination
of both. On first though, combining both doesn't make sense, but
2013 Apr 23
0
[LLVMdev] Feedback required on proper dllexport/import implementation
Hi Nico, Reid, and Anton,
I missed the discussion when I implemented dllexport/dllimport for our local tree. I
essentially implemented your approach#1. I was trying to avoid the various
external_linkage + some_attribute approaches because it seems that external_linkage
would imply the external linkage without the dllimport/dllexport semantics, and there
may be existing compiler codes that rely on
2011 Aug 16
3
[LLVMdev] .so file creation for new passes on Visual Studio
Hi!
I was trying to run an already build LLVM-pass ( the Hello world ) on Visual
Studio. I could locate the The Hello world pass sources in
llvm/lib/Transform/Hello/*.But when I compiled llvm using the command "cmake -G
"Visual Studio 10" ..\llvm" , I couldn't find the LLVMHello.so file in
"build_directory/Debug/lib/LLVMHello.so" neither in
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 Apr 18
2
[LLVMdev] .so file creation for new passes
> If you compile llvm, the Hello library will be compiled too. It's not
> installed but it's in build_directory/Debug/lib/LLVMHello.so (or in
> build_directory/Release/lib/LLVMHello.so)
Loadable passes are not supported on windows due to lack of OS dynamic
linking support (and I doubt they will be supported ever).
--
With best regards, Anton Korobeynikov
Faculty of Mathematics
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
Hi all,
I find all my passes are all broken with LLVM 3.4. Then I tried out the
LLVMHello.so specified in the LLVM doc,
http://llvm.org/docs/WritingAnLLVMPass.html
and it also crashes.
It seems all the functions in the pass do work, but LLVM crashes in the
doFinalization() step.
Does anyone know this problem?
Thanks!
Tianyin
2010 Nov 18
2
[LLVMdev] LLVMHello example fails with "undefined symbol"
Hi,
I am trying to learn LLVM by following this article
http://llvm.org/docs/WritingAnLLVMPass.html
I checked 2.8 version from svn, built it and now I am trying to run
Hello world example as
$ opt -load ./Release/lib/LLVMHello.so -analyze
but unfortunately it fails:
Error opening './Release/lib/LLVMHello.so':
./Release/lib/LLVMHello.so: undefined symbol:
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
Oh, you mean opt -disable-verify?
Yes, it does eliminate the crashing...
Do you know what's the problem, Eric?
Thanks a lot!
~t
On Tue, Aug 12, 2014 at 12:42 AM, Eric Christopher <echristo at gmail.com>
wrote:
> Tried opt -verify on your module?
>
> -eric
>
> On Tue, Aug 12, 2014 at 12:28 AM, Tianyin Xu <tixu at cs.ucsd.edu> wrote:
> > Hi all,
> >
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
The following patch changes export.h so that the dllimport/dllexport
attributes work with mingw/mingw-w64 and others:
- changes _declspec keyword to __declspec: the former may not be
defined by some toolchains.
- changes the _MSC_VER condition to universally _WIN32: MSVC, as well
as GCC supports this.
Attached patch: declspec.diff
Regards.
--
O.S.
-------------- next part --------------
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
no... I guess verifier runs by default and it points to the
doFinailization() function :-(
~t
On Tue, Aug 12, 2014 at 12:53 AM, Eric Christopher <echristo at gmail.com>
wrote:
> No idea, I was suggesting to just run the verifier to see if it would
> pinpoint what's broken about the module.
>
> -eric
>
> On Tue, Aug 12, 2014 at 12:52 AM, Tianyin Xu <tixu at
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
I just follow the tutorial: http://llvm.org/docs/WritingAnLLVMPass.html
Actually it's not only my module, I used the LLVMHello.so (a sample module
in the source tree) and get the crash (I didn't do anything :-P).
~t
On Tue, Aug 12, 2014 at 12:57 AM, Eric Christopher <echristo at gmail.com>
wrote:
> Weird, it definitely shouldn't be crashing. How did you create your
2014 Aug 12
2
[LLVMdev] All the passes (even the LLVMHello.so) fail at doFinalization()
The module is shipped with the source code, so it's from the developers
(not me).
The path in the source tree is:
llvm-3.4.2.src/lib/Transforms/Hello
After compiled LLVM
*#./configure --prefix=XXX
--with-binutils-include=/path-to-binutils-2.24/include
--enable-debug-symbols --enable-debug-runtime --enable-assertions
--disable-optimized; make; make install*
LLVMHello.so is generated at