Lines Matching refs:TargetTriple
477 static ShadowMapping getShadowMapping(const Triple &TargetTriple, int LongSize, in getShadowMapping() argument
479 bool IsAndroid = TargetTriple.isAndroid(); in getShadowMapping()
480 bool IsIOS = TargetTriple.isiOS() || TargetTriple.isWatchOS() || in getShadowMapping()
481 TargetTriple.isDriverKit(); in getShadowMapping()
482 bool IsMacOS = TargetTriple.isMacOSX(); in getShadowMapping()
483 bool IsFreeBSD = TargetTriple.isOSFreeBSD(); in getShadowMapping()
484 bool IsNetBSD = TargetTriple.isOSNetBSD(); in getShadowMapping()
485 bool IsPS = TargetTriple.isPS(); in getShadowMapping()
486 bool IsLinux = TargetTriple.isOSLinux(); in getShadowMapping()
487 bool IsPPC64 = TargetTriple.getArch() == Triple::ppc64 || in getShadowMapping()
488 TargetTriple.getArch() == Triple::ppc64le; in getShadowMapping()
489 bool IsSystemZ = TargetTriple.getArch() == Triple::systemz; in getShadowMapping()
490 bool IsX86_64 = TargetTriple.getArch() == Triple::x86_64; in getShadowMapping()
491 bool IsMIPSN32ABI = TargetTriple.getEnvironment() == Triple::GNUABIN32; in getShadowMapping()
492 bool IsMIPS32 = TargetTriple.isMIPS32(); in getShadowMapping()
493 bool IsMIPS64 = TargetTriple.isMIPS64(); in getShadowMapping()
494 bool IsArmOrThumb = TargetTriple.isARM() || TargetTriple.isThumb(); in getShadowMapping()
495 bool IsAArch64 = TargetTriple.getArch() == Triple::aarch64 || in getShadowMapping()
496 TargetTriple.getArch() == Triple::aarch64_be; in getShadowMapping()
497 bool IsLoongArch64 = TargetTriple.isLoongArch64(); in getShadowMapping()
498 bool IsRISCV64 = TargetTriple.getArch() == Triple::riscv64; in getShadowMapping()
499 bool IsWindows = TargetTriple.isOSWindows(); in getShadowMapping()
500 bool IsFuchsia = TargetTriple.isOSFuchsia(); in getShadowMapping()
501 bool IsEmscripten = TargetTriple.isOSEmscripten(); in getShadowMapping()
502 bool IsAMDGPU = TargetTriple.isAMDGPU(); in getShadowMapping()
598 IsAndroid && !TargetTriple.isAndroidVersionLT(21); in getShadowMapping()
605 void getAddressSanitizerParams(const Triple &TargetTriple, int LongSize, in getAddressSanitizerParams() argument
608 auto Mapping = getShadowMapping(TargetTriple, LongSize, IsKasan); in getAddressSanitizerParams()
636 static uint64_t GetCtorAndDtorPriority(Triple &TargetTriple) { in GetCtorAndDtorPriority() argument
637 if (TargetTriple.isOSEmscripten()) { in GetCtorAndDtorPriority()
674 TargetTriple = Triple(M.getTargetTriple()); in AddressSanitizer()
676 Mapping = getShadowMapping(TargetTriple, LongSize, this->CompileKernel); in AddressSanitizer()
759 Triple TargetTriple; member
829 TargetTriple = Triple(M.getTargetTriple()); in ModuleAddressSanitizer()
830 Mapping = getShadowMapping(TargetTriple, LongSize, this->CompileKernel); in ModuleAddressSanitizer()
888 Triple TargetTriple; member in __anon5057f5c60211::ModuleAddressSanitizer
1300 !(TargetTriple.isAMDGPU() && !isUnsupportedAMDGPUAddrspace(Ptr))) in ignoreAccess()
1757 if (TargetTriple.isAMDGPU()) { in instrumentAddress()
1804 if (TargetTriple.isAMDGCN()) { in instrumentAddress()
1903 if (Priority->getLimitedValue() <= GetCtorAndDtorPriority(TargetTriple)) in createInitializerPoisonCalls()
1938 !(TargetTriple.isAMDGPU() && !isUnsupportedAMDGPUAddrspace(G))) in shouldInstrumentGlobal()
1952 if (!TargetTriple.isOSBinFormatCOFF()) { in shouldInstrumentGlobal()
2000 if (TargetTriple.isOSBinFormatELF()) { in shouldInstrumentGlobal()
2014 if (TargetTriple.isOSBinFormatCOFF() && Section.contains('$')) { in shouldInstrumentGlobal()
2020 if (TargetTriple.isOSBinFormatMachO()) { in shouldInstrumentGlobal()
2070 if (!TargetTriple.isOSBinFormatMachO()) in ShouldUseMachOGlobalsSection()
2073 if (TargetTriple.isMacOSX() && !TargetTriple.isMacOSXVersionLT(10, 11)) in ShouldUseMachOGlobalsSection()
2075 if (TargetTriple.isiOS() /* or tvOS */ && !TargetTriple.isOSVersionLT(9)) in ShouldUseMachOGlobalsSection()
2077 if (TargetTriple.isWatchOS() && !TargetTriple.isOSVersionLT(2)) in ShouldUseMachOGlobalsSection()
2079 if (TargetTriple.isDriverKit()) in ShouldUseMachOGlobalsSection()
2081 if (TargetTriple.isXROS()) in ShouldUseMachOGlobalsSection()
2088 switch (TargetTriple.getObjectFormat()) { in getGlobalMetadataSection()
2160 if (TargetTriple.isOSBinFormatCOFF()) { in SetComdatForGlobalMetadata()
2177 auto Linkage = TargetTriple.isOSBinFormatMachO() in CreateMetadataGlobal()
2186 setGlobalVariableLargeSection(TargetTriple, *Metadata); in CreateMetadataGlobal()
2488 if (TargetTriple.isOSBinFormatMachO() && !G->hasSection() && in instrumentGlobals()
2513 TargetTriple.isOSBinFormatELF() || TargetTriple.isOSBinFormatMachO() || in instrumentGlobals()
2514 TargetTriple.isOSBinFormatWasm(); in instrumentGlobals()
2571 if (UseGlobalsGC && TargetTriple.isOSBinFormatELF()) { in instrumentGlobals()
2582 *CtorComdat = TargetTriple.isOSBinFormatELF(); in instrumentGlobals()
2585 if (UseGlobalsGC && TargetTriple.isOSBinFormatCOFF()) { in instrumentGlobals()
2669 const uint64_t Priority = GetCtorAndDtorPriority(TargetTriple); in instrumentModule()
2674 if (UseCtorComdat && TargetTriple.isOSBinFormatELF() && CtorComdat) { in instrumentModule()