Fill AddressSanitizer shadow-mapping parameters for a target.
Declared in <llvm/Transforms/Instrumentation/AddressSanitizerCommon.h>
void
getAddressSanitizerParams(
Triple const& TargetTriple,
int LongSize,
bool IsKasan,
uint64_t* ShadowBase,
int* MappingScale,
bool* OrShadowOffset);
| Name | Description |
|---|---|
| TargetTriple | Target triple that selects the shadow mapping. |
| LongSize | Pointer size in bits (32 or 64). |
| IsKasan | Whether to use KernelAddressSanitizer mapping. |
| ShadowBase | Filled with the shadow base offset. |
| MappingScale | Filled with the shadow mapping scale. |
| OrShadowOffset | Filled with whether the shadow offset is applied with OR rather than ADD. |