LLVM instrumentation
问题 Recently, I am doing some research with LLVM . At first, I want to write a pass to instrument .bc file. Thus, it will record the execution path of the basic block of my .bc file. Then, I want to term this .bc file into .exe file. Please give me your suggestions and if you have some examples for instrumentation of LLVM, please show me. 回答1: LLVM already comes with a number of instrumentation tools built-in. Take a look in the lib/Transforms/Instrumentation directory in the source tree. One of