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.
This commit is contained in:
parent
ef934d9b63
commit
0e60df9ed1
5 changed files with 146 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue