diff options
author | Andrew Trick <atrick@apple.com> | 2013-12-07 05:59:44 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2013-12-07 05:59:44 +0000 |
commit | dcddd7146d9d990d4a551bc3192f8c585bbdc1af (patch) | |
tree | 7a77bf95086475e66319a7bc2a78e959260a9562 /include/llvm/CodeGen/TargetSchedule.h | |
parent | a49701db7d54967aea8a511743fedcfb9b056eea (diff) | |
download | llvm-dcddd7146d9d990d4a551bc3192f8c585bbdc1af.tar.gz llvm-dcddd7146d9d990d4a551bc3192f8c585bbdc1af.tar.bz2 llvm-dcddd7146d9d990d4a551bc3192f8c585bbdc1af.tar.xz |
Factor out the SchedRemainder/SchedBoundary from GenericScheduler strategy.
These helper classes take care of the book-keeping the drives the
GenericScheduler heuristics. It is likely that developers writing
target-specific schedulers that work similarly to GenericScheduler
will want to use these helpers too. The immediate goal is to develop a
GenericPostScheduler that can run in place of the old PostRAScheduler,
but will use the new machine model.
No functionality change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/TargetSchedule.h')
-rw-r--r-- | include/llvm/CodeGen/TargetSchedule.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/TargetSchedule.h b/include/llvm/CodeGen/TargetSchedule.h index 8ef26b7ca5..19a172beea 100644 --- a/include/llvm/CodeGen/TargetSchedule.h +++ b/include/llvm/CodeGen/TargetSchedule.h @@ -98,6 +98,14 @@ public: return SchedModel.getProcResource(PIdx); } +#ifndef NDEBUG + const char *getResourceName(unsigned PIdx) const { + if (!PIdx) + return "MOps"; + return SchedModel.getProcResource(PIdx)->Name; + } +#endif + typedef const MCWriteProcResEntry *ProcResIter; // \brief Get an iterator into the processor resources consumed by this |