reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
436 Target.setOSName("hurd"); 439 if (Target.isOSBinFormatMachO()) { 442 tools::darwin::setTripleTypeForMachOArchName(Target, DarwinArchName); 443 return Target; 449 tools::darwin::setTripleTypeForMachOArchName(Target, ArchName); 458 llvm::Triple LE = Target.getLittleEndianArchVariant(); 460 Target = std::move(LE); 462 llvm::Triple BE = Target.getBigEndianArchVariant(); 464 Target = std::move(BE); 469 if (Target.getArch() == llvm::Triple::tce || 470 Target.getOS() == llvm::Triple::Minix) 471 return Target; 480 AT = Target.get64BitArchVariant().getArch(); 481 if (Target.getEnvironment() == llvm::Triple::GNUX32) 482 Target.setEnvironment(llvm::Triple::GNU); 484 Target.get64BitArchVariant().getArch() == llvm::Triple::x86_64) { 486 Target.setEnvironment(llvm::Triple::GNUX32); 488 AT = Target.get32BitArchVariant().getArch(); 489 if (Target.getEnvironment() == llvm::Triple::GNUX32) 490 Target.setEnvironment(llvm::Triple::GNU); 492 Target.get32BitArchVariant().getArch() == llvm::Triple::x86) { 494 Target.setEnvironment(llvm::Triple::CODE16); 497 if (AT != llvm::Triple::UnknownArch && AT != Target.getArch()) 498 Target.setArch(AT); 503 if (Target.get32BitArchVariant().getArch() != llvm::Triple::x86) 505 << Target.str(); 511 Target.setArch(llvm::Triple::x86); 512 Target.setArchName("i586"); 513 Target.setEnvironment(llvm::Triple::UnknownEnvironment); 514 Target.setEnvironmentName(""); 515 Target.setOS(llvm::Triple::ELFIAMCU); 516 Target.setVendor(llvm::Triple::UnknownVendor); 517 Target.setVendorName("intel"); 523 if (A && Target.isMIPS()) { 526 Target = Target.get32BitArchVariant(); 526 Target = Target.get32BitArchVariant(); 527 if (Target.getEnvironment() == llvm::Triple::GNUABI64 || 528 Target.getEnvironment() == llvm::Triple::GNUABIN32) 529 Target.setEnvironment(llvm::Triple::GNU); 531 Target = Target.get64BitArchVariant(); 531 Target = Target.get64BitArchVariant(); 532 if (Target.getEnvironment() == llvm::Triple::GNU || 533 Target.getEnvironment() == llvm::Triple::GNUABI64) 534 Target.setEnvironment(llvm::Triple::GNUABIN32); 536 Target = Target.get64BitArchVariant(); 536 Target = Target.get64BitArchVariant(); 537 if (Target.getEnvironment() == llvm::Triple::GNU || 538 Target.getEnvironment() == llvm::Triple::GNUABIN32) 539 Target.setEnvironment(llvm::Triple::GNUABI64); 543 return Target;