Lines Matching refs:StringRef
134 Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) {
179 Triple::ArchType Triple::getArchTypeForDarwinArchName(StringRef Str) {
226 StringRef Str = getArchName();
257 Triple::ArchType Triple::ParseArch(StringRef ArchName) {
309 Triple::VendorType Triple::ParseVendor(StringRef VendorName) {
320 Triple::OSType Triple::ParseOS(StringRef OSName) {
361 Triple::EnvironmentType Triple::ParseEnvironment(StringRef EnvironmentName) {
385 std::string Triple::normalize(StringRef Str) {
387 SmallVector<StringRef, 4> Components;
388 for (size_t First = 0, Last = 0; Last != StringRef::npos; First = Last + 1) {
433 StringRef Comp = Components[Idx];
464 StringRef CurrentComponent(""); // The empty component.
482 StringRef CurrentComponent(""); // The empty component.
521 StringRef Triple::getArchName() const {
522 return StringRef(Data).split('-').first; // Isolate first component
525 StringRef Triple::getVendorName() const {
526 StringRef Tmp = StringRef(Data).split('-').second; // Strip first component
530 StringRef Triple::getOSName() const {
531 StringRef Tmp = StringRef(Data).split('-').second; // Strip first component
536 StringRef Triple::getEnvironmentName() const {
537 StringRef Tmp = StringRef(Data).split('-').second; // Strip first component
542 StringRef Triple::getOSAndEnvironmentName() const {
543 StringRef Tmp = StringRef(Data).split('-').second; // Strip first component
547 static unsigned EatNumber(StringRef &Str) {
564 StringRef OSName = getOSName();
567 StringRef OSTypeName = getOSTypeName(getOS());
610 void Triple::setArchName(StringRef Str) {
621 void Triple::setVendorName(StringRef Str) {
625 void Triple::setOSName(StringRef Str) {
633 void Triple::setEnvironmentName(StringRef Str) {
638 void Triple::setOSAndEnvironmentName(StringRef Str) {