similar to: [LLVMdev] Help : Writting a LLVM pass

Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] Help : Writting a LLVM pass"

2013 Jan 06
1
[LLVMdev] Basic commands of llvm : fatal error
I just started using llvm and trying to use some basic commands of llvm, when i tried to execute clang -cc1 ~/hello.c -ast-print, i'm getting the error : 'fatal error: 'stdio.h' file not found' #include<stdio.h> ^int main(){ printf("hi\n"); return 0;} 1 error generated. so please help me out. Thanks! -------------- next part
2013 Aug 06
1
[LLVMdev] How to set value for a vectortype?
I want to set value for a vectortype. It is a global variable, it contains several basic type, like float. If can set value element by element, it is better. -- Shining(史宁) Changchun, Jilin, China -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130806/706a13b1/attachment.html>
2013 Apr 27
2
[LLVMdev] How to uninstall llvm3.2
Hi I use the source code to install the llvm to my system.(ubuntu 12.10) After I make install, I want to uninstall it from my system. But I found it didn't work. Message: make: *** No rule to make target `uninstall'. Stop. So, do I need to remove the file by hand? Is there other way to do that? Thanks. -- Ning-ning Shi(史宁宁) Changchun,China Home page:shiningning.tk
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
2008 Oct 22
2
[LLVMdev] Regarding Error on Mac OSX
Hello guys, I get the following error whenever i try to check if the following pass exists. I am using Mac OSX leopard and gcc4 opt -load ../Release/lib/LLVMHello.dylib -hello Error opening '../Release/lib/LLVMHello.dylib': dlopen(../Release/lib/LLVMHello.dylib, 1): Symbol not found: __ZN4llvm12FunctionPass11runOnModuleERNS_6ModuleE Referenced from:
2013 Feb 11
2
[LLVMdev] llvm pass
hello sir, i build llvm-clang successfully in my pc but while running a pass i am geetting this error praveen at ubuntu:~/Desktop/LLVM/ build/Release$ opt -load /lib/LLVMHello.so --help Error opening '/lib/LLVMHello.so': /lib/LLVMHello.so: cannot open shared object file: No such file or directory -load request ignored. please help me to overcome the error. -------------- next part
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
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 May 02
2
[LLVMdev] Hello Pass Problem
Hi all I am trying hello pass in llvm. I have compiled and could generate LLVMHello.so but while giving the pass using opt i am getting below mentioned error. Command used: *opt-2.8 -load ../../cse231_project/llvm/llvm-2.9/Debug/lib/LLVMHello.so -hello < hello.bc* Error opening '../../cse231_project/llvm/llvm-2.9/Debug/lib/LLVMHello.so':
2014 Jul 09
2
[LLVMdev] Help with the 'WritingAnLLVMPass' tutorial
Hi, I'm making my way through the WritingAnLLVMPass tutorial and hitting the following issue. $ opt -load ../../../Debug+Asserts/lib/LLVMHello.so -hello < hello.bc > /dev/null opt: symbol lookup error: ../../../Debug+Asserts/lib/LLVMHello.so: undefined symbol: AnnotateHappensAfter nm -g ../../../Debug+Asserts/lib/LLVMHello.so U AnnotateHappensAfter ... $ ldd
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
2013 Feb 11
0
[LLVMdev] llvm pass
---------- Forwarded message ---------- From: Manoj C <manoj.chinthala at gmail.com> Date: Mon, Feb 11, 2013 at 11:05 AM Subject: llvm pass To: llvmdev at cs.uiuc.edu hello sir, i build llvm-clang successfully in my pc but while running a pass i am geetting this error praveen at ubuntu:~/Desktop/LLVM/ build/Release$ opt -load /lib/LLVMHello.so --help Error opening
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.
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
2008 Oct 23
0
[LLVMdev] Regarding Error on Mac OSX
Hi, There is reported bug about this (#2771), or at least related. http://llvm.org/bugs/show_bug.cgi?id=2771 Though it seems there is no "proper" solution known so far. The workaround is to use 'opt' from the Release/bin directory In your case: ../Release/bin/opt -load ../Release/lib/LLVMHello.dylib -hello Would probably work. Best regards Vlado > Hello guys, > >
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
2017 May 11
3
LLVMHello doesn't work - Loadable modules
When I build LLVM, the message LLVMHello ignored -- Loadable modules not supported on this platform is shown and the LLVM Hello pass doesn't work. I am using Windows. Is this correct? LLVM Hello pass works only on Linux? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL:
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()
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, > >