Home
last modified time | relevance | path

Searched refs:CPUName (Results 1 – 25 of 31) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/
H A DMips.cpp25 StringRef &CPUName, StringRef &ABIName) { in getMipsCPUAndABI() argument
55 CPUName = A->getValue(); in getMipsCPUAndABI()
68 if (CPUName.empty() && ABIName.empty()) { in getMipsCPUAndABI()
74 CPUName = DefMips32CPU; in getMipsCPUAndABI()
78 CPUName = DefMips64CPU; in getMipsCPUAndABI()
89 ABIName = llvm::StringSwitch<const char *>(CPUName) in getMipsCPUAndABI()
115 if (CPUName.empty()) { in getMipsCPUAndABI()
117 CPUName = llvm::StringSwitch<const char *>(ABIName) in getMipsCPUAndABI()
128 StringRef CPUName, ABIName; in getMipsABILibSuffix() local
129 tools::mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in getMipsABILibSuffix()
[all …]
H A DMips.h35 const llvm::Triple &Triple, StringRef &CPUName,
49 bool isFP64ADefault(const llvm::Triple &Triple, StringRef CPUName);
50 bool isFPXXDefault(const llvm::Triple &Triple, StringRef CPUName,
53 StringRef CPUName, StringRef ABIName,
H A DM68k.cpp31 StringRef CPUName = A->getValue(); in getM68kTargetCPU() local
33 if (CPUName == "native") { in getM68kTargetCPU()
39 if (CPUName == "common") in getM68kTargetCPU()
42 return llvm::StringSwitch<std::string>(CPUName) in getM68kTargetCPU()
49 .Default(CPUName.str()); in getM68kTargetCPU()
H A DPPC.cpp37 static std::string normalizeCPUName(StringRef CPUName, const llvm::Triple &T) { in normalizeCPUName() argument
43 if (CPUName == "generic" || CPUName == "405") in normalizeCPUName()
46 if (CPUName == "native") { in normalizeCPUName()
54 return llvm::StringSwitch<const char *>(CPUName) in normalizeCPUName()
78 .Default(CPUName.data()); in normalizeCPUName()
H A DSystemZ.cpp39 llvm::StringRef CPUName = A->getValue(); in getSystemZTargetCPU() local
41 if (CPUName == "native") { in getSystemZTargetCPU()
49 return std::string(CPUName); in getSystemZTargetCPU()
H A DARM.cpp127 llvm::StringRef ArchName, llvm::StringRef CPUName, in checkARMArchName() argument
137 !DecodeARMFeatures(D, Split.second, CPUName, ArchKind, Features, in checkARMArchName()
145 llvm::StringRef CPUName, llvm::StringRef ArchName, in checkARMCPUName() argument
149 std::pair<StringRef, StringRef> Split = CPUName.split("+"); in checkARMCPUName()
151 std::string CPU = arm::getARMTargetCPU(CPUName, ArchName, Triple); in checkARMCPUName()
568 StringRef CPUName; in getARMTargetFeatures() local
577 CPUName = WaCPU->second; in getARMTargetFeatures()
580 CPUName = CPUArg->getValue(); in getARMTargetFeatures()
589 checkARMArchName(D, WaArch->first, Args, ArchName, CPUName, in getARMTargetFeatures()
595 checkARMArchName(D, ArchArg, Args, ArchName, CPUName, ExtensionFeatures, in getARMTargetFeatures()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaSubtarget.cpp27 StringRef CPUName = CPU; in initializeSubtargetDependencies() local
28 if (CPUName.empty()) { in initializeSubtargetDependencies()
30 CPUName = "generic"; in initializeSubtargetDependencies()
36 ParseSubtargetFeatures(CPUName, CPUName, FS); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiSubtarget.cpp26 std::string CPUName = std::string(CPU); in initSubtargetFeatures() local
27 if (CPUName.empty()) in initSubtargetFeatures()
28 CPUName = "generic"; in initSubtargetFeatures()
30 ParseSubtargetFeatures(CPUName, /*TuneCPU*/ CPUName, FS); in initSubtargetFeatures()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcSubtarget.cpp32 std::string CPUName = std::string(CPU); in initializeSubtargetDependencies()
33 if (CPUName.empty()) in initializeSubtargetDependencies()
34 CPUName = (Is64Bit) ? "v9" : "v8"; in initializeSubtargetDependencies()
37 TuneCPU = CPUName; in initializeSubtargetDependencies()
40 ParseSubtargetFeatures(CPUName, TuneCPU, FS); in initializeSubtargetDependencies()
31 std::string CPUName = std::string(CPU); initializeSubtargetDependencies() local
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430Subtarget.cpp46 StringRef CPUName = CPU; in initializeSubtargetDependencies() local
47 if (CPUName.empty()) in initializeSubtargetDependencies()
48 CPUName = "msp430"; in initializeSubtargetDependencies()
50 ParseSubtargetFeatures(CPUName, /*TuneCPU*/ CPUName, FS); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCSubtarget.cpp80 std::string CPUName = std::string(CPU); in initSubtargetFeatures() local
81 if (CPUName.empty() || CPU == "generic") { in initSubtargetFeatures()
84 CPUName = "ppc64le"; in initSubtargetFeatures()
86 CPUName = "e500"; in initSubtargetFeatures()
88 CPUName = "generic"; in initSubtargetFeatures()
92 if (TuneCPU.empty()) TuneCPU = CPUName; in initSubtargetFeatures()
95 InstrItins = getInstrItineraryForCPU(CPUName); in initSubtargetFeatures()
98 ParseSubtargetFeatures(CPUName, TuneCPU, FS); in initSubtargetFeatures()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYSubtarget.cpp26 const Triple &TT, StringRef CPUName, StringRef TuneCPUName, StringRef FS) { in initializeSubtargetDependencies() argument
28 if (CPUName.empty()) in initializeSubtargetDependencies()
29 CPUName = "generic"; in initializeSubtargetDependencies()
31 TuneCPUName = CPUName; in initializeSubtargetDependencies()
86 ParseSubtargetFeatures(CPUName, TuneCPUName, FS); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVESubtarget.cpp34 std::string CPUName = std::string(CPU); in initializeSubtargetDependencies() local
35 if (CPUName.empty()) in initializeSubtargetDependencies()
36 CPUName = "generic"; in initializeSubtargetDependencies()
39 ParseSubtargetFeatures(CPUName, /*TuneCPU=*/CPU, FS); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiMCTargetDesc.cpp56 std::string CPUName = std::string(CPU); in createLanaiMCSubtargetInfo() local
57 if (CPUName.empty()) in createLanaiMCSubtargetInfo()
58 CPUName = "generic"; in createLanaiMCSubtargetInfo()
60 return createLanaiMCSubtargetInfoImpl(TT, CPUName, /*TuneCPU*/ CPUName, FS); in createLanaiMCSubtargetInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYMCTargetDesc.cpp74 std::string CPUName = std::string(CPU); in createCSKYMCSubtargetInfo() local
75 if (CPUName.empty()) in createCSKYMCSubtargetInfo()
76 CPUName = "generic"; in createCSKYMCSubtargetInfo()
77 return createCSKYMCSubtargetInfoImpl(TT, CPUName, /*TuneCPU=*/CPUName, FS); in createCSKYMCSubtargetInfo()
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DCSKY.cpp45 StringRef CPUName = "ck810"; in getTargetDefines() local
49 CPUName = CPU; in getTargetDefines()
54 if (ArchName != CPUName) { in getTargetDefines()
55 Builder.defineMacro("__" + CPUName.upper() + "__"); in getTargetDefines()
56 Builder.defineMacro("__" + CPUName.lower() + "__"); in getTargetDefines()
H A DBPF.h113 StringRef CPUName(Name); in setCPU()
114 return isValidCPUName(CPUName); in setCPU()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kSubtarget.cpp89 std::string CPUName = selectM68kCPU(TT, CPU).str(); in initializeSubtargetDependencies() local
92 ParseSubtargetFeatures(CPUName, CPUName, FS); in initializeSubtargetDependencies()
95 InstrItins = getInstrItineraryForCPU(CPUName); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSubtarget.cpp243 StringRef CPUName = MIPS_MC::selectMipsCPU(TM.getTargetTriple(), CPU); in initializeSubtargetDependencies() local
246 ParseSubtargetFeatures(CPUName, /*TuneCPU*/ CPUName, FS); in initializeSubtargetDependencies()
248 InstrItins = getInstrItineraryForCPU(CPUName); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCTargetDesc.cpp571 StringRef CPUName = Features.first; in createHexagonMCSubtargetInfo() local
575 TT, CPUName, /*TuneCPU*/ CPUName, ArchFS); in createHexagonMCSubtargetInfo()
576 if (X != nullptr && (CPUName == "hexagonv67t" || CPUName == "hexagon71t")) in createHexagonMCSubtargetInfo()
582 if (!isCPUValid(CPUName.str())) { in createHexagonMCSubtargetInfo()
583 errs() << "error: invalid CPU \"" << CPUName.str().c_str() in createHexagonMCSubtargetInfo()
607 (CPUName == "hexagonv67") || (CPUName == "hexagonv66"); in createHexagonMCSubtargetInfo()
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DTargets.h38 void defineCPUMacros(clang::MacroBuilder &Builder, llvm::StringRef CPUName,
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DGnu.cpp858 StringRef CPUName; in ConstructJob() local
860 mips::getMipsCPUAndABI(Args, getToolChain().getTriple(), CPUName, ABIName); in ConstructJob()
864 CmdArgs.push_back(CPUName.data()); in ConstructJob()
895 Args, getToolChain().getTriple(), CPUName, ABIName, in ConstructJob()
940 std::string CPUName = systemz::getSystemZTargetCPU(Args); in ConstructJob() local
941 CmdArgs.push_back(Args.MakeArgString("-march=" + CPUName)); in ConstructJob()
1526 StringRef CPUName; in findMIPSMultilibs() local
1528 tools::mips::getMipsCPUAndABI(Args, TargetTriple, CPUName, ABIName); in findMIPSMultilibs()
1536 addMultilibFlag(CPUName == "mips32", "-march=mips32", Flags); in findMIPSMultilibs()
1537 addMultilibFlag(CPUName == "mips32r2" || CPUName == "mips32r3" || in findMIPSMultilibs()
[all …]
H A DOpenBSD.cpp70 StringRef CPUName; in ConstructJob() local
72 mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in ConstructJob()
75 CmdArgs.push_back(CPUName.data()); in ConstructJob()
H A DFreeBSD.cpp56 StringRef CPUName; in ConstructJob() local
58 mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in ConstructJob()
61 CmdArgs.push_back(CPUName.data()); in ConstructJob()
H A DLinux.cpp181 StringRef CPUName; in getOSLibDir() local
183 tools::mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in getOSLibDir()
184 if (CPUName == "mips32r6") in getOSLibDir()
186 if (CPUName == "mips32r2") in getOSLibDir()

12