mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
[XRay][docs] Fix llvm snippets to be well-formed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286330 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
129c9fcdb8
commit
2adde22ecd
@ -96,11 +96,11 @@ C/C++/Objective-C source-level attributes would get:
|
||||
.. code-block:: llvm
|
||||
|
||||
define i32 @always_instrument() uwtable "function-instrument"="xray-always" {
|
||||
// ...
|
||||
; ...
|
||||
}
|
||||
|
||||
define i32 @never_instrument() uwtable "function-instrument"="xray-never" {
|
||||
// ...
|
||||
; ...
|
||||
}
|
||||
|
||||
You can also set the ``xray-instruction-threshold`` attribute and provide a
|
||||
@ -110,7 +110,7 @@ it gets instrumented.
|
||||
.. code-block:: llvm
|
||||
|
||||
define i32 @maybe_instrument() uwtable "xray-instruction-threshold"="2" {
|
||||
// ...
|
||||
; ...
|
||||
}
|
||||
|
||||
XRay Runtime Library
|
||||
|
Loading…
Reference in New Issue
Block a user