Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/
H A DMips.cpp24 StringRef &CPUName, StringRef &ABIName) { in getMipsCPUAndABI() argument
54 CPUName = A->getValue(); in getMipsCPUAndABI()
67 if (CPUName.empty() && ABIName.empty()) { in getMipsCPUAndABI()
73 CPUName = DefMips32CPU; in getMipsCPUAndABI()
77 CPUName = DefMips64CPU; in getMipsCPUAndABI()
88 ABIName = llvm::StringSwitch<const char *>(CPUName) in getMipsCPUAndABI()
116 if (CPUName.empty()) { in getMipsCPUAndABI()
118 CPUName = llvm::StringSwitch<const char *>(ABIName) in getMipsCPUAndABI()
129 StringRef CPUName, ABIName; in getMipsABILibSuffix() local
130 tools::mips::getMipsCPUAndABI(Args, Triple, CPUName, ABIName); in getMipsABILibSuffix()
[all …]
H A DM68k.cpp27 StringRef CPUName = A->getValue(); in getM68kTargetCPU() local
29 if (CPUName == "native") { in getM68kTargetCPU()
35 if (CPUName == "common") in getM68kTargetCPU()
38 return llvm::StringSwitch<std::string>(CPUName) in getM68kTargetCPU()
45 .Default(CPUName.str()); in getM68kTargetCPU()
H A DMips.h35 const llvm::Triple &Triple, StringRef &CPUName,
49 bool isFPXXDefault(const llvm::Triple &Triple, StringRef CPUName,
52 StringRef CPUName, StringRef ABIName,
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.cpp146 llvm::StringRef ArchName, llvm::StringRef CPUName, in checkARMArchName() argument
156 !DecodeARMFeatures(D, Split.second, CPUName, ArchKind, Features, in checkARMArchName()
164 llvm::StringRef CPUName, llvm::StringRef ArchName, in checkARMCPUName() argument
168 std::pair<StringRef, StringRef> Split = CPUName.split("+"); in checkARMCPUName()
170 std::string CPU = arm::getARMTargetCPU(CPUName, ArchName, Triple); in checkARMCPUName()
607 StringRef CPUName; in getARMTargetFeatures() local
616 CPUName = WaCPU->second; in getARMTargetFeatures()
619 CPUName = CPUArg->getValue(); in getARMTargetFeatures()
628 checkARMArchName(D, WaArch->first, Args, ArchName, CPUName, in getARMTargetFeatures()
634 checkARMArchName(D, ArchArg, Args, ArchName, CPUName, ExtensionFeatures, in getARMTargetFeatures()
[all …]
H A DSparc.cpp126 StringRef CPUName = A->getValue(); in getSparcTargetCPU() local
127 if (CPUName == "native") { in getSparcTargetCPU()
133 return std::string(CPUName); in getSparcTargetCPU()
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/
H A DPPCTargetParser.cpp44 StringRef normalizeCPUName(StringRef CPUName) { in normalizeCPUName() argument
50 return StringSwitch<StringRef>(CPUName) in normalizeCPUName()
75 .Default(CPUName); in normalizeCPUName()
95 StringRef getNormalizedPPCTargetCPU(const Triple &T, StringRef CPUName) { in getNormalizedPPCTargetCPU() argument
96 if (!CPUName.empty()) { in getNormalizedPPCTargetCPU()
97 if (CPUName == "native") { in getNormalizedPPCTargetCPU()
103 StringRef CPU = normalizeCPUName(CPUName); in getNormalizedPPCTargetCPU()
120 StringRef getNormalizedPPCTuneCPU(const Triple &T, StringRef CPUName) { in getNormalizedPPCTuneCPU() argument
121 return getNormalizedPPCTargetCPU(T, CPUName); in getNormalizedPPCTuneCPU()
/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()
34 ParseSubtargetFeatures(CPUName, CPUName, FS); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/
H A DLanaiSubtarget.cpp24 std::string CPUName = std::string(CPU); in initSubtargetFeatures() local
25 if (CPUName.empty()) in initSubtargetFeatures()
26 CPUName = "generic"; in initSubtargetFeatures()
28 ParseSubtargetFeatures(CPUName, /*TuneCPU*/ CPUName, FS); in initSubtargetFeatures()
/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/Sparc/
H A DSparcSubtarget.cpp32 std::string CPUName = std::string(CPU); in initializeSubtargetDependencies() local
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()
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/
H A DPPCTargetParser.h33 StringRef CPUName = "");
37 StringRef CPUName = "");
41 LLVM_ABI StringRef normalizeCPUName(StringRef CPUName);
44 getPPCDefaultTargetFeatures(const Triple &T, StringRef CPUName);
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYSubtarget.cpp27 const Triple &TT, StringRef CPUName, StringRef TuneCPUName, StringRef FS) { in initializeSubtargetDependencies() argument
29 if (CPUName.empty()) in initializeSubtargetDependencies()
30 CPUName = "generic"; in initializeSubtargetDependencies()
32 TuneCPUName = CPUName; in initializeSubtargetDependencies()
87 ParseSubtargetFeatures(CPUName, TuneCPUName, FS); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/
H A DVESubtarget.cpp32 std::string CPUName = std::string(CPU); in initializeSubtargetDependencies() local
33 if (CPUName.empty()) in initializeSubtargetDependencies()
34 CPUName = "generic"; in initializeSubtargetDependencies()
37 ParseSubtargetFeatures(CPUName, /*TuneCPU=*/CPU, FS); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCSubtarget.cpp88 std::string CPUName = std::string(CPU); in initSubtargetFeatures() local
89 if (CPUName.empty() || CPU == "generic") { in initSubtargetFeatures()
91 CPUName = "e500"; in initSubtargetFeatures()
93 CPUName = std::string(PPC::getNormalizedPPCTargetCPU(TargetTriple)); in initSubtargetFeatures()
97 if (TuneCPU.empty()) TuneCPU = CPUName; in initSubtargetFeatures()
100 InstrItins = getInstrItineraryForCPU(CPUName); in initSubtargetFeatures()
103 ParseSubtargetFeatures(CPUName, TuneCPU, FS); in initSubtargetFeatures()
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/MCTargetDesc/
H A DLanaiMCTargetDesc.cpp57 std::string CPUName = std::string(CPU); in createLanaiMCSubtargetInfo() local
58 if (CPUName.empty()) in createLanaiMCSubtargetInfo()
59 CPUName = "generic"; in createLanaiMCSubtargetInfo()
61 return createLanaiMCSubtargetInfoImpl(TT, CPUName, /*TuneCPU*/ CPUName, FS); in createLanaiMCSubtargetInfo()
/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.h111 StringRef CPUName(Name); in setCPU()
112 return isValidCPUName(CPUName); in setCPU()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYMCTargetDesc.cpp73 std::string CPUName = std::string(CPU); in createCSKYMCSubtargetInfo() local
74 if (CPUName.empty()) in createCSKYMCSubtargetInfo()
75 CPUName = "generic"; in createCSKYMCSubtargetInfo()
76 return createCSKYMCSubtargetInfoImpl(TT, CPUName, /*TuneCPU=*/CPUName, FS); in createCSKYMCSubtargetInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kSubtarget.cpp96 std::string CPUName = selectM68kCPU(TT, CPU).str(); in initializeSubtargetDependencies() local
99 ParseSubtargetFeatures(CPUName, CPUName, FS); in initializeSubtargetDependencies()
102 InstrItins = getInstrItineraryForCPU(CPUName); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSubtarget.cpp248 StringRef CPUName = MIPS_MC::selectMipsCPU(TM.getTargetTriple(), CPU); in initializeSubtargetDependencies() local
251 ParseSubtargetFeatures(CPUName, /*TuneCPU*/ CPUName, FS); in initializeSubtargetDependencies()
253 InstrItins = getInstrItineraryForCPU(CPUName); in initializeSubtargetDependencies()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonMCTargetDesc.cpp613 StringRef CPUName = Features.first; in createHexagonMCSubtargetInfo() local
617 TT, CPUName, /*TuneCPU*/ CPUName, ArchFS); in createHexagonMCSubtargetInfo()
618 if (X != nullptr && (CPUName == "hexagonv67t" || CPUName == "hexagon71t")) in createHexagonMCSubtargetInfo()
624 if (!isCPUValid(CPUName.str())) { in createHexagonMCSubtargetInfo()
625 errs() << "error: invalid CPU \"" << CPUName.str().c_str() in createHexagonMCSubtargetInfo()
649 (CPUName == "hexagonv67") || (CPUName == "hexagonv66"); in createHexagonMCSubtargetInfo()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCSubtargetInfo.cpp119 for (auto &CPUName : CPUNames) { in Help() local
123 if (CPUName == "apple-latest") in Help()
126 CPUName.str().c_str(), CPUName.str().c_str()); in Help()
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DGnu.cpp777 StringRef CPUName; in ConstructJob() local
779 mips::getMipsCPUAndABI(Args, getToolChain().getTriple(), CPUName, ABIName); in ConstructJob()
783 CmdArgs.push_back(CPUName.data()); in ConstructJob()
814 Args, getToolChain().getTriple(), CPUName, ABIName, in ConstructJob()
859 std::string CPUName = in ConstructJob() local
861 CmdArgs.push_back(Args.MakeArgString("-march=" + CPUName)); in ConstructJob()
1404 StringRef CPUName; in findMIPSMultilibs() local
1406 tools::mips::getMipsCPUAndABI(Args, TargetTriple, CPUName, ABIName); in findMIPSMultilibs()
1414 addMultilibFlag(CPUName == "mips32", "-march=mips32", Flags); in findMIPSMultilibs()
1415 addMultilibFlag(CPUName == "mips32r2" || CPUName == "mips32r3" || in findMIPSMultilibs()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/
H A DTargetDefines.h31 void defineCPUMacros(clang::MacroBuilder &Builder, llvm::StringRef CPUName,

12