Home
last modified time | relevance | path

Searched refs:getTriple (Results 1 – 25 of 192) sorted by relevance

12345678

/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DLinux.cpp355 if (getTriple().isAndroid()) in GetDefaultRuntimeLibType()
361 if (getTriple().isAndroid()) in GetDefaultDwarfVersion()
367 if (getTriple().isAndroid()) in GetDefaultCXXStdlibType()
388 if (getTriple().isAndroid()) { in computeSysRoot()
397 if (getTriple().isCSKY()) { in computeSysRoot()
405 GCCInstallation.getTriple().str() + "/libc") in computeSysRoot()
412 if (!GCCInstallation.isValid() || !getTriple().isMIPS()) in computeSysRoot()
420 const StringRef TripleStr = GCCInstallation.getTriple().str(); in computeSysRoot()
440 const llvm::Triple &Triple = getTriple(); in getDynamicLinker()
638 (!getTriple().isMusl() || DriverArgs.hasArg(options::OPT_nostdlibinc))) in AddClangSystemIncludeArgs()
[all …]
H A DCommonArgs.cpp801 << A->getSpelling() << Triple.getTriple(); in isTLSDESCEnabled()
804 << A->getSpelling() << V << Triple.getTriple(); in isTLSDESCEnabled()
812 const llvm::Triple &Triple = ToolChain.getTriple(); in addLTOOptions()
1171 return TC->getTriple().isAMDGPU(); in addOpenMPDeviceLibC()
1177 return TC->getTriple().isNVPTX(); in addOpenMPDeviceLibC()
1272 if (!TC.getTriple().isKnownWindowsMSVCEnvironment()) { in addFortranRuntimeLibs()
1276 bool AsNeeded = !TC.getTriple().isOSAIX(); in addFortranRuntimeLibs()
1299 if (TC.getTriple().isKnownWindowsMSVCEnvironment()) in addFortranRuntimeLibraryPath()
1329 if (TC.getTriple().isOSSolaris() && !LinkerIsGnuLd) in addSanitizerDynamicList()
1343 assert(!TC.getTriple().isOSAIX() && in addAsNeededOption()
[all …]
H A DNetBSD.cpp35 const llvm::Triple &Triple = ToolChain.getTriple(); in ConstructJob()
121 const llvm::Triple &Triple = ToolChain.getTriple(); in ConstructJob()
526 llvm::Triple::ArchType TArch = getTriple().getArch(); in GetExceptionModel()
534 const bool IsX86 = getTriple().getArch() == llvm::Triple::x86; in getSupportedSanitizers()
535 const bool IsX86_64 = getTriple().getArch() == llvm::Triple::x86_64; in getSupportedSanitizers()
567 VersionTuple OsVersion = getTriple().getOSVersion(); in addClangTargetOptions()
570 getTriple().getArch() == llvm::Triple::aarch64 || in addClangTargetOptions()
571 getTriple().getArch() == llvm::Triple::aarch64_be || in addClangTargetOptions()
572 getTriple().getArch() == llvm::Triple::arm || in addClangTargetOptions()
573 getTriple().getArch() == llvm::Triple::armeb || in addClangTargetOptions()
[all …]
H A DHIPAMD.cpp62 auto OptionalGpuArch = parseTargetID(TC.getTriple(), TargetID, &FeatureMap); in shouldSkipSanitizeOption()
128 amdgpu::getAMDGPUTargetFeatures(D, TC.getTriple(), Args, Features); in constructLldCommand()
245 if (getToolChain().getTriple().isSPIRV()) in ConstructJob()
266 << A->getAsString(Args) << getTriple().str(); in HIPAMDToolChain()
307 if (getTriple().isSPIRV() && in addClangTargetOptions()
344 assert(getTriple().getArch() == llvm::Triple::amdgcn || in buildLinker()
345 getTriple().getArch() == llvm::Triple::spirv64); in buildLinker()
401 (getTriple().getArch() == llvm::Triple::spirv64 && in getDeviceLibs()
402 getTriple().getVendor() == llvm::Triple::AMD)) in getDeviceLibs()
H A DOHOS.cpp160 std::string MultiarchTriple = getMultiarchTriple(getTriple()); in OHOS()
201 const llvm::Triple &Triple = getTriple(); in AddClangSystemIncludeArgs()
246 makePath({IncPath, getMultiarchTriple(getTriple()), "c++", "v1"}); in AddClangCXXStdlibIncludeArgs()
281 std::string ArchRoot = makePath({SysRoot, getMultiarchTriple(getTriple())}); in computeSysRoot()
289 const llvm::Triple &Triple = getTriple(); in getRuntimePaths()
312 const llvm::Triple &Triple = getTriple(); in getDynamicLinker()
343 llvm::sys::path::append(Path, "lib", getMultiarchTriple(getTriple()), in getCompilerRT()
409 llvm::Triple Triple = getTriple(); in getArchSpecificLibPaths()
H A DFreeBSD.cpp35 const llvm::Triple &Triple = ToolChain.getTriple(); in ConstructJob()
136 const llvm::Triple &Triple = ToolChain.getTriple(); in ConstructJob()
227 if (ToolChain.getTriple().isMIPS()) { in ConstructJob()
291 unsigned Major = ToolChain.getTriple().getOSMajorVersion(); in ConstructJob()
450 unsigned Major = getTriple().getOSMajorVersion(); in AddCXXStdlibLibArgs()
486 const bool IsAArch64 = getTriple().getArch() == llvm::Triple::aarch64; in getSupportedSanitizers()
487 const bool IsX86 = getTriple().getArch() == llvm::Triple::x86; in getSupportedSanitizers()
488 const bool IsX86_64 = getTriple().getArch() == llvm::Triple::x86_64; in getSupportedSanitizers()
489 const bool IsMIPS64 = getTriple().isMIPS64(); in getSupportedSanitizers()
H A DPS4CPU.cpp35 assert(TC.getTriple().isPS()); in addProfileRTArgs()
86 assert(TC.getTriple().isPS()); in addSanitizerArgs()
221 << "-fuse-ld" << TC.getTriple().str(); in ConstructJob()
321 << "-fuse-ld" << TC.getTriple().str(); in ConstructJob()
447 << A->getAsString(DriverArgs) << getTriple().str(); in addClangTargetOptions()
453 if (getTriple().isPS5() && in addClangTargetOptions()
459 if (getTriple().isPS5() && in addClangTargetOptions()
481 else if (getTriple().isPS4()) in addClangTargetOptions()
498 else if (getTriple().isPS4()) in addClangTargetOptions()
H A DWebAssembly.cpp75 if (ToolChain.getTriple().isArch64Bit()) in ConstructJob()
223 if (getTriple().getOS() == llvm::Triple::UnknownOS) { in WebAssembly()
499 if (getTriple().getOS() != llvm::Triple::UnknownOS) { in AddClangSystemIncludeArgs()
501 getMultiarchTriple(D, getTriple(), D.SysRoot); in AddClangSystemIncludeArgs()
542 if (getTriple().isOSEmscripten()) { in getSupportedSanitizers()
562 getMultiarchTriple(D, getTriple(), SysRoot); in addLibCxxIncludePaths()
563 bool IsKnownOs = (getTriple().getOS() != llvm::Triple::UnknownOS); in addLibCxxIncludePaths()
590 getMultiarchTriple(D, getTriple(), SysRoot); in addLibStdCXXIncludePaths()
591 bool IsKnownOs = (getTriple().getOS() != llvm::Triple::UnknownOS); in addLibStdCXXIncludePaths()
H A DBareMetal.cpp249 return computeBaseSysRoot(getDriver(), getTriple()); in computeSysRoot()
478 if (TC.getTriple().isRISCV() && Args.hasArg(options::OPT_mno_relax)) in ConstructJob()
521 if (TC.getTriple().isRISCV()) in ConstructJob()
527 if (isARMBareMetal(TC.getTriple())) in ConstructJob()
542 const bool IsX86_64 = getTriple().getArch() == llvm::Triple::x86_64; in getSupportedSanitizers()
543 const bool IsAArch64 = getTriple().getArch() == llvm::Triple::aarch64 || in getSupportedSanitizers()
544 getTriple().getArch() == llvm::Triple::aarch64_be; in getSupportedSanitizers()
545 const bool IsRISCV64 = getTriple().getArch() == llvm::Triple::riscv64; in getSupportedSanitizers()
H A DGnu.cpp92 if (getToolChain().getTriple().isOSDarwin()) { in ConstructJob()
372 const bool isOHOSFamily = ToolChain.getTriple().isOHOSFamily(); in ConstructJob()
373 const bool isAndroid = ToolChain.getTriple().isAndroid(); in ConstructJob()
374 const bool IsIAMCU = ToolChain.getTriple().isOSIAMCU(); in ConstructJob()
375 const bool IsVE = ToolChain.getTriple().isVE(); in ConstructJob()
379 ToolChain.getTriple().hasEnvironment() || in ConstructJob()
380 (ToolChain.getTriple().getVendor() != llvm::Triple::MipsTechnologies); in ConstructJob()
419 if (const char *LDMOption = getLDMOption(ToolChain.getTriple(), Args)) { in ConstructJob()
613 if (getToolChain().getTriple().getArch() == llvm::Triple::sparc) { in ConstructJob()
701 if (getToolChain().getTriple().isOSSolaris()) in ConstructJob()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DAMDGPU.h55 return getTriple().getArch() == llvm::Triple::amdgcn || in hasFP64()
66 return getTriple().getArch() == llvm::Triple::amdgcn; in hasFastFMA()
70 return getTriple().getArch() == llvm::Triple::amdgcn || in hasFMAF()
79 return getTriple().getArch() == llvm::Triple::amdgcn || in hasLDEXPF()
99 if (isR600(getTriple())) in getPointerWidthV()
115 return getTriple().getArch() == llvm::Triple::amdgcn ? 64 : 32; in getMaxPointerWidth()
118 bool hasBFloat16Type() const override { return isAMDGCN(getTriple()); } in hasBFloat16Type()
259 if (getTriple().getArch() == llvm::Triple::amdgcn) in isValidCPUName()
267 if (getTriple().getArch() == llvm::Triple::amdgcn) { in setCPU()
286 bool IsAMDGCN = isAMDGCN(getTriple()); in setSupportedOpenCLOpts()
[all …]
H A DAMDGPU.cpp185 fillAMDGPUFeatureMap(CPU, getTriple(), Features); in initFeatureMap()
190 auto HasError = insertWaveSizeFeature(CPU, getTriple(), Features); in initFeatureMap()
207 if (isAMDGCN(getTriple())) in fillValidCPUList()
226 resetDataLayout(isAMDGCN(getTriple()) ? DataLayoutStringAMDGCN in AMDGPUTargetInfo()
266 !isAMDGCN(getTriple())); in adjust()
279 if (isAMDGCN(getTriple())) in getTargetDefines()
290 (isAMDGCN(getTriple()) ? getArchNameAMDGCN(GPUKind) in getTargetDefines()
302 if (isAMDGCN(getTriple()) && !IsHIPHost) { in getTargetDefines()
312 for (auto F : getAllPossibleTargetIDFeatures(getTriple(), CanonName)) { in getTargetDefines()
H A DSPIR.h217 (getTriple().isSPIRV() && Opts.CUDAIsDevice)); in adjust()
236 assert(getTriple().getOS() == llvm::Triple::UnknownOS && in SPIRTargetInfo()
238 assert(getTriple().getEnvironment() == llvm::Triple::UnknownEnvironment && in SPIRTargetInfo()
331 assert(getTriple().getOS() == llvm::Triple::UnknownOS && in SPIRV32TargetInfo()
333 assert(getTriple().getEnvironment() == llvm::Triple::UnknownEnvironment && in SPIRV32TargetInfo()
352 assert(getTriple().getOS() == llvm::Triple::UnknownOS && in SPIRV64TargetInfo()
354 assert(getTriple().getEnvironment() == llvm::Triple::UnknownEnvironment && in SPIRV64TargetInfo()
376 assert(getTriple().getOS() == llvm::Triple::OSType::AMDHSA && in SPIRV64AMDGCNTargetInfo()
378 assert(getTriple().getEnvironment() == llvm::Triple::UnknownEnvironment && in SPIRV64AMDGCNTargetInfo()
H A DPPC.cpp56 HasFloat128 = !getTriple().isOSAIX(); in handleTargetFeatures()
287 if (getTriple().isOSAIX() || getTriple().isOSLinux()) in getTargetDefines()
300 } else if (getTriple().isOSAIX()) { in getTargetDefines()
304 if (getTriple().isOSAIX()) { in getTargetDefines()
312 if (getTriple().getArch() == llvm::Triple::ppc64le || in getTargetDefines()
313 getTriple().getArch() == llvm::Triple::ppcle) { in getTargetDefines()
316 if (!getTriple().isOSNetBSD() && in getTargetDefines()
317 !getTriple().isOSOpenBSD()) in getTargetDefines()
330 if (getTriple().getOS() == llvm::Triple::Linux && PointerWidth == 64) in getTargetDefines()
334 if (!getTriple().isOSAIX()){ in getTargetDefines()
[all …]
H A DX86.h190 getTriple().isOSWindows() && getTriple().isOSBinFormatCOFF(); in X86TargetInfo()
342 if (getTriple().getArch() == llvm::Triple::x86_64 && SSELevel >= AVX512F) in getABI()
344 if (getTriple().getArch() == llvm::Triple::x86_64 && SSELevel >= AVX) in getABI()
346 if (getTriple().getArch() == llvm::Triple::x86 && !HasMMX) in getABI()
356 bool Only64Bit = getTriple().getArch() != llvm::Triple::x86; in isValidCPUName()
374 bool Only64Bit = getTriple().getArch() != llvm::Triple::x86; in setCPU()
384 return getTriple().getArch() != llvm::Triple::x86; in supportsExtendIntArgs()
570 getTriple().isOSWindows() && getTriple().isOSBinFormatCOFF(); in WindowsX86_32TargetInfo()
571 bool IsMSVC = getTriple().isWindowsMSVCEnvironment(); in WindowsX86_32TargetInfo()
707 const bool IsX32 = getTriple().isX32(); in X86_64TargetInfo()
[all …]
H A DRISCV.cpp135 bool Is64Bit = getTriple().isRISCV64(); in getTargetDefines()
251 if (getTriple().isRISCV64()) { in initFeatureMap()
318 bool Is64Bit = getTriple().isRISCV64(); in hasFeature()
336 unsigned XLen = getTriple().isArch64Bit() ? 64 : 32; in handleTargetFeatures()
371 bool Is64Bit = getTriple().isArch64Bit(); in isValidCPUName()
377 bool Is64Bit = getTriple().isArch64Bit(); in fillValidCPUList()
382 bool Is64Bit = getTriple().isArch64Bit(); in isValidTuneCPUName()
388 bool Is64Bit = getTriple().isArch64Bit(); in fillValidTuneCPUList()
H A DARM.cpp32 const llvm::Triple &T = getTriple(); in setABIAAPCS()
74 const llvm::Triple &T = getTriple(); in setABIAPCS()
115 StringRef ArchName = getTriple().getArchName(); in setArchInfo()
389 CPUArch = llvm::ARM::parseArch(getTriple().getArchName()); in isBranchProtectionSupportedArch()
396 llvm::Triple(ArchFeature, getTriple().getVendorName(), in isBranchProtectionSupportedArch()
397 getTriple().getOSName(), getTriple().getEnvironmentName()); in isBranchProtectionSupportedArch()
437 llvm::ARM::ArchKind Arch = llvm::ARM::parseArch(getTriple().getArchName()); in initFeatureMap()
722 if (getTriple().getOS() == llvm::Triple::UnknownOS && in getTargetDefines()
723 (getTriple().getEnvironment() == llvm::Triple::EABI || in getTargetDefines()
724 getTriple().getEnvironment() == llvm::Triple::EABIHF) && in getTargetDefines()
[all …]
H A DAArch64.cpp135 if (getTriple().isOSOpenBSD()) { in AArch64TargetInfo()
139 if (!getTriple().isOSDarwin() && !getTriple().isOSNetBSD()) in AArch64TargetInfo()
222 if (getTriple().getEnvironment() == llvm::Triple::PAuthTest && in validateTarget()
223 getTriple().getOS() != llvm::Triple::Linux) { in validateTarget()
225 << getTriple().getEnvironmentName() << getTriple().getTriple(); in validateTarget()
379 if (getTriple().isWindowsArm64EC()) { in getTargetDefines()
1517 if (getTriple().isOSBinFormatMachO()) { in setDataLayout()
1518 if(getTriple().isArch32Bit()) in setDataLayout()
1545 assert(!getTriple().isOSBinFormatMachO()); in setDataLayout()
1583 if (getTriple().isWindowsArm64EC()) in checkCallingConvention()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DToolChain.cpp171 D.Diag(DiagID) << A->getAsString(Args) << Triple.getTriple(); in useIntegratedBackend()
174 D.Diag(DiagID) << A->getAsString(Args) << Triple.getTriple(); in useIntegratedBackend()
184 return PPC_LINUX_DEFAULT_IEEELONGDOUBLE && getTriple().isOSLinux(); in defaultToIEEELongDouble()
432 if (getTriple().isArm64e()) in getDefaultUniversalArchName()
580 const llvm::Triple &Triple = TC.getTriple(); in getArchNameForCompilerRTLib()
647 const llvm::Triple &TT = getTriple(); in buildCompilerRTBasename()
691 if (getTriple().isOSAIX()) in getCompilerRT()
719 llvm::Triple TripleWithoutLevel(getTriple()); in getFallbackAndroidTargetPath()
722 unsigned TripleVersion = getTriple().getEnvironmentVersion().getMajor(); in getFallbackAndroidTargetPath()
769 if (auto Path = getPathForTriple(getTriple())) in getTargetSubDirPath()
[all …]
H A DSanitizerArgs.cpp412 const llvm::Triple &Triple = TC.getTriple(); in SanitizerArgs()
449 << Desc << TC.getTriple().str(); in SanitizerArgs()
511 if (TC.getTriple().isOSLinux()) in SanitizerArgs()
540 (TC.getTriple().isOSFuchsia() ? SanitizerMask() in SanitizerArgs()
585 if ((Kinds & SanitizerKind::ShadowCallStack) && TC.getTriple().isAArch64() && in SanitizerArgs()
586 !llvm::AArch64::isX18ReservedByDefault(TC.getTriple()) && in SanitizerArgs()
601 if (TC.getTriple().isOSWindows()) in SanitizerArgs()
608 << ("-fno-sanitize-trap=" + toString(S)) << TC.getTriple().str(); in SanitizerArgs()
917 TC.getTriple().isAndroid() || TC.getTriple().isOSFuchsia() || in SanitizerArgs()
918 TC.getTriple().isOSDarwin()); in SanitizerArgs()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DTargetInfo.h1256 const llvm::Triple &getTriple() const { in getTriple() function
1295 return getTriple().isWindowsMSVCEnvironment() || in shouldDLLImportComdatSymbols()
1296 getTriple().isWindowsItaniumEnvironment() || getTriple().isPS(); in shouldDLLImportComdatSymbols()
1301 return getTriple().isPS() || in hasPS4DLLImportExport()
1304 (getTriple().isWindowsItaniumEnvironment() && in hasPS4DLLImportExport()
1305 getTriple().getVendor() == llvm::Triple::SCEI); in hasPS4DLLImportExport()
1499 return getTriple().isX86() || getTriple().isAArch64(); in supportsMultiVersioning()
1504 if (getTriple().isOSBinFormatMachO()) in supportsIFunc()
1506 return getTriple().isOSBinFormatELF() && in supportsIFunc()
1507 ((getTriple().isOSLinux() && !getTriple().isMusl()) || in supportsIFunc()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGGPUBuiltin.cpp176 assert(getTarget().getTriple().isNVPTX()); in EmitNVPTXDevicePrintfCallExpr()
182 assert(getTarget().getTriple().isAMDGCN() || in EmitAMDGPUDevicePrintfCallExpr()
183 (getTarget().getTriple().isSPIRV() && in EmitAMDGPUDevicePrintfCallExpr()
184 getTarget().getTriple().getVendor() == llvm::Triple::AMD)); in EmitAMDGPUDevicePrintfCallExpr()
218 assert(getTarget().getTriple().isNVPTX() || in EmitOpenMPDevicePrintfCallExpr()
219 getTarget().getTriple().isAMDGCN()); in EmitOpenMPDevicePrintfCallExpr()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DTargetSelect.cpp44 if (TheTriple.getTriple().empty()) in selectTarget()
69 TheTarget = TargetRegistry::lookupTarget(TheTriple.getTriple(), Error); in selectTarget()
88 TheTarget->createTargetMachine(TheTriple.getTriple(), MCPU, FeaturesStr, in selectTarget()
/freebsd/contrib/llvm-project/llvm/tools/bugpoint/
H A DBugDriver.cpp108 if (TargetTriple.getTriple().empty()) { in parseInputFile()
111 if (TheTriple.getTriple().empty()) in parseInputFile()
114 TargetTriple.setTriple(TheTriple.getTriple()); in parseInputFile()
117 Result->setTargetTriple(TargetTriple.getTriple()); // override the triple in parseInputFile()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DFormatString.cpp854 if (Target.getTriple().isOSMSVCRT()) { in hasValidLengthModifier()
889 return Target.getTriple().isOSFreeBSD() || Target.getTriple().isPS(); in hasValidLengthModifier()
929 return Target.getTriple().isOSFreeBSD() || Target.getTriple().isPS(); in hasValidLengthModifier()
952 return !Target.getTriple().isOSDarwin() && in hasValidLengthModifier()
953 !Target.getTriple().isOSWindows(); in hasValidLengthModifier()
989 return Target.getTriple().isOSMSVCRT(); in hasValidLengthModifier()
1000 return Target.getTriple().isOSMSVCRT(); in hasValidLengthModifier()

12345678