about summary refs log tree commit diff
path: root/tests/rustdoc-ui
diff options
context:
space:
mode:
authorOleksii Lozovskyi <me@ilammy.net>2022-09-24 20:02:44 +0900
committerOleksii Lozovskyi <me@ilammy.net>2023-02-09 12:25:21 +0900
commit0e60df9ed1439cb9d7bcc1a09bf2fc87d03393b1 (patch)
tree7a7c2d687a42440c021c4190c01e13868832930b /tests/rustdoc-ui
parentef934d9b632b8ac00276558824664c104b92b5f0 (diff)
downloadrust-0e60df9ed1439cb9d7bcc1a09bf2fc87d03393b1.tar.gz
rust-0e60df9ed1439cb9d7bcc1a09bf2fc87d03393b1.zip
Parse "-Z instrument-xray" codegen option
Recognize all bells and whistles that LLVM's XRay pass is capable of.
The always/never settings are a bit dumb without attributes but they're
still there. The default instruction count is chosen by the compiler,
not LLVM pass. We'll do it later.
Diffstat (limited to 'tests/rustdoc-ui')
-rw-r--r--tests/rustdoc-ui/z-help.stdout9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/z-help.stdout b/tests/rustdoc-ui/z-help.stdout
index 4f07fca82d1..2169b89c929 100644
--- a/tests/rustdoc-ui/z-help.stdout
+++ b/tests/rustdoc-ui/z-help.stdout
@@ -70,6 +70,15 @@
         `=except-unused-functions`
         `=off` (default)
     -Z                       instrument-mcount=val -- insert function instrument code for mcount-based tracing (default: no)
+    -Z                         instrument-xray=val -- insert function instrument code for XRay-based tracing (default: no)
+         Optional extra settings:
+         `=always`
+         `=never`
+         `=ignore-loops`
+         `=instruction-threshold=N`
+         `=skip-entry`
+         `=skip-exit`
+         Multiple options can be combined with commas.
     -Z                       keep-hygiene-data=val -- keep hygiene data after analysis (default: no)
     -Z                             layout-seed=val -- seed layout randomization
     -Z                   link-native-libraries=val -- link native libraries in the linker invocation (default: yes)