Hello, is wllvm applicable in the following scenario:
I have a simple hello world C code that has a few calls to the pthread library. I am interested in doing a simple analysis such as counting the number of specific RISC-V instructions in the entire program including calls to the library. I have a backend compiler pass that gets exercised for my input program. However, this pass does not count the instructions in the linked libraries (pthread, stdio), and I need this. I can compile the application using my custom LLVM + RISC-V toolchain.
The way I envision wllvm would help is as follows: use wllvm to generate the bitcode (.bc) for the entire program, which would include the code for linked libraries, and then run llc to run the custom backend passes on the bitcode.
Looking forward to your response.
Many thanks
Hello, is
wllvmapplicable in the following scenario:I have a simple hello world C code that has a few calls to the
pthreadlibrary. I am interested in doing a simple analysis such as counting the number of specific RISC-V instructions in the entire program including calls to the library. I have a backend compiler pass that gets exercised for my input program. However, this pass does not count the instructions in the linked libraries (pthread,stdio), and I need this. I can compile the application using my custom LLVM + RISC-V toolchain.The way I envision
wllvmwould help is as follows: usewllvmto generate the bitcode (.bc) for the entire program, which would include the code for linked libraries, and then runllcto run the custom backend passes on the bitcode.Looking forward to your response.
Many thanks