Lines Matching refs:TargetTriple
467 static ShadowMapping getShadowMapping(const Triple &TargetTriple, int LongSize, in getShadowMapping() argument
469 bool IsAndroid = TargetTriple.isAndroid(); in getShadowMapping()
470 bool IsIOS = TargetTriple.isiOS() || TargetTriple.isWatchOS() || in getShadowMapping()
471 TargetTriple.isDriverKit(); in getShadowMapping()
472 bool IsMacOS = TargetTriple.isMacOSX(); in getShadowMapping()
473 bool IsFreeBSD = TargetTriple.isOSFreeBSD(); in getShadowMapping()
474 bool IsNetBSD = TargetTriple.isOSNetBSD(); in getShadowMapping()
475 bool IsPS = TargetTriple.isPS(); in getShadowMapping()
476 bool IsLinux = TargetTriple.isOSLinux(); in getShadowMapping()
477 bool IsPPC64 = TargetTriple.getArch() == Triple::ppc64 || in getShadowMapping()
478 TargetTriple.getArch() == Triple::ppc64le; in getShadowMapping()
479 bool IsSystemZ = TargetTriple.getArch() == Triple::systemz; in getShadowMapping()
480 bool IsX86_64 = TargetTriple.getArch() == Triple::x86_64; in getShadowMapping()
481 bool IsMIPSN32ABI = TargetTriple.getEnvironment() == Triple::GNUABIN32; in getShadowMapping()
482 bool IsMIPS32 = TargetTriple.isMIPS32(); in getShadowMapping()
483 bool IsMIPS64 = TargetTriple.isMIPS64(); in getShadowMapping()
484 bool IsArmOrThumb = TargetTriple.isARM() || TargetTriple.isThumb(); in getShadowMapping()
485 bool IsAArch64 = TargetTriple.getArch() == Triple::aarch64; in getShadowMapping()
486 bool IsRISCV64 = TargetTriple.getArch() == Triple::riscv64; in getShadowMapping()
487 bool IsWindows = TargetTriple.isOSWindows(); in getShadowMapping()
488 bool IsFuchsia = TargetTriple.isOSFuchsia(); in getShadowMapping()
489 bool IsEmscripten = TargetTriple.isOSEmscripten(); in getShadowMapping()
490 bool IsAMDGPU = TargetTriple.isAMDGPU(); in getShadowMapping()
584 IsAndroid && !TargetTriple.isAndroidVersionLT(21); in getShadowMapping()
591 void getAddressSanitizerParams(const Triple &TargetTriple, int LongSize, in getAddressSanitizerParams() argument
594 auto Mapping = getShadowMapping(TargetTriple, LongSize, IsKasan); in getAddressSanitizerParams()
622 static uint64_t GetCtorAndDtorPriority(Triple &TargetTriple) { in GetCtorAndDtorPriority() argument
623 if (TargetTriple.isOSEmscripten()) { in GetCtorAndDtorPriority()
651 TargetTriple = Triple(M.getTargetTriple()); in AddressSanitizer()
653 Mapping = getShadowMapping(TargetTriple, LongSize, this->CompileKernel); in AddressSanitizer()
734 Triple TargetTriple; member
790 TargetTriple = Triple(M.getTargetTriple()); in ModuleAddressSanitizer()
791 Mapping = getShadowMapping(TargetTriple, LongSize, this->CompileKernel); in ModuleAddressSanitizer()
846 Triple TargetTriple; member in __anon187e16000211::ModuleAddressSanitizer
1247 !(TargetTriple.isAMDGPU() && !isUnsupportedAMDGPUAddrspace(Ptr))) in ignoreAccess()
1570 if (TargetTriple.isAMDGPU()) { in instrumentAddress()
1702 if (Priority->getLimitedValue() <= GetCtorAndDtorPriority(TargetTriple)) in createInitializerPoisonCalls()
1737 !(TargetTriple.isAMDGPU() && !isUnsupportedAMDGPUAddrspace(G))) in shouldInstrumentGlobal()
1751 if (!TargetTriple.isOSBinFormatCOFF()) { in shouldInstrumentGlobal()
1799 if (TargetTriple.isOSBinFormatELF()) { in shouldInstrumentGlobal()
1813 if (TargetTriple.isOSBinFormatCOFF() && Section.contains('$')) { in shouldInstrumentGlobal()
1819 if (TargetTriple.isOSBinFormatMachO()) { in shouldInstrumentGlobal()
1869 if (!TargetTriple.isOSBinFormatMachO()) in ShouldUseMachOGlobalsSection()
1872 if (TargetTriple.isMacOSX() && !TargetTriple.isMacOSXVersionLT(10, 11)) in ShouldUseMachOGlobalsSection()
1874 if (TargetTriple.isiOS() /* or tvOS */ && !TargetTriple.isOSVersionLT(9)) in ShouldUseMachOGlobalsSection()
1876 if (TargetTriple.isWatchOS() && !TargetTriple.isOSVersionLT(2)) in ShouldUseMachOGlobalsSection()
1878 if (TargetTriple.isDriverKit()) in ShouldUseMachOGlobalsSection()
1885 switch (TargetTriple.getObjectFormat()) { in getGlobalMetadataSection()
1957 if (TargetTriple.isOSBinFormatCOFF()) { in SetComdatForGlobalMetadata()
1974 auto Linkage = TargetTriple.isOSBinFormatMachO() in CreateMetadataGlobal()
2282 if (TargetTriple.isOSBinFormatMachO() && !G->hasSection() && in InstrumentGlobals()
2307 TargetTriple.isOSBinFormatELF() || TargetTriple.isOSBinFormatMachO() || in InstrumentGlobals()
2308 TargetTriple.isOSBinFormatWasm(); in InstrumentGlobals()
2366 (UseGlobalsGC && TargetTriple.isOSBinFormatELF()) ? getUniqueModuleId(&M) in InstrumentGlobals()
2372 } else if (UseGlobalsGC && TargetTriple.isOSBinFormatCOFF()) { in InstrumentGlobals()
2448 const uint64_t Priority = GetCtorAndDtorPriority(TargetTriple); in instrumentModule()
2453 if (UseCtorComdat && TargetTriple.isOSBinFormatELF() && CtorComdat) { in instrumentModule()