[PATCH] D72221: Support function attribute patchable_function_entry

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 4 21:13:25 PST 2020


MaskRay created this revision.
MaskRay added reviewers: dberris, kristof.beyls, nickdesaulniers, rnk, rsmith, void.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
MaskRay added a parent revision: D72220: [X86] Support function attribute "patchable-function-entry".
MaskRay added a child revision: D72222: [Driver][CodeGen] Add -fpatchable-function-entry=N[,M].

This feature is generic. Make it applicable for AArch64 and X86 because
the backend has only implemented NOP insertion for AArch64 and X86.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72221

Files:
  clang/include/clang/Basic/Attr.td
  clang/include/clang/Basic/AttrDocs.td
  clang/lib/CodeGen/CodeGenFunction.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/CodeGen/patchable-function-entry.c
  clang/test/Misc/pragma-attribute-supported-attributes-list.test
  clang/test/Sema/patchable-function-entry-attr.c
  clang/test/Sema/patchable-function-entry-attr.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72221.236219.patch
Type: text/x-patch
Size: 7625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200105/1fd5d9a1/attachment-0001.bin>


More information about the cfe-commits mailing list