[#llvm-SanitizerCoverageOptions] = xref:llvm.adoc[llvm]::SanitizerCoverageOptions :relfileprefix: ../ :mrdocs: Options for SanitizerCoverage instrumentation. == Synopsis Declared in `<llvm/Transforms/Utils/Instrumentation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct SanitizerCoverageOptions; ---- == Enums [cols="1,4"] |=== | Name| Description | xref:llvm/SanitizerCoverageOptions/Type.adoc[`Type`] | Granularity of coverage points to instrument. |=== == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/SanitizerCoverageOptions/2constructor.adoc[`SanitizerCoverageOptions`] [.small]#[constructor]# | Construct SanitizerCoverage options with default field values. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:llvm/SanitizerCoverageOptions/CollectControlFlow.adoc[`CollectControlFlow`] | Whether to collect per‐function control‐flow graphs. | xref:llvm/SanitizerCoverageOptions/CoverageType.adoc[`CoverageType`] | Selected coverage point granularity. | xref:llvm/SanitizerCoverageOptions/GatedCallbacks.adoc[`GatedCallbacks`] | Whether to gate tracing callbacks behind a global enable flag. | xref:llvm/SanitizerCoverageOptions/IndirectCalls.adoc[`IndirectCalls`] | Whether to collect coverage for indirect calls. | xref:llvm/SanitizerCoverageOptions/Inline8bitCounters.adoc[`Inline8bitCounters`] | Whether to increment inline 8‐bit counters for every edge. | xref:llvm/SanitizerCoverageOptions/InlineBoolFlag.adoc[`InlineBoolFlag`] | Whether to set an inline boolean flag for every edge. | xref:llvm/SanitizerCoverageOptions/NoPrune.adoc[`NoPrune`] | Whether to skip pruning of instrumented blocks. | xref:llvm/SanitizerCoverageOptions/PCTable.adoc[`PCTable`] | Whether to create a static PC table of instrumented blocks. | xref:llvm/SanitizerCoverageOptions/StackDepth.adoc[`StackDepth`] | Whether to trace maximum stack depth. | xref:llvm/SanitizerCoverageOptions/StackDepthCallbackMin.adoc[`StackDepthCallbackMin`] | Minimum stack depth before invoking the stack‐depth callback. | xref:llvm/SanitizerCoverageOptions/TraceBB.adoc[`TraceBB`] | Whether to emit basic‐block tracing callbacks. | xref:llvm/SanitizerCoverageOptions/TraceCmp.adoc[`TraceCmp`] | Whether to trace comparison instructions. | xref:llvm/SanitizerCoverageOptions/TraceDiv.adoc[`TraceDiv`] | Whether to trace division instructions. | xref:llvm/SanitizerCoverageOptions/TraceGep.adoc[`TraceGep`] | Whether to trace GEP instructions. | xref:llvm/SanitizerCoverageOptions/TraceLoads.adoc[`TraceLoads`] | Whether to trace load instructions. | xref:llvm/SanitizerCoverageOptions/TracePC.adoc[`TracePC`] | Whether to emit PC tracing callbacks. | xref:llvm/SanitizerCoverageOptions/TracePCEntryExit.adoc[`TracePCEntryExit`] | Whether to emit separate PC entry/exit tracing callbacks. | xref:llvm/SanitizerCoverageOptions/TracePCGuard.adoc[`TracePCGuard`] | Whether to emit PC tracing with a per‐edge guard. | xref:llvm/SanitizerCoverageOptions/TraceStores.adoc[`TraceStores`] | Whether to trace store instructions. | xref:llvm/SanitizerCoverageOptions/Use8bitCounters.adoc[`Use8bitCounters`] | Whether to use 8‐bit coverage counters. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#