[LLVMdev] Why llvm-pass don't work when applied on itself(passfile)
John Criswell
criswell at illinois.edu
Sun Jun 15 11:47:45 PDT 2014
On 6/15/14, 12:04 PM, Prashanth Sharma wrote:
> 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.
You need to be more specific about how you are running your pass on the
bitcode file and what errors you are seeing. No one can figure out what
the problem is with the small amount of information that you have provided.
Regards,
John Criswell
>
>
> On Sun, Jun 15, 2014 at 10:27 PM, John Criswell <criswell at illinois.edu
> <mailto: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 list
>> LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu> http://llvm.cs.uiuc.edu
>> http://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/ab40d57f/attachment.html>
More information about the llvm-dev
mailing list