Displaying 2 results from an estimated 2 matches for "summaryview".
2019 Dec 24
2
Get llvm-mca results inside opt?
Hi,
I am trying to generate performance models for specific pieces of code like an omp.outlined function. Lets say I have the following code:
start_collect_parallel_for_data(-1.0,-1.0,-1.0, size, “tag for this region”);
#pragma omp parallel for
for(auto i = 0; i < size; ++i){
// … do work
}
stop_collecting_parallel_for_data();
The omp region will get outlined into a new function and what I
2020 Jan 06
2
[EXTERNAL] Get llvm-mca results inside opt?
...ce the original code with the new MCA information.
Since this solution is not awesome and we may have many functions in a given TU that we care about I was hoping to find a better way.
To compute the throughput indicators you would need to implement a logic similar to the one implemented by class SummaryView [3]. Ideally, most of that logic could be factored out into a helper class in order to help your particular use case and possibly avoid code duplication.
Thanks, I’ll look into it.
I hope it helps,
-Andrea
[1] https://github.com/llvm-mirror/llvm/blob/master/include/llvm/MCA/InstrBuilder.h
[2] htt...