[X86] Support function attribute "patchable-function-entry"
authorFangrui Song <maskray@google.com>
Sun, 5 Jan 2020 03:52:36 +0000 (19:52 -0800)
committerFangrui Song <maskray@google.com>
Fri, 10 Jan 2020 17:57:28 +0000 (09:57 -0800)
commita8fbdc576990653e92ce1d766659005678fd8514
treef20511e92aa62c1bf8bde8634dcb4b1e53c53b47
parent4d1e23e3b3cd7c72a8b24dc5acb7e13c58a8de37
[X86] Support function attribute "patchable-function-entry"

For x86-64, we diverge from GCC -fpatchable-function-entry in that we
emit multi-byte NOPs.

Differential Revision: https://reviews.llvm.org/D72220
llvm/lib/Target/X86/X86MCInstLower.cpp
llvm/test/CodeGen/X86/patchable-function-entry.ll [new file with mode: 0644]