llvm::getAddressSanitizerParams

Fill AddressSanitizer shadow-mapping parameters for a target.

Synopsis

Declared in <llvm/Transforms/Instrumentation/AddressSanitizerCommon.h>

void
getAddressSanitizerParams(
    Triple const& TargetTriple,
    int LongSize,
    bool IsKasan,
    uint64_t* ShadowBase,
    int* MappingScale,
    bool* OrShadowOffset);

Parameters

NameDescription
TargetTripleTarget triple that selects the shadow mapping.
LongSizePointer size in bits (32 or 64).
IsKasanWhether to use KernelAddressSanitizer mapping.
ShadowBaseFilled with the shadow base offset.
MappingScaleFilled with the shadow mapping scale.
OrShadowOffsetFilled with whether the shadow offset is applied with OR rather than ADD.