search for: mypass

Displaying 20 results from an estimated 400 matches for "mypass".

Did you mean: bypass
2009 Dec 15
2
[LLVMdev] Running a pass
Hello LLVM, I am following the document "Writing an LLVM Pass". When I ran "opt -load ../../../Debug/lib/MyPass.so -mypass < hello.bc > /dev/null" I got the next error: ***@ubuntu:~/test$ opt -load ../../llvm/Debug/lib/MyPass.so -mypass < hello.bc > /dev/null opt: Pass.cpp:159: void<unnamed>::PassRegistrar::RegisterPass(const llvm::PassInfo&): Assertion `Inserted && "...
2009 Dec 15
0
[LLVMdev] Running a pass
Juan Carlos Martinez Santos wrote: > Hello LLVM, > > I am following the document "Writing an LLVM Pass". When I ran "opt > -load ../../../Debug/lib/MyPass.so -mypass < hello.bc > /dev/null" I > got the next error: > > ***@ubuntu:~/test$ opt -load ../../llvm/Debug/lib/MyPass.so -mypass < > hello.bc > /dev/null > opt: Pass.cpp:159: void<unnamed>::PassRegistrar::RegisterPass(const > llvm::PassInfo&): Asser...
2018 Jan 28
4
Polly Dependency Analysis in MyPass
Hello, I need to analyze dependencies in my llvm ir by using polly. i created a new pass called mypass there i added polly dependency analysis pass but when i execute this pass in gdb i get no data. Why is that so? My code is follows; namespace { struct mypass : public FunctionPass { static char ID; mypass() : FunctionPass(ID) { } virtual bool runOnFunction(Function &F) { polly::D...
2018 Jan 29
0
Polly Dependency Analysis in MyPass
How do you compile the code? Within the Polly subdirectory using CMake? How do you run your pass. Using "opt -mypass inputfile.ll"? Michael 2018-01-28 9:30 GMT-06:00 hameeza ahmed via llvm-dev <llvm-dev at lists.llvm.org>: > Hello, > > I need to analyze dependencies in my llvm ir by using polly. i created a new > pass called mypass there i added polly dependency analysis pass but when i &...
2012 Apr 12
0
[LLVMdev] Function Pass Manager
Hi again, I come back to this issue with an example. It's a pass which does nothing but throw the 'Unable to schedule' error. namespace { struct MyPass : public FunctionPass { static char ID; // Pass identification, replacement for typeid MyPass() : FunctionPass(ID) { initializeMyPassPass(*PassRegistry::getPassRegistry()); } virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequiredID(LoopSimplify...
2012 Mar 23
3
[LLVMdev] Function Pass Manager
...quiredID(LCSSAID); AU.addPreservedID(LCSSAID); AU.addRequired<ScalarEvolution>(); AU.addPreserved<ScalarEvolution>(); } When I run it with opt -load, I'm getting the following error: Unable to schedule 'Canonicalize natural loops' required by 'MyPass' Unable to schedule pass After looking at the pass manager framework, it seems that passes with lower level than FunctionPass (such as LoopPass in my particular case) cannot be scheduled on-the-fly or must be handled by specific function managers. This is not the case for module passes, i.e...
2018 Jan 29
1
Polly Dependency Analysis in MyPass
Thank You. Actually i pass polly canonaclize IR to my new created polly pass called "mypass". Mypass should first detect scops then find depedndencies as the mechanism conventional approach. Now i know how to write llvm pass here i am writing pass as loadable module first afterwards i will integrate it with opt in the end. I tried writing following code. Could you please help me...
2008 May 05
2
[LLVMdev] debugging LLVM generated executables???
...debug a binary produced with LLVM. For the life of me, I can't get any symbols into gdb and llvm-db won't even start the program nor load any useful information about it. Here's my current strategy (which isn't working): llvm-gcc -g -O0 -c -emit-llvm helloworld.c opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o llvm-ld -native -o helloworld helloworld-mypass.o gdb helloworld I've tried several variations on the above. Any suggestions? Note, what is critical about the whole thing is I must run "mypass" on the bytecode file. I'...
2008 May 06
2
[LLVMdev] debugging LLVM generated executables???
...killing your debug info. --Owen On May 5, 2008, at 8:21 PM, Mark Oskin wrote: > Hi everyone again, > > I did discover the following works (see below). However, does anyone > know of the "proper" way with LLVM? > > llvm-gcc -g -c -emit-llvm helloworld.c > opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o > llc -fast -f -o helloworld.s helloworld-mypass.o > as -o helloworld-prime.o > gcc -o helloworld helloworld-prime.o > gdb helloworld > > On May 5, 2008, at 4:17 PM, Mark Oskin wrote: > >> Hi everyone, >> >...
2008 May 06
0
[LLVMdev] debugging LLVM generated executables???
Hi everyone again, I did discover the following works (see below). However, does anyone know of the "proper" way with LLVM? llvm-gcc -g -c -emit-llvm helloworld.c opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o llc -fast -f -o helloworld.s helloworld-mypass.o as -o helloworld-prime.o gcc -o helloworld helloworld-prime.o gdb helloworld On May 5, 2008, at 4:17 PM, Mark Oskin wrote: > Hi everyone, > > I have a question that seems simple, but...
2011 Nov 30
0
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
The following code is causing an "UNREACHABLE executed!" and a stack dump, any ideas? namespace { struct myPass : public CallGraphSCCPass { static char ID; myPass() : CallGraphSCCPass(ID) {} virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.setPreservesAll(); AU.addRequired<LoopInfo>(); } virtual bool runOnSCC(CallGraphSCC &SCC) { for (CallGraphS...
2018 Jun 25
2
How to include a opt pass in clang driver
Hello, I have written a pass for the IR and I can run it with opt -load lib/LLVMMyPass.so -mypass -myarguments -S -o output.ll < output.bc I have registered my pass with the following code: static RegisterPass<MyPass> X("mypass", "MyPass Pass (with getAnalysisUsage implemented)"); How do I include the same pass in the clang driver. I tried running the p...
2018 Jan 28
0
Polly Dependency Analysis in MyPass
...polly::Dependences::AL_Access); } return false; } what to do? please help..... On Sun, Jan 28, 2018 at 8:30 PM, hameeza ahmed <hahmed2305 at gmail.com> wrote: > Hello, > > I need to analyze dependencies in my llvm ir by using polly. i created a > new pass called mypass there i added polly dependency analysis pass but > when i execute this pass in gdb i get no data. > > Why is that so? > > My code is follows; > > > > namespace { > struct mypass : public FunctionPass { > static char ID; > > mypass() : FunctionPass(ID) { > }...
2011 Nov 21
5
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
I would have thought this would have been possible. On Thu, Nov 17, 2011 at 3:49 PM, Ryan Taylor <ryta1203 at gmail.com> wrote: > So is this simply not possible? > > > On Thu, Nov 17, 2011 at 10:31 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: > >> Nick, >> >> Thanks for this info, though this didn't help my problem at all. >> >>
2008 May 07
2
[LLVMdev] debugging LLVM generated executables???
...>> >>> Hi everyone again, >>> >>> I did discover the following works (see below). However, does >>> anyone >>> know of the "proper" way with LLVM? >>> >>> llvm-gcc -g -c -emit-llvm helloworld.c >>> opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o >>> llc -fast -f -o helloworld.s helloworld-mypass.o >>> as -o helloworld-prime.o >>> gcc -o helloworld helloworld-prime.o >>> gdb helloworld >>> >>> On May 5, 2008, at 4:17 PM, Mark Oskin...
2008 May 06
0
[LLVMdev] debugging LLVM generated executables???
...; On May 5, 2008, at 8:21 PM, Mark Oskin wrote: > >> Hi everyone again, >> >> I did discover the following works (see below). However, does anyone >> know of the "proper" way with LLVM? >> >> llvm-gcc -g -c -emit-llvm helloworld.c >> opt -load=mypass.dylib -mypass < helloworld.o > helloworld-mypass.o >> llc -fast -f -o helloworld.s helloworld-mypass.o >> as -o helloworld-prime.o >> gcc -o helloworld helloworld-prime.o >> gdb helloworld >> >> On May 5, 2008, at 4:17 PM, Mark Oskin wrote: >> >&gt...
2018 Jan 28
1
Polly Dependency Analysis in MyPass
...e; > } > > > what to do? please help..... > > On Sun, Jan 28, 2018 at 8:30 PM, hameeza ahmed <hahmed2305 at gmail.com> > wrote: > >> Hello, >> >> I need to analyze dependencies in my llvm ir by using polly. i created a >> new pass called mypass there i added polly dependency analysis pass but >> when i execute this pass in gdb i get no data. >> >> Why is that so? >> >> My code is follows; >> >> >> >> namespace { >> struct mypass : public FunctionPass { >> static char ID; &g...
2013 Jul 22
0
[LLVMdev] How to additionally compile the source files in subdirectories when using Makefile?
Hi guys, I am writing a LLVM pass plugin, and just simply add a directory mypass into llvm/lib/Transforms. But since I don't hope this directory to contain too many source files, I add some subdirectories. For instance, there are 2 files inside *mypass/sub: basic.h, basic.cpp. Here is the structure of the directory llvm/lib/Transforms/mypass $tree mypass mypass ├──...
2011 Nov 30
2
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
On Tue, Nov 29, 2011 at 6:59 PM, Ryan Taylor <ryta1203 at gmail.com> wrote: > The following code is causing an "UNREACHABLE executed!" and a stack dump, > any ideas? The stack might be handy. > namespace { >   struct myPass : public CallGraphSCCPass { >   static char ID; >   myPass() : CallGraphSCCPass(ID) {} >   virtual void getAnalysisUsage(AnalysisUsage &AU) const { >            AU.setPreservesAll(); >            AU.addRequired<LoopInfo>(); >   } >   virtual bool runOnSCC(CallGraphSCC...
2018 Jan 29
2
Polly Dependency Analysis in MyPass
i put following line in CMakeLists.txt; add_subdirectory(mypass) then used make -j9 then i used following and run on canonicalize IR $ opt -load lib/LLVMmypass.so -mypass vec-sum.preopt.ll On Mon, Jan 29, 2018 at 9:39 PM, Michael Kruse <llvmdev at meinersbur.de> wrote: > 2018-01-29 10:18 GMT-06:00 hameeza ahmed <hahmed2305 at gmail....