From 970bfcc7d8b9991430caa7ab33975617f3f4c40d Mon Sep 17 00:00:00 2001 From: Charles Davis Date: Mon, 25 Oct 2010 15:37:09 +0000 Subject: Add a new 'hotpatch' attribute. This attribute will insert a two-byte no-op instruction at the beginning of each function that has the attribute, allowing the function to be easily hooked and/or patched. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117264 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/LangRef.html b/docs/LangRef.html index e5db8c6..c2ee701 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -1131,6 +1131,11 @@ define void @f() optsize { ... } function into callers whenever possible, ignoring any active inlining size threshold for this caller. +
hotpatch
+
This attribute indicates that the prologue should contain a 'hotpatch' + sequence at the beginning. This is the same sequence used in the + system DLLs in Microsoft Windows XP Service Pack 2 and higher.
+
inlinehint
This attribute indicates that the source code contained a hint that inlining this function is desirable (such as the "inline" keyword in C/C++). It -- cgit v1.1