OS Manuals

/usr/lib/llvm-23/bin/llvm-reduce

Low-level virtual machine 23 - core frameworks

From llvm-23 23.1.5-r0 (os), captured 2026-11-05 by running llvm-reduce --help (exit 0). permalink

OVERVIEW: LLVM automatic testcase reducer.
See https://llvm.org/docs/CommandGuide/llvm-reduce.html for more information.

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
  --aggressive-named-md-reduction                   - Reduce named metadata without taking its type into account
  --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
  --print-invalid-reduction-machine-verifier-errors - Print machine verifier errors on invalid reduction attempts triple
  --reduce-callsite-inline-threshold=<int>          - Number of instructions in a function to unconditionally inline (-1 for inline all)
  --skip-delta-passes=<string>                      - Delta passes to not run, separated by commas. By default, run all delta passes.
  --skip-verify-interesting-after-counting-chunks   - Do not validate testcase is interesting after counting chunks (may speed up reduction)
  --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 (23)
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
--aggressive-named-md-reduction- Reduce named metadata without taking its type into accounthelp
--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
--reduce-callsite-inline-threshold int- Number of instructions in a function to unconditionally inline (-1 for inline all)help
--skip-delta-passes string- Delta passes to not run, separated by commas.help
--skip-verify-interesting-after-counting-chunks- Do not validate testcase is interesting after counting chunks (may speed up reduction)help
--starting-granularity-level uint- Number of times to divide chunks prior to first testhelp
--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.