[all-commits] [llvm/llvm-project] 955fe3: [clang] Implement -fptrauth-auth-traps. (#102417)
Ahmed Bougacha via All-commits
all-commits at lists.llvm.org
Tue Aug 13 00:03:29 PDT 2024
Branch: refs/heads/release/19.x
Home: https://github.com/llvm/llvm-project
Commit: 955fe3f1ef193d26c73fb54ab6e01a818a6bde8e
https://github.com/llvm/llvm-project/commit/955fe3f1ef193d26c73fb54ab6e01a818a6bde8e
Author: Ahmed Bougacha <ahmed at bougacha.org>
Date: 2024-08-13 (Tue, 13 Aug 2024)
Changed paths:
M clang/include/clang/Basic/PointerAuthOptions.h
M clang/lib/CodeGen/CodeGenFunction.cpp
M clang/lib/Frontend/CompilerInvocation.cpp
M clang/test/CodeGen/ptrauth-function-attributes.c
Log Message:
-----------
[clang] Implement -fptrauth-auth-traps. (#102417)
This provides -fptrauth-auth-traps, which at the frontend level only
controls the addition of the "ptrauth-auth-traps" function attribute.
The attribute in turn controls various aspects of backend codegen, by
providing the guarantee that every "auth" operation generated will trap
on failure.
This can either be delegated to the hardware (if AArch64 FPAC is known
to be available), in which case this attribute doesn't change codegen.
Otherwise, if FPAC isn't available, this asks the backend to emit
additional instructions to check and trap on auth failure.
(cherry picked from commit d179acd0484bac30c5ebbbed4d29a4734d92ac93)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list