harvard-acc / LLVM-Tracer

An LLVM pass to profile dynamic LLVM IR instructions and runtime values
Other
135 stars 35 forks source link

LLVM-Tracer/bin/get-labeled-stmts: Command not found #46

Open chiachia36 opened 2 years ago

chiachia36 commented 2 years ago

Hi,

I tried to run example in playground. Before I ran the example, I built LLVM Tracer by following the steps in README.md 圖片 When I ran the example in playground, here is the error message I met. 圖片

When I built LLVM Tracer, I didn't have any error message. However, there is not bin directory in LLVM-Tracer. How could I solve it? Thanks!

xyzsam commented 2 years ago

Sorry, I missed this issue. Did you solve your issue? If not, what is the value of your TRACER_HOME?

Also I note that you're not using the Docker image - doing so will solve most of these environment related issues.

chiachia36 commented 2 years ago

Sorry for the delay in responding. I try to use docker image, and it works. I try to run the example test.cc in playground. However, I am still curious about the usage of LLVM Tracer. After compiling the trace binary for test.cc, it produces few files. (full.llvm, full.s, labelmap, test-instrumented, test-opt.llvm, and test.llvm) I check these files, and I find that test-opt.llvm and test.llvm are LLVMIR files. Could you give me some hint to use LLVM-Tracer to check IR information? Thanks!