Prashanth Sharma
2014-Jun-14 11:02 UTC
[LLVMdev] Why llvm-pass don't work when applied on itself(passfile)
Hi, I applied some pass i.e. Hello pass on Hello.cpp(the pass file).It doesnot work as using command clang -emit-llvm -c Hello.c(Hell.cpp) does not create any .bc file .Can any body have some suggestion ? -- Thanks Prashant Sharma -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140614/e663397b/attachment.html>
John Criswell
2014-Jun-15 16:57 UTC
[LLVMdev] Why llvm-pass don't work when applied on itself(passfile)
On 6/14/14, 6:02 AM, Prashanth Sharma wrote:> Hi, > I applied some pass i.e. Hello pass on Hello.cpp(the pass file).It > doesnot work as using command clang -emit-llvm -c Hello.c(Hell.cpp) > does not create any .bc file .Can any body have some suggestion ?Is the problem that you can't create a bitcode file or that you can't get clang to run your pass? Assuming you can't generate a bitcode file, clang -emit-llvm -c <file.c> should create a file ending with .o that is an LLVM bitcode file. It will not have a .bc suffix. Regards, John Criswell> > -- > Thanks > Prashant Sharma > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140615/d46b4f04/attachment.html>
Prashanth Sharma
2014-Jun-15 17:04 UTC
[LLVMdev] Why llvm-pass don't work when applied on itself(passfile)
Let's take Hello.cpp pass file from llvm/lib/Transform/Hello. Now I want to run clang -emit-llvm -c Hello.cpp(Hello.c).Means I want to apply this pass on itself.Then there are too many errors. On Sun, Jun 15, 2014 at 10:27 PM, John Criswell <criswell at illinois.edu> wrote:> On 6/14/14, 6:02 AM, Prashanth Sharma wrote: > > Hi, > I applied some pass i.e. Hello pass on Hello.cpp(the pass file).It > doesnot work as using command clang -emit-llvm -c Hello.c(Hell.cpp) does > not create any .bc file .Can any body have some suggestion ? > > > Is the problem that you can't create a bitcode file or that you can't get > clang to run your pass? > > Assuming you can't generate a bitcode file, clang -emit-llvm -c <file.c> > should create a file ending with .o that is an LLVM bitcode file. It will > not have a .bc suffix. > > Regards, > > John Criswell > > > > -- > Thanks > Prashant Sharma > > > _______________________________________________ > LLVM Developers mailing listLLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.eduhttp://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > >-- Thanks Prashant Sharma -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140615/84ff7a94/attachment.html>
Apparently Analagous Threads
- [LLVMdev] Why llvm-pass don't work when applied on itself(passfile)
- [LLVMdev] Not able to run pass
- [LLVMdev] Not able to run pass
- [LLVMdev] Not able to run pass
- when we try to add CURL code to file channel.c we get an error - undefined reference to curl_easy_init