diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-11-28 19:31:19 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2018-11-28 19:31:19 +0000 |
commit | d10ed7c8d71d86841da1b204f0383037490c4242 (patch) | |
tree | 97f12ac9a1d6c2a425d30cc0ca0175f1b03fc342 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | faee83d1025fa8e030110f875101f9e7f7cee937 (diff) | |
download | llvm-d10ed7c8d71d86841da1b204f0383037490c4242.zip llvm-d10ed7c8d71d86841da1b204f0383037490c4242.tar.gz llvm-d10ed7c8d71d86841da1b204f0383037490c4242.tar.bz2 |
Reapply "[llvm-mca] Return the total number of cycles from method Pipeline::run()."
This reapplies r347767 (originally reviewed at: https://reviews.llvm.org/D55000)
with a fix for the missing std::move of the Error returned by the call to
Pipeline::runCycle().
Below is the original commit message from r347767.
If a user only cares about the overall latency, then the best/quickest way is to
change method Pipeline::run() so that it returns the total number of cycles to
the caller.
When the simulation pipeline is run, the number of cycles (or an error) is
returned from method Pipeline::run().
The advantage is that no hardware event listener is needed for computing that
latency. So, the whole process should be faster (and simpler - at least for that
particular use case).
llvm-svn: 347795
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions