[LLVMdev] regarding LLVM Pass

Gondi, Kalpana kgondi2 at uic.edu
Wed Mar 23 21:15:33 PDT 2011


Hi All,
 I am a newbie to LLVM and I would like to write an LLVM pass where I can
transform C code. Say, I would like to introduce a print statement after
every loop. Could you please provide me any hints as how I should proceed
to write such transformation using LLVM?
Also, I would like to analyze C Code and transform. Say, I would like to
use Alias analysis and decide to introduce print statements for some
pointer variables inside the code itself. Any suggestion as where I should
start?

I've been going through documentation like, writing an LLVM Pass , but I
guess, I need much more exposure than just going through such
documentation.

Also, do I need to look at CLANG? How is it different from writing the
LLVM pass to perform the above mentioned tasks?

Finally, did anyone compile Linux kernel using LLVM and booted the same? I
am facing the error like "unsupported inline asm:...".

Please help me with all these. And I appreciate your support and patience.

Thanks,
GK






More information about the llvm-dev mailing list