Similar to D98610 for RISCV.
This is going to be required by the upcoming Linux/LoongArch
support for dynamic ftrace.
Paths
| Differential D141785
[Clang][LoongArch] Implement patchable function entry ClosedPublic Authored by xen0n on Jan 15 2023, 2:25 AM.
Details Summary Similar to D98610 for RISCV. This is going to be required by the upcoming Linux/LoongArch
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 15 2023, 2:25 AM Comment Actions Does anyone know why patchable-function-entry is not documented in https://llvm.org/docs/LangRef.html#function-attributes?
Comment Actions The Clang bits LGTM, though you should add a release note about the new functionality so users know about it.
Comment Actions Rebase and change to lower the op in LoongArchAsmPrinter so as to make people's lives easier when they come to rebase D141785 on top of this. This revision is now accepted and ready to land.Feb 15 2023, 5:44 PM Closed by commit rGdb5dfec9d444: [Clang][LoongArch] Implement patchable function entry (authored by WANG Xuerui <git@xen0n.name>, committed by SixWeining). · Explain WhyMar 15 2023, 6:34 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 505680 clang/docs/ReleaseNotes.rst
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/fpatchable-function-entry.c
clang/test/Sema/patchable-function-entry-attr.cpp
llvm/lib/Target/LoongArch/LoongArchAsmPrinter.h
llvm/lib/Target/LoongArch/LoongArchAsmPrinter.cpp
llvm/lib/Target/LoongArch/LoongArchInstrInfo.h
llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp
llvm/test/CodeGen/LoongArch/patchable-function-entry.ll
|