Home
last modified time | relevance | path

Searched refs:Sanitize (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/Basic/
H A DFeatures.def41 LangOpts.Sanitize.hasOneOf(SanitizerKind::Address |
44 LangOpts.Sanitize.has(SanitizerKind::Leak))
46 LangOpts.Sanitize.hasOneOf(SanitizerKind::HWAddress |
49 LangOpts.Sanitize.has(SanitizerKind::MemtagStack))
51 LangOpts.Sanitize.has(SanitizerKind::MemtagHeap))
53 LangOpts.Sanitize.has(SanitizerKind::MemtagGlobals))
56 LangOpts.Sanitize.hasOneOf(SanitizerKind::Undefined))
97 LangOpts.Sanitize.hasOneOf(SanitizerKind::Memory |
101 FEATURE(scudo, LangOpts.Sanitize.hasOneOf(SanitizerKind::Scudo))
232 FEATURE(safe_stack, LangOpts.Sanitize.has(SanitizerKind::SafeStack))
[all …]
H A DLangOptions.h368 SanitizerSet Sanitize; variable
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDeclCXX.cpp445 if (getLangOpts().Sanitize.has(SanitizerKind::Address) && in CreateGlobalInitOrCleanUpFunction()
449 if (getLangOpts().Sanitize.has(SanitizerKind::KernelAddress) && in CreateGlobalInitOrCleanUpFunction()
453 if (getLangOpts().Sanitize.has(SanitizerKind::HWAddress) && in CreateGlobalInitOrCleanUpFunction()
457 if (getLangOpts().Sanitize.has(SanitizerKind::KernelHWAddress) && in CreateGlobalInitOrCleanUpFunction()
461 if (getLangOpts().Sanitize.has(SanitizerKind::MemtagStack) && in CreateGlobalInitOrCleanUpFunction()
465 if (getLangOpts().Sanitize.has(SanitizerKind::Thread) && in CreateGlobalInitOrCleanUpFunction()
469 if (getLangOpts().Sanitize.has(SanitizerKind::Memory) && in CreateGlobalInitOrCleanUpFunction()
473 if (getLangOpts().Sanitize.has(SanitizerKind::KernelMemory) && in CreateGlobalInitOrCleanUpFunction()
477 if (getLangOpts().Sanitize.has(SanitizerKind::SafeStack) && in CreateGlobalInitOrCleanUpFunction()
481 if (getLangOpts().Sanitize.has(SanitizerKind::ShadowCallStack) && in CreateGlobalInitOrCleanUpFunction()
H A DSanitizerMetadata.cpp42 SanitizerSet FsanitizeArgument = CGM.getLangOpts().Sanitize; in reportGlobal()
80 if (!isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize)) in reportGlobal()
H A DBackendUtil.cpp636 if (LangOpts.Sanitize.has(Mask)) { in addSanitizers()
663 if (LangOpts.Sanitize.has(SanitizerKind::Thread)) { in addSanitizers()
669 if (LangOpts.Sanitize.has(Mask)) { in addSanitizers()
687 if (LangOpts.Sanitize.has(Mask)) { in addSanitizers()
697 if (LangOpts.Sanitize.has(SanitizerKind::DataFlow)) { in addSanitizers()
891 if (LangOpts.Sanitize.has(SanitizerKind::LocalBounds)) in RunOptimizationPipeline()
H A DCodeGenModule.cpp163 if (LangOpts.Sanitize.has(SanitizerKind::Thread) || in CodeGenModule()
583 if (LangOpts.Sanitize.has(SanitizerKind::Address)) { in Release()
752 if (LangOpts.Sanitize.has(SanitizerKind::CFIICall)) { in Release()
792 if (LangOpts.Sanitize.has(SanitizerKind::MemtagStack)) in Release()
2265 if (!LangOpts.Sanitize.has(SanitizerKind::CFIICall)) in CreateFunctionTypeMetadataForIcall()
6799 return ((LangOpts.Sanitize.has(SanitizerKind::CFIVCall) && in NeedAllVtablesTypeId()
6801 (LangOpts.Sanitize.has(SanitizerKind::CFINVCall) && in NeedAllVtablesTypeId()
6803 (LangOpts.Sanitize.has(SanitizerKind::CFIDerivedCast) && in NeedAllVtablesTypeId()
6805 (LangOpts.Sanitize.has(SanitizerKind::CFIUnrelatedCast) && in NeedAllVtablesTypeId()
H A DCodeGenFunction.cpp61 LangOpts.Sanitize.has(SanitizerKind::HWAddress) || in shouldEmitLifetimeMarkers()
62 LangOpts.Sanitize.has(SanitizerKind::Memory)) in shouldEmitLifetimeMarkers()
73 SanOpts(CGM.getLangOpts().Sanitize), CurFPFeatures(CGM.getLangOpts()), in CodeGenFunction()
H A DItaniumCXXABI.cpp2194 if (CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) && AS == 0 && in InitializeArrayCookie()
2223 if (!CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) || AS != 0) in readArrayCookieImpl()
H A DCGCall.cpp2306 getLangOpts().Sanitize.has(SanitizerKind::Memory) || in ConstructAttributeList()
2307 getLangOpts().Sanitize.has(SanitizerKind::Return); in ConstructAttributeList()
H A DCGExpr.cpp3497 SanOpts = CGM.getLangOpts().Sanitize; in EmitCfiCheckFail()
3545 if (CGM.getLangOpts().Sanitize.has(Mask)) in EmitCfiCheckFail()
/llvm-project-15.0.7/clang/lib/Basic/Targets/
H A DOSTargets.cpp31 if (Opts.Sanitize.has(SanitizerKind::Address)) in getDarwinDefines()
/llvm-project-15.0.7/clang/lib/Driver/ToolChains/
H A DDarwin.cpp1425 const SanitizerArgs &Sanitize = getSanitizerArgs(Args); in AddLinkRuntimeLibArgs() local
1426 if (Sanitize.needsAsanRt()) in AddLinkRuntimeLibArgs()
1428 if (Sanitize.needsLsanRt()) in AddLinkRuntimeLibArgs()
1430 if (Sanitize.needsUbsanRt()) in AddLinkRuntimeLibArgs()
1432 Sanitize.requiresMinimalRuntime() ? "ubsan_minimal" in AddLinkRuntimeLibArgs()
1434 Sanitize.needsSharedRt()); in AddLinkRuntimeLibArgs()
1435 if (Sanitize.needsTsanRt()) in AddLinkRuntimeLibArgs()
1437 if (Sanitize.needsFuzzer() && !Args.hasArg(options::OPT_dynamiclib)) { in AddLinkRuntimeLibArgs()
1443 if (Sanitize.needsStatsRt()) { in AddLinkRuntimeLibArgs()
H A DMinGW.cpp103 const SanitizerArgs &Sanitize = TC.getSanitizerArgs(Args); in ConstructJob() local
284 if (Sanitize.needsAsanRt()) { in ConstructJob()
/llvm-project-15.0.7/clang/lib/Frontend/
H A DCompilerInvocation.cpp3307 for (StringRef Sanitizer : serializeSanitizerKinds(Opts.Sanitize)) in GenerateLangArgs()
3506 for (StringRef Sanitizer : serializeSanitizerKinds(Opts.Sanitize)) in GenerateLangArgs()
3580 Diags, Opts.Sanitize); in ParseLangArgs()
3980 Diags, Opts.Sanitize); in ParseLangArgs()
4501 !LangOpts.Sanitize.has(SanitizerKind::Address) && in CreateFromArgsImpl()
4502 !LangOpts.Sanitize.has(SanitizerKind::KernelAddress) && in CreateFromArgsImpl()
4503 !LangOpts.Sanitize.has(SanitizerKind::Memory) && in CreateFromArgsImpl()
4504 !LangOpts.Sanitize.has(SanitizerKind::KernelMemory); in CreateFromArgsImpl()
4521 !Res.getLangOpts()->Sanitize.empty()) { in CreateFromArgsImpl()
4636 SanitizerSet SanHash = LangOpts->Sanitize; in getModuleHash()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_flags.inc171 "Sanitize complete address space; "
/llvm-project-15.0.7/clang/lib/AST/
H A DDecl.cpp4765 const SanitizerMask EnabledAsanMask = Context.getLangOpts().Sanitize.Mask & in mayInsertExtraPadding()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReader.cpp347 SanitizerSet ExistingSanitizers = ExistingLangOpts.Sanitize; in checkLanguageOptions()
348 SanitizerSet ImportedSanitizers = LangOpts.Sanitize; in checkLanguageOptions()
5807 LangOpts.Sanitize.set(SanitizerKind::ID, Record[Idx++]); in ParseLanguageOptions()
H A DASTWriter.cpp1333 Record.push_back(LangOpts.Sanitize.has(SanitizerKind::ID)); in WriteControlBlock()