[LLVMdev] Why llvm-pass don't work when applied on itself(passfile)
Prashanth Sharma
cs13m1017 at iith.ac.in
Sun Jun 15 10:04:13 PDT 2014
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>
More information about the llvm-dev
mailing list