summaryrefslogtreecommitdiffstats
path: root/llvm/docs/LangRef.html
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2010-10-25 15:37:09 +0000
committerCharles Davis <cdavis@mines.edu>2010-10-25 15:37:09 +0000
commit22fe18625de76e06edbd0c329949cb064dddf1ff (patch)
tree170e6e647323de12fa43997a0c10509f17cd04b6 /llvm/docs/LangRef.html
parentb0f4757fe648e0149d64767079927837c7b5dc3c (diff)
downloadbcm5719-llvm-22fe18625de76e06edbd0c329949cb064dddf1ff.tar.gz
bcm5719-llvm-22fe18625de76e06edbd0c329949cb064dddf1ff.zip
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. llvm-svn: 117264
Diffstat (limited to 'llvm/docs/LangRef.html')
-rw-r--r--llvm/docs/LangRef.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index e5db8c69cfa..c2ee7019b96 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/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
OpenPOWER on IntegriCloud