[PATCH] D31599: [CodeGen] Add Performance Monitor

Sebastian Pop via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 3 06:52:42 PDT 2017


sebpop added inline comments.


================
Comment at: lib/CodeGen/PerfMonitor.cpp:58
+Function *PerfMonitor::getRDTSCP() {
+  const char *Name = "llvm.x86.rdtscp";
+  Function *F = M->getFunction(Name);
----------------
So this code will only work on x86?
Could this be made to work on other archs?
If not, we would need to disable the perf monitoring code for all other --target's.


https://reviews.llvm.org/D31599





More information about the llvm-commits mailing list