Lines Matching defs:CPU
20 static FeatureBitset getFeatures(StringRef CPU, StringRef FS,
24 return Features.getFeatureBits(CPU, ProcDesc, ProcFeatures);
27 void MCSubtargetInfo::InitMCProcessorInfo(StringRef CPU, StringRef FS) {
28 FeatureBits = getFeatures(CPU, FS, ProcDesc, ProcFeatures);
29 if (!CPU.empty())
30 CPUSchedModel = &getSchedModelForCPU(CPU);
35 void MCSubtargetInfo::setDefaultFeatures(StringRef CPU, StringRef FS) {
36 FeatureBits = getFeatures(CPU, FS, ProcDesc, ProcFeatures);
45 : TargetTriple(TT), CPU(C), ProcFeatures(PF), ProcDesc(PD),
48 InitMCProcessorInfo(CPU, FS);
75 const MCSchedModel &MCSubtargetInfo::getSchedModelForCPU(StringRef CPU) const {
88 std::lower_bound(SchedModels.begin(), SchedModels.end(), CPU);
89 if (Found == SchedModels.end() || StringRef(Found->Key) != CPU) {
90 if (CPU != "help") // Don't error if the user asked for help.
91 errs() << "'" << CPU
101 MCSubtargetInfo::getInstrItineraryForCPU(StringRef CPU) const {
102 const MCSchedModel SchedModel = getSchedModelForCPU(CPU);