summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-09-18 18:34:07 +0000
committerXinliang David Li <davidxl@google.com>2016-09-18 18:34:07 +0000
commit4ca1733a06484bc97bca0835d3506b2939f8808f (patch)
tree451e61c60448f31a02992176cd3d0e75e554d347 /llvm/docs
parentfbbe75b1fe7aa6d2678ba692d945f07fc335e611 (diff)
downloadbcm5719-llvm-4ca1733a06484bc97bca0835d3506b2939f8808f.tar.gz
bcm5719-llvm-4ca1733a06484bc97bca0835d3506b2939f8808f.zip
[Profile] Implement select instruction instrumentation in IR PGO
Differential Revision: http://reviews.llvm.org/D23727 llvm-svn: 281858
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.rst31
1 files changed, 31 insertions, 0 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index e156245394e..1d05f61646d 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -9704,6 +9704,37 @@ structures and the code to increment the appropriate value, in a
format that can be written out by a compiler runtime and consumed via
the ``llvm-profdata`` tool.
+'``llvm.instrprof_increment_step``' Intrinsic
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+Syntax:
+"""""""
+
+::
+
+ declare void @llvm.instrprof_increment_step(i8* <name>, i64 <hash>,
+ i32 <num-counters>,
+ i32 <index>, i64 <step>)
+
+Overview:
+"""""""""
+
+The '``llvm.instrprof_increment_step``' intrinsic is an extension to
+the '``llvm.instrprof_increment``' intrinsic with an additional fifth
+argument to specify the step of the increment.
+
+Arguments:
+""""""""""
+The first four arguments are the same as '``llvm.instrprof_increment``'
+instrinsic.
+
+The last argument specifies the value of the increment of the counter variable.
+
+Semantics:
+""""""""""
+See description of '``llvm.instrprof_increment``' instrinsic.
+
+
'``llvm.instrprof_value_profile``' Intrinsic
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OpenPOWER on IntegriCloud