In the OpenMP GPU runtime we want to track kernel times and splice them into the time profile of the runtime. To this end we need access to some internals of the Time Profile interface. No functional change intended.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Let's address these issues first and then we look again.
llvm/include/llvm/Support/TimeProfiler.h | ||
---|---|---|
98 | llvm::Entry is not a great way to export this. | |
211 | This doesn't need to be exposed. That's what the getter is for. |
llvm::Entry is not a great way to export this.
Rename it, put it into a namespace, or make it part of the TimeTraceProfiler. The last option is probably the nicest.
You also managed to delete the few comments, e.g. for the Entry class, and down below introduces a typo (or reverted a fix for it).