aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCSchedule.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-09-14 20:26:46 +0000
committerAndrew Trick <atrick@apple.com>2012-09-14 20:26:46 +0000
commit99ab6c6035aec3c0e9b0cc5b76a4666fc5fd7b7b (patch)
tree61b4450cacacf4c8c86fac236218ded5f54871bd /include/llvm/MC/MCSchedule.h
parent72d048b69705f01d48bdef7b235ec96b24290767 (diff)
downloadexternal_llvm-99ab6c6035aec3c0e9b0cc5b76a4666fc5fd7b7b.zip
external_llvm-99ab6c6035aec3c0e9b0cc5b76a4666fc5fd7b7b.tar.gz
external_llvm-99ab6c6035aec3c0e9b0cc5b76a4666fc5fd7b7b.tar.bz2
TargetSchedModel interface. To be implemented...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCSchedule.h')
-rw-r--r--include/llvm/MC/MCSchedule.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/MC/MCSchedule.h b/include/llvm/MC/MCSchedule.h
index dfab130..99afb10 100644
--- a/include/llvm/MC/MCSchedule.h
+++ b/include/llvm/MC/MCSchedule.h
@@ -199,6 +199,8 @@ public:
MispredictPenalty(mp), ProcID(0), ProcResourceTable(0),
SchedClassTable(0), InstrItineraries(ii) {}
+ unsigned getProcessorID() const { return ProcID; }
+
/// Does this machine model include instruction-level scheduling.
bool hasInstrSchedModel() const {
return SchedClassTable;