Lines Matching refs:TargetTriple
238 bool shouldUsePageAliases(const Triple &TargetTriple) { in shouldUsePageAliases() argument
239 return ClUsePageAliases && TargetTriple.getArch() == Triple::x86_64; in shouldUsePageAliases()
242 bool shouldInstrumentStack(const Triple &TargetTriple) { in shouldInstrumentStack() argument
243 return !shouldUsePageAliases(TargetTriple) && ClInstrumentStack; in shouldInstrumentStack()
246 bool shouldInstrumentWithCalls(const Triple &TargetTriple) { in shouldInstrumentWithCalls() argument
247 return ClInstrumentWithCalls || TargetTriple.getArch() == Triple::x86_64; in shouldInstrumentWithCalls()
255 bool shouldUseStackSafetyAnalysis(const Triple &TargetTriple, in shouldUseStackSafetyAnalysis() argument
257 return shouldInstrumentStack(TargetTriple) && in shouldUseStackSafetyAnalysis()
261 bool shouldDetectUseAfterScope(const Triple &TargetTriple) { in shouldDetectUseAfterScope() argument
262 return ClUseAfterScope && shouldInstrumentStack(TargetTriple); in shouldDetectUseAfterScope()
344 Triple TargetTriple; member in __anone00de11f0111::HWAddressSanitizer
366 void init(Triple &TargetTriple, bool InstrumentWithCalls);
417 auto TargetTriple = llvm::Triple(M.getTargetTriple()); in run() local
418 if (shouldUseStackSafetyAnalysis(TargetTriple, Options.DisableOptimization)) in run()
549 TargetTriple = Triple(M.getTargetTriple()); in initializeModule()
554 bool IsX86_64 = TargetTriple.getArch() == Triple::x86_64; in initializeModule()
555 UsePageAliases = shouldUsePageAliases(TargetTriple); in initializeModule()
556 InstrumentWithCalls = shouldInstrumentWithCalls(TargetTriple); in initializeModule()
557 InstrumentStack = shouldInstrumentStack(TargetTriple); in initializeModule()
558 DetectUseAfterScope = shouldDetectUseAfterScope(TargetTriple); in initializeModule()
562 Mapping.init(TargetTriple, InstrumentWithCalls); in initializeModule()
577 !TargetTriple.isAndroid() || !TargetTriple.isAndroidVersionLT(30); in initializeModule()
582 TargetTriple.isAArch64() && TargetTriple.isOSBinFormatELF() && in initializeModule()
616 if (!TargetTriple.isAndroid()) { in initializeModule()
794 if (TargetTriple.isAArch64() || TargetTriple.getArch() == Triple::x86_64) in untagPointerOperand()
892 switch (TargetTriple.getArch()) { in instrumentMemAccessInline()
1014 if (TargetTriple.getArch() == Triple::x86_64) in retagMask()
1035 if (TargetTriple.getArch() == Triple::x86_64) { in applyTagMask()
1119 if (TargetTriple.isAArch64() && TargetTriple.isAndroid()) { in getHwasanThreadSlotPtr()
1137 if (TargetTriple.getArch() == Triple::aarch64) in getPC()
1178 else if (!WithFrameRecord && TargetTriple.isAndroid()) in emitPrologue()
1195 return TargetTriple.isAArch64() ? ThreadLong in emitPrologue()
1272 {readRegister(IRB, (TargetTriple.getArch() == Triple::x86_64) ? "rsp" in instrumentLandingPads()
1687 void HWAddressSanitizer::ShadowMapping::init(Triple &TargetTriple, in init() argument
1690 if (TargetTriple.isOSFuchsia()) { in init()