[PATCH] D19908: [X86] Support the "ms-hotpatch" attribute.

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Sun May 29 15:45:05 PDT 2016


sanjoy added a comment.

Sorry for the delayed response, I thought I pressed submit, when I hadn't.


================
Comment at: lib/CodeGen/PatchableFunction.cpp:43
@@ -42,3 +42,3 @@
   if (!MF.getFunction()->hasFnAttribute("patchable-function"))
     return false;
 
----------------
You'd have to add a TTI hook or re-purposes an existing one that generates the code for you (I agree that hard-coding X86 instructions here is a bad idea).


http://reviews.llvm.org/D19908





More information about the llvm-commits mailing list