diff options
author | Charles Davis <cdavis@mines.edu> | 2010-10-25 15:37:09 +0000 |
---|---|---|
committer | Charles Davis <cdavis@mines.edu> | 2010-10-25 15:37:09 +0000 |
commit | 970bfcc7d8b9991430caa7ab33975617f3f4c40d (patch) | |
tree | 4d3a6ad9273bd06be457f993741ac2b9cc78fca3 /docs | |
parent | d8c5ec6aece5732c766bd7d773ff75976d364168 (diff) | |
download | external_llvm-970bfcc7d8b9991430caa7ab33975617f3f4c40d.zip external_llvm-970bfcc7d8b9991430caa7ab33975617f3f4c40d.tar.gz external_llvm-970bfcc7d8b9991430caa7ab33975617f3f4c40d.tar.bz2 |
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LangRef.html | 5 |
1 files changed, 5 insertions, 0 deletions
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.</dd> + <dt><tt><b>hotpatch</b></tt></dt> + <dd>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.</dd> + <dt><tt><b>inlinehint</b></tt></dt> <dd>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 |