xur added a comment. These .ll files are the complete program IR that can generate the profiles. I can embed the commands in the comment of the .ll files. Just to make sure: You want a separated shell script in the same director to generate the profiles? Thanks, -Rong http://reviews.llvm.org/D12781