aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCSubtargetInfo.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-06-05 03:44:40 +0000
committerAndrew Trick <atrick@apple.com>2012-06-05 03:44:40 +0000
commitfc992996f751e0941951b6d08d8f1e80ebec1385 (patch)
tree9205e39624f5c786dee5160b882d65c7865e45b2 /lib/MC/MCSubtargetInfo.cpp
parent4eb4e5eb224b3d737558bcda8a0a369cc9d800e6 (diff)
downloadexternal_llvm-fc992996f751e0941951b6d08d8f1e80ebec1385.zip
external_llvm-fc992996f751e0941951b6d08d8f1e80ebec1385.tar.gz
external_llvm-fc992996f751e0941951b6d08d8f1e80ebec1385.tar.bz2
misched: Added MultiIssueItineraries.
This allows a subtarget to explicitly specify the issue width and other properties without providing pipeline stage details for every instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCSubtargetInfo.cpp')
-rw-r--r--lib/MC/MCSubtargetInfo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/MC/MCSubtargetInfo.cpp b/lib/MC/MCSubtargetInfo.cpp
index 86dc108..cb56a54 100644
--- a/lib/MC/MCSubtargetInfo.cpp
+++ b/lib/MC/MCSubtargetInfo.cpp
@@ -91,6 +91,8 @@ MCSubtargetInfo::getInstrItineraryForCPU(StringRef CPU) const {
return InstrItineraryData();
}
- return InstrItineraryData(Stages, OperandCycles, ForwardingPathes,
- (InstrItinerary *)Found->Value);
+ InstrItinerarySubtargetValue *V =
+ (InstrItinerarySubtargetValue *)Found->Value;
+ return InstrItineraryData(V->Props, Stages, OperandCycles, ForwardingPathes,
+ V->Itineraries);
}