Lines Matching defs:Options
173 SanitizerCoverageOptions OverrideFromCL(SanitizerCoverageOptions Options) {
176 Options.CoverageType = std::max(Options.CoverageType, CLOpts.CoverageType);
177 Options.IndirectCalls |= CLOpts.IndirectCalls;
178 Options.TraceCmp |= ClCMPTracing;
179 Options.TraceDiv |= ClDIVTracing;
180 Options.TraceGep |= ClGEPTracing;
181 Options.TracePC |= ClTracePC;
182 Options.TracePCGuard |= ClTracePCGuard;
183 Options.Inline8bitCounters |= ClInline8bitCounters;
184 Options.InlineBoolFlag |= ClInlineBoolFlag;
185 Options.PCTable |= ClCreatePCTable;
186 Options.NoPrune |= !ClPruneBlocks;
187 Options.StackDepth |= ClStackDepth;
188 if (!Options.TracePCGuard && !Options.TracePC &&
189 !Options.Inline8bitCounters && !Options.StackDepth &&
190 !Options.InlineBoolFlag)
191 Options.TracePCGuard = true; // TracePCGuard is default.
192 return Options;
202 const SanitizerCoverageOptions &Options = SanitizerCoverageOptions(),
205 : Options(OverrideFromCL(Options)), Allowlist(Allowlist),
268 SanitizerCoverageOptions Options;
277 const SanitizerCoverageOptions &Options = SanitizerCoverageOptions(),
282 : ModulePass(ID), Options(Options) {
293 ModuleSanitizerCoverage ModuleSancov(Options, Allowlist.get(),
314 SanitizerCoverageOptions Options;
324 ModuleSanitizerCoverage ModuleSancov(Options, Allowlist.get(),
396 if (Options.CoverageType == SanitizerCoverageOptions::SCK_None)
484 if (Options.StackDepth && !SanCovLowestStack->isDeclaration())
509 if (Ctor && Options.PCTable) {
554 const SanitizerCoverageOptions &Options) {
568 if (Options.NoPrune || &F.getEntryBlock() == BB)
571 if (Options.CoverageType == SanitizerCoverageOptions::SCK_Function &&
602 const SanitizerCoverageOptions &Options) {
603 if (!Options.NoPrune)
640 if (Options.CoverageType >= SanitizerCoverageOptions::SCK_Edge)
654 if (shouldInstrumentBlock(F, &BB, DT, PDT, Options))
657 if (Options.IndirectCalls) {
662 if (Options.TraceCmp) {
664 if (IsInterestingCmp(CMP, DT, Options))
669 if (Options.TraceDiv)
674 if (Options.TraceGep)
677 if (Options.StackDepth)
743 if (Options.TracePCGuard)
747 if (Options.Inline8bitCounters)
750 if (Options.InlineBoolFlag)
754 if (Options.PCTable)
779 assert(Options.TracePC || Options.TracePCGuard ||
780 Options.Inline8bitCounters || Options.InlineBoolFlag);
917 if (Options.TracePC) {
921 if (Options.TracePCGuard) {
928 if (Options.Inline8bitCounters) {
938 if (Options.InlineBoolFlag) {
950 if (Options.StackDepth && IsEntryBB && !IsLeafFunc) {
1009 const SanitizerCoverageOptions &Options,
1012 return new ModuleSanitizerCoverageLegacyPass(Options, AllowlistFiles,