Lines Matching defs:TargetTriple
269 bool shouldUsePageAliases(const Triple &TargetTriple) {
270 return ClUsePageAliases && TargetTriple.getArch() == Triple::x86_64;
273 bool shouldInstrumentStack(const Triple &TargetTriple) {
274 return !shouldUsePageAliases(TargetTriple) && ClInstrumentStack;
277 bool shouldInstrumentWithCalls(const Triple &TargetTriple) {
278 return optOr(ClInstrumentWithCalls, TargetTriple.getArch() == Triple::x86_64);
285 bool shouldUseStackSafetyAnalysis(const Triple &TargetTriple,
287 return shouldInstrumentStack(TargetTriple) &&
291 bool shouldDetectUseAfterScope(const Triple &TargetTriple) {
292 return ClUseAfterScope && shouldInstrumentStack(TargetTriple);
390 Triple TargetTriple;
420 void init(Triple &TargetTriple, bool InstrumentWithCalls);
489 auto TargetTriple = llvm::Triple(M.getTargetTriple());
490 if (shouldUseStackSafetyAnalysis(TargetTriple, Options.DisableOptimization))
665 TargetTriple = Triple(M.getTargetTriple());
673 bool IsX86_64 = TargetTriple.getArch() == Triple::x86_64;
674 UsePageAliases = shouldUsePageAliases(TargetTriple);
675 InstrumentWithCalls = shouldInstrumentWithCalls(TargetTriple);
676 InstrumentStack = shouldInstrumentStack(TargetTriple);
677 DetectUseAfterScope = shouldDetectUseAfterScope(TargetTriple);
681 Mapping.init(TargetTriple, InstrumentWithCalls);
692 !TargetTriple.isAndroid() || !TargetTriple.isAndroidVersionLT(30);
695 OutlinedChecks = (TargetTriple.isAArch64() || TargetTriple.isRISCV64()) &&
696 TargetTriple.isOSBinFormatELF() &&
700 InlineFastPath = optOr(ClInlineFastPathChecks, !(TargetTriple.isAndroid() ||
701 TargetTriple.isOSFuchsia()));
730 if (!TargetTriple.isAndroid()) {
956 if (TargetTriple.isAArch64() || TargetTriple.getArch() == Triple::x86_64 ||
957 TargetTriple.isRISCV64())
1035 if (TargetTriple.isAArch64() && Mapping.isFixed()) {
1094 switch (TargetTriple.getArch()) {
1254 if (TargetTriple.getArch() == Triple::x86_64)
1359 if (TargetTriple.isAArch64() && TargetTriple.isAndroid())
1372 Value *PC = memtag::getPC(TargetTriple, IRB);
1391 else if (!WithFrameRecord && TargetTriple.isAndroid())
1408 return TargetTriple.isAArch64() ? ThreadLong
1465 IRB, (TargetTriple.getArch() == Triple::x86_64) ? "rsp" : "sp")});
1909 void HWAddressSanitizer::ShadowMapping::init(Triple &TargetTriple,
1917 if (TargetTriple.isOSFuchsia()) {