Displaying 1 result from an estimated 1 matches for "7bf9d950".
2017 Nov 09
2
Get basic-block cycle cost from LLVM
Hi all,
I'm interested in obtaining the cycles spend by the CPU from LLVM and i was
wondering if this was possible to obtain this with the scheduling
information from LLVM. (For the cortex-m0 in particular).
I found the following function : getInstrLatency() in the TargetInstrInfo
class.
If i sum the latencies of the instructions in a basic block i suppose i
will get the total cycle cost