I want to see the profile of LLVM IR programs. Does simplescalar simulator support LLVM? Are there any other simulators to do the same?
I want to see the profile of LLVM IR programs. Does simplescalar simulator support
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If Simplescalar supports ARM and x86 ELF binaries, it can be used with LLVM-compiled programs.
But if you want to do simple profiling (what time takes each part of program when running on real CPU), you can check more known profilers like:
You can’t just run a LLVM IR, because IR of LLVM is not supported in SimpleScalar or in usual profilers. IR is supported by lli and other llvm tools.
If you want to profile which branches are used and how often, there is LLVM profiling for PGO (profile-guided optimizations). There are llvm-prof utility and
utils/profile.plscript to profile LLVM IR programs.Howto from
utils/profile.plsource:Internally it is
-insert-*-profilingPass. output is instrumented IRPS there is some research paper about LLLVM profiling: llvm.org/pubs/2010-04-NeustifterProfiling.pdf