[PATCH] D19046: Introduce a "patchable-prologue" function attribute

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 12 19:38:32 PDT 2016


sanjoy created this revision.
sanjoy added reviewers: rnk, joker.eph, echristo.
sanjoy added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

`"patchable-prologue"` can be used by an LLVM client to make LLVM
generate function prologues that are easily patchable (i.e. can be
overwritten at runtime to redirect control).  Right now only scheme for
patchable prologue is supported, `"hotpatch-compact"`, but this can be
expanded in the future.  For instance, we could use
`"patchable-prologue"` to support MSVC style hotpatching.

http://reviews.llvm.org/D19046

Files:
  docs/LangRef.rst
  include/llvm/CodeGen/Passes.h
  include/llvm/InitializePasses.h
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/CMakeLists.txt
  lib/CodeGen/CodeGen.cpp
  lib/CodeGen/Passes.cpp
  lib/CodeGen/PatchablePrologues.cpp
  lib/Target/X86/X86ISelLowering.cpp
  lib/Target/X86/X86ISelLowering.h
  test/CodeGen/X86/patchable-prologue.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19046.53513.patch
Type: text/x-patch
Size: 11199 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160413/fa622a83/attachment.bin>


More information about the llvm-commits mailing list