Lines Matching refs:StringRef
25 llvm::StringRef Arch = Triple.getArchName();
31 llvm::StringRef Arch = Triple.getArchName();
36 void arm::getARMArchCPUFromArgs(const ArgList &Args, llvm::StringRef &Arch,
37 llvm::StringRef &CPU, bool FromAs) {
47 StringRef Value = A->getValue();
58 const ArgList &Args, StringRef HWDiv,
59 std::vector<StringRef> &Features) {
67 const ArgList &Args, StringRef FPU,
68 std::vector<StringRef> &Features) {
76 static bool DecodeARMFeatures(const Driver &D, StringRef text,
77 StringRef CPU, llvm::ARM::ArchKind ArchKind,
78 std::vector<StringRef> &Features) {
79 SmallVector<StringRef, 8> Split;
80 text.split(Split, StringRef("+"), -1, false);
82 for (StringRef Feature : Split) {
89 static void DecodeARMFeaturesFromCPU(const Driver &D, StringRef CPU,
90 std::vector<StringRef> &Features) {
103 llvm::StringRef ArchName, llvm::StringRef CPUName,
104 std::vector<StringRef> &Features,
106 std::pair<StringRef, StringRef> Split = ArchName.split("+");
118 llvm::StringRef CPUName, llvm::StringRef ArchName,
119 std::vector<StringRef> &Features,
121 std::pair<StringRef, StringRef> Split = CPUName.split("+");
149 if (StringRef(A->getValue()).empty())
181 if (ABI == FloatABI::Invalid && !StringRef(A->getValue()).empty()) {
281 static bool hasIntegerMVE(const std::vector<StringRef> &F) {
290 std::vector<StringRef> &Features, bool ForAS) {
303 std::vector<StringRef> ExtensionFeatures;
330 StringRef Value = A->getValue();
348 StringRef ArchName;
349 StringRef CPUName;
356 CPUName = StringRef(WaCPU->getValue()).substr(6);
366 ArchName = StringRef(WaArch->getValue()).substr(7);
402 (void)getARMFPUFeatures(D, WaFPU, Args, StringRef(WaFPU->getValue()).substr(6),
427 StringRef(WaHDiv->getValue()).substr(8), Features);
486 auto CryptoIt = llvm::find_if(llvm::reverse(Features), [](const StringRef F) {
491 StringRef ArchSuffix = arm::getLLVMArchSuffixForARM(
496 if (ArchName.find_lower("+nosha2") == StringRef::npos &&
497 CPUName.find_lower("+nosha2") == StringRef::npos)
499 if (ArchName.find_lower("+noaes") == StringRef::npos &&
500 CPUName.find_lower("+noaes") == StringRef::npos)
611 const std::string arm::getARMArch(StringRef Arch, const llvm::Triple &Triple) {
617 MArch = StringRef(MArch).split("+").first.lower();
624 StringRef Suffix = arm::getLLVMArchSuffixForARM(CPU, MArch, Triple);
638 StringRef arm::getARMCPUForMArch(StringRef Arch, const llvm::Triple &Triple) {
643 return StringRef();
651 std::string arm::getARMTargetCPU(StringRef CPU, StringRef Arch,
656 std::string MCPU = StringRef(CPU).split("+").first.lower();
671 llvm::ARM::ArchKind arm::getLLVMArchKindForARM(StringRef CPU, StringRef Arch,
694 StringRef arm::getLLVMArchSuffixForARM(StringRef CPU, StringRef Arch,