summaryrefslogtreecommitdiff
path: root/clang/test/Sema/patchable-function-entry-attr.cpp
AgeCommit message (Collapse)Author
2025-09-09[PowerPC] Support `-fpatchable-function-entry` on PPC64LE (#151569)Maryam Moghadas
This patch enables `-fpatchable-function-entry` on PPC64 little-endian Linux. It is mutually exclusive with existing XRay instrumentation on this target.
2025-07-08[Clang] include attribute scope in diagnostics (#144619)Oleksandr T.
This patch updates diagnostics to print fully qualified attribute names, including scope when present.
2025-05-09[Clang] show attribute namespace in diagnostics (#138519)Oleksandr T.
This patch enhances Clang's diagnosis of an unknown attribute by printing the attribute's namespace in the diagnostic text. e.g., ```cpp [[foo::nodiscard]] int f(); // warning: unknown attribute 'foo::nodiscard' ignored ```
2024-07-22[PowerPC] Support -fpatchable-function-entry (#92997)Chen Zheng
For now only PPC big endian Linux 32 and 64 bit are supported. PPC little endian Linux has XRAY support for 64-bit. PPC AIX has different patchable function entry implementations. Fixes #63220 Fixes #57031
2023-03-16[Clang][LoongArch] Implement patchable function entryWANG Xuerui
Similar to D98610 for RISCV. This is going to be required by the upcoming Linux/LoongArch [[ https://git.kernel.org/linus/4733f09d88074 | support for dynamic ftrace ]]. Reviewed By: SixWeining, MaskRay Differential Revision: https://reviews.llvm.org/D141785
2021-03-16[RISCV] Support clang -fpatchable-function-entry && GNU function attribute ↵Fangrui Song
'patchable_function_entry' Similar to D72215 (AArch64) and D72220 (x86). ``` % clang -target riscv32 -march=rv64g -c -fpatchable-function-entry=2 a.c && llvm-objdump -dr a.o ... 0000000000000000 <main>: 0: 13 00 00 00 nop 4: 13 00 00 00 nop % clang -target riscv32 -march=rv64gc -c -fpatchable-function-entry=2 a.c && llvm-objdump -dr a.o ... 00000002 <main>: 2: 01 00 nop 4: 01 00 nop ``` Recently the mainline kernel started to use -fpatchable-function-entry=8 for riscv (https://git.kernel.org/linus/afc76b8b80112189b6f11e67e19cf58301944814). Differential Revision: https://reviews.llvm.org/D98610
2020-05-06[Sema] Allow function attribute patchable_function_entry on aarch64_beFangrui Song
Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D79495
2020-01-10Support function attribute patchable_function_entryFangrui Song
This feature is generic. Make it applicable for AArch64 and X86 because the backend has only implemented NOP insertion for AArch64 and X86. Reviewed By: nickdesaulniers, aaron.ballman Differential Revision: https://reviews.llvm.org/D72221