OS Manuals

/usr/lib/llvm-16/bin/llvm-reduce

Low-level virtual machine 16 - core frameworks

From llvm-16 16.0.6-r37 (os), captured 2026-11-05 by running llvm-reduce --help (exit 0). permalink

OVERVIEW: LLVM automatic testcase reducer.

USAGE: llvm-reduce [options] <input llvm ll/bc file>

OPTIONS:

Color Options:

  --color                             - Use colors in output (default=autodetect)

Generic Options:

  --help                              - Display available options (--help-hidden for more)
  --help-list                         - Display list of available options (--help-list-hidden for more)
  --version                           - Display the version of this program

llvm-reduce options:

  --abort-on-invalid-reduction        - Abort if any reduction results in invalid IR
  --delta-passes=<string>             - Delta passes to run, separated by commas. By default, run all delta passes.
  --in-place                          - WARNING: This option will replace your input file with the reduced version!
  --ir-passes=<string>                - A textual description of the pass pipeline, same as what's passed to `opt -passes`.
  -j <uint>                           - Maximum number of threads to use to process chunks. Set to 1 to disable parallelism.
  --max-pass-iterations=<int>         - Maximum number of times to run the full set of delta passes (default=5)
  --mtriple=<string>                  - Set the target triple
  --preserve-debug-environment        - Don't disable features used for crash debugging (crash reports, llvm-symbolizer and core dumps)
  --print-delta-passes                - Print list of delta passes, passable to --delta-passes as a comma separated list
  --skip-delta-passes=<string>        - Delta passes to not run, separated by commas. By default, run all delta passes.
  --starting-granularity-level=<uint> - Number of times to divide chunks prior to first test
  --test=<string>                     - Name of the interesting-ness test to be run
  --test-arg=<string>                 - Arguments passed onto the interesting-ness test
  --verbose                           - Print extra debugging information
  --write-tmp-files-as-bitcode        - Always write temporary files as bitcode instead of textual IR
  -x=<value>                          - Input language ('ir' or 'mir')
    =ir
    =mir
Options (19)
OptionDescriptionSource
--color- Use colors in output (default=autodetect)help
--help- Display available options (--help-hidden for more)help
--help-list- Display list of available options (--help-list-hidden for more)help
--version- Display the version of this programhelp
--abort-on-invalid-reduction- Abort if any reduction results in invalid IRhelp
--delta-passes string- Delta passes to run, separated by commas.help
--in-place- WARNING: This option will replace your input file with the reduced version!help
--ir-passes string- A textual description of the pass pipeline, same as what's passed to `opt -passes`.help
-j uint- Maximum number of threads to use to process chunks.help
--max-pass-iterations int- Maximum number of times to run the full set of delta passes (default=5)help
--mtriple string- Set the target triplehelp
--preserve-debug-environment- Don't disable features used for crash debugging (crash reports, llvm-symbolizer and core dumps)help
--print-delta-passes- Print list of delta passes, passable to --delta-passes as a comma separated listhelp
--skip-delta-passes string- Delta passes to not run, separated by commas.help
--test string- Name of the interesting-ness test to be runhelp
--test-arg string- Arguments passed onto the interesting-ness testhelp
--verbose- Print extra debugging informationhelp
--write-tmp-files-as-bitcode- Always write temporary files as bitcode instead of textual IRhelp
-x value- Input language ('ir' or 'mir') =ir =mirhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.