Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/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))
231 FEATURE(kcfi, LangOpts.Sanitize.has(SanitizerKind::KCFI))
[all …]
H A DLangOptions.h388 SanitizerSet Sanitize; variable
/openbsd/gnu/llvm/clang/lib/CodeGen/
H A DCGDeclCXX.cpp446 if (getLangOpts().Sanitize.has(SanitizerKind::Address) && in CreateGlobalInitOrCleanUpFunction()
450 if (getLangOpts().Sanitize.has(SanitizerKind::KernelAddress) && in CreateGlobalInitOrCleanUpFunction()
454 if (getLangOpts().Sanitize.has(SanitizerKind::HWAddress) && in CreateGlobalInitOrCleanUpFunction()
458 if (getLangOpts().Sanitize.has(SanitizerKind::KernelHWAddress) && in CreateGlobalInitOrCleanUpFunction()
462 if (getLangOpts().Sanitize.has(SanitizerKind::MemtagStack) && in CreateGlobalInitOrCleanUpFunction()
466 if (getLangOpts().Sanitize.has(SanitizerKind::Thread) && in CreateGlobalInitOrCleanUpFunction()
470 if (getLangOpts().Sanitize.has(SanitizerKind::Memory) && in CreateGlobalInitOrCleanUpFunction()
474 if (getLangOpts().Sanitize.has(SanitizerKind::KernelMemory) && in CreateGlobalInitOrCleanUpFunction()
478 if (getLangOpts().Sanitize.has(SanitizerKind::SafeStack) && in CreateGlobalInitOrCleanUpFunction()
482 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.cpp650 LangOpts.Sanitize.has(SanitizerKind::KCFI)) in addKCFIPass()
659 LangOpts.Sanitize.has(SanitizerKind::KCFI)) in addKCFIPass()
682 if (LangOpts.Sanitize.has(Mask)) { in addSanitizers()
708 if (LangOpts.Sanitize.has(SanitizerKind::Thread)) { in addSanitizers()
714 if (LangOpts.Sanitize.has(Mask)) { in addSanitizers()
732 if (LangOpts.Sanitize.has(Mask)) { in addSanitizers()
742 if (LangOpts.Sanitize.has(SanitizerKind::DataFlow)) { in addSanitizers()
959 if (LangOpts.Sanitize.has(SanitizerKind::LocalBounds)) in RunOptimizationPipeline()
H A DCodeGenModule.cpp170 if (LangOpts.Sanitize.has(SanitizerKind::Thread) || in CodeGenModule()
575 if (LangOpts.Sanitize.has(SanitizerKind::KCFI)) in Release()
584 if (LangOpts.Sanitize.has(SanitizerKind::Address)) { in Release()
756 if (LangOpts.Sanitize.has(SanitizerKind::CFIICall)) { in Release()
762 if (LangOpts.Sanitize.has(SanitizerKind::KCFI)) { in Release()
805 if (LangOpts.Sanitize.has(SanitizerKind::MemtagStack)) in Release()
2337 if (!LangOpts.Sanitize.has(SanitizerKind::CFIICall)) in CreateFunctionTypeMetadataForIcall()
2488 if (LangOpts.Sanitize.has(SanitizerKind::KCFI)) in SetFunctionAttributes()
7007 return ((LangOpts.Sanitize.has(SanitizerKind::CFIVCall) && in NeedAllVtablesTypeId()
7009 (LangOpts.Sanitize.has(SanitizerKind::CFINVCall) && in NeedAllVtablesTypeId()
[all …]
H A DCodeGenFunction.cpp63 LangOpts.Sanitize.has(SanitizerKind::HWAddress) || in shouldEmitLifetimeMarkers()
64 LangOpts.Sanitize.has(SanitizerKind::Memory)) in shouldEmitLifetimeMarkers()
75 SanOpts(CGM.getLangOpts().Sanitize), CurFPFeatures(CGM.getLangOpts()), in CodeGenFunction()
H A DCGVTables.cpp956 if (CGM.getLangOpts().Sanitize.has(SanitizerKind::HWAddress)) { in RemoveHwasanMetadata()
H A DItaniumCXXABI.cpp2188 if (CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) && AS == 0 && in InitializeArrayCookie()
2217 if (!CGM.getLangOpts().Sanitize.has(SanitizerKind::Address) || AS != 0) in readArrayCookieImpl()
H A DCGCall.cpp1808 if (Module.getLangOpts().Sanitize.has(SanitizerKind::Memory)) in HasStrictReturn()
1830 Module.getLangOpts().Sanitize.has(SanitizerKind::Return); in HasStrictReturn()
H A DCGExpr.cpp3471 SanOpts = CGM.getLangOpts().Sanitize; in EmitCfiCheckFail()
3519 if (CGM.getLangOpts().Sanitize.has(Mask)) in EmitCfiCheckFail()
/openbsd/gnu/llvm/clang/lib/Driver/ToolChains/
H A DDarwin.cpp1427 const SanitizerArgs &Sanitize = getSanitizerArgs(Args); in AddLinkRuntimeLibArgs() local
1429 if (!Sanitize.needsSharedRt() && Sanitize.needsUbsanRt()) { in AddLinkRuntimeLibArgs()
1434 if (Sanitize.needsAsanRt()) in AddLinkRuntimeLibArgs()
1436 if (Sanitize.needsLsanRt()) in AddLinkRuntimeLibArgs()
1438 if (Sanitize.needsUbsanRt()) { in AddLinkRuntimeLibArgs()
1439 assert(Sanitize.needsSharedRt() && "Static sanitizer runtimes not supported"); in AddLinkRuntimeLibArgs()
1441 Sanitize.requiresMinimalRuntime() ? "ubsan_minimal" in AddLinkRuntimeLibArgs()
1444 if (Sanitize.needsTsanRt()) in AddLinkRuntimeLibArgs()
1446 if (Sanitize.needsFuzzer() && !Args.hasArg(options::OPT_dynamiclib)) { in AddLinkRuntimeLibArgs()
1452 if (Sanitize.needsStatsRt()) { in AddLinkRuntimeLibArgs()
H A DMinGW.cpp103 const SanitizerArgs &Sanitize = TC.getSanitizerArgs(Args); in ConstructJob() local
206 if (Sanitize.needsAsanRt() && !Args.hasArg(options::OPT_nostdlib) && in ConstructJob()
305 if (Sanitize.needsAsanRt()) { in ConstructJob()
/openbsd/gnu/llvm/clang/lib/Basic/Targets/
H A DOSTargets.cpp31 if (Opts.Sanitize.has(SanitizerKind::Address)) in getDarwinDefines()
/openbsd/gnu/llvm/clang/lib/Frontend/
H A DCompilerInvocation.cpp3325 for (StringRef Sanitizer : serializeSanitizerKinds(Opts.Sanitize)) in GenerateLangArgs()
3521 for (StringRef Sanitizer : serializeSanitizerKinds(Opts.Sanitize)) in GenerateLangArgs()
3597 Diags, Opts.Sanitize); in ParseLangArgs()
3992 Diags, Opts.Sanitize); in ParseLangArgs()
4541 !LangOpts.Sanitize.has(SanitizerKind::Address) && in CreateFromArgsImpl()
4542 !LangOpts.Sanitize.has(SanitizerKind::KernelAddress) && in CreateFromArgsImpl()
4543 !LangOpts.Sanitize.has(SanitizerKind::Memory) && in CreateFromArgsImpl()
4544 !LangOpts.Sanitize.has(SanitizerKind::KernelMemory); in CreateFromArgsImpl()
4561 !Res.getLangOpts()->Sanitize.empty()) { in CreateFromArgsImpl()
4681 SanitizerSet SanHash = LangOpts->Sanitize; in getModuleHash()
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_flags.inc171 "Sanitize complete address space; "
/openbsd/gnu/llvm/clang/lib/Serialization/
H A DASTReader.cpp348 SanitizerSet ExistingSanitizers = ExistingLangOpts.Sanitize; in checkLanguageOptions()
349 SanitizerSet ImportedSanitizers = LangOpts.Sanitize; in checkLanguageOptions()
5835 LangOpts.Sanitize.set(SanitizerKind::ID, Record[Idx++]); in ParseLanguageOptions()
H A DASTWriter.cpp1379 Record.push_back(LangOpts.Sanitize.has(SanitizerKind::ID)); in WriteControlBlock()
/openbsd/gnu/llvm/clang/lib/AST/
H A DDecl.cpp4832 const SanitizerMask EnabledAsanMask = Context.getLangOpts().Sanitize.Mask & in mayInsertExtraPadding()