Displaying 2 results from an estimated 2 matches for "createinstructions".
Did you mean:
createinstruction
2020 Jan 06
2
[EXTERNAL] Get llvm-mca results inside opt?
...in input have already been lowered into a sequence of mca::Instruction. The only way currently to obtain an `mca::Instruction` is by calling method `mca::InstrBuilder::createInstruction()` [1] on every instruction in input (see for example how it is done in llvm-mca.cpp [2]).
Unfortunately method `createInstructions()` only works on `MCInst&`. This strongly limits the usability of llvm-mca as a library; the expectation/assumption is that instructions have already been lowered to a sequence of MCInst.
Basically the only supported scenarios are:
- We have reached code emission stage and instructions have al...
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