9#ifndef LLVM_LIB_TARGET_AARCH64_AARCH64POINTERAUTH_H
10#define LLVM_LIB_TARGET_AARCH64_AARCH64POINTERAUTH_H
94#define AUTH_CHECK_METHOD_CL_VALUES_COMMON \
95 clEnumValN(AArch64PAuth::AuthCheckMethod::None, "none", \
96 "Do not check authenticated address"), \
97 clEnumValN(AArch64PAuth::AuthCheckMethod::DummyLoad, "load", \
98 "Perform dummy load from authenticated address"), \
100 AArch64PAuth::AuthCheckMethod::HighBitsNoTBI, "high-bits-notbi", \
101 "Compare bits 62 and 61 of address (TBI should be disabled)"), \
102 clEnumValN(AArch64PAuth::AuthCheckMethod::XPAC, "xpac", \
103 "Compare with the result of XPAC (requires Armv8.3-a)")
105#define AUTH_CHECK_METHOD_CL_VALUES_LR \
106 AUTH_CHECK_METHOD_CL_VALUES_COMMON, \
107 clEnumValN(AArch64PAuth::AuthCheckMethod::XPACHint, "xpac-hint", \
108 "Compare with the result of XPACLRI")
unsigned getCheckerSizeInBytes(AuthCheckMethod Method)
Returns the number of bytes added by checkAuthenticatedRegister.
constexpr AArch64PACKey::ID InitFiniKey
PAuth key to be used with function pointers in .init_array and .fini_array.
AuthCheckMethod
Variants of check performed on an authenticated pointer.
@ XPACHint
Check by comparing the authenticated value with an XPAC-ed one without using PAuth instructions not e...
@ DummyLoad
Perform a load to a temporary register.
@ HighBitsNoTBI
Check by comparing bits 62 and 61 of the authenticated address.
@ None
Do not check the value at all.
@ XPAC
Similar to XPACHint but using Armv8.3-only XPAC instruction, thus not restricted to LR:
constexpr unsigned InitFiniPointerConstantDiscriminator
Constant discriminator to be used with function pointers in .init_array and .fini_array.
This is an optimization pass for GlobalISel generic memory operations.