OS Manuals

/usr/bin/llvm-extract

Low-level virtual machine 17 - core frameworks

From llvm-17 17.0.6-r30 (os), captured 2026-11-05 by running llvm-extract --help (exit 0). permalink

OVERVIEW: llvm extractor

USAGE: llvm-extract [options] <input bitcode file>

OPTIONS:

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-extract Options:

  --alias=<alias>              - Specify alias to extract
  --bb=<function:bb1[;bb2...]> - Specify <function, basic block1[;basic block2...]> pairs to extract.
                                 Each pair will create a function.
                                 If multiple basic blocks are specified in one pair,
                                 the first block in the sequence should dominate the rest.
                                 eg:
                                   --bb=f:bb1;bb2 will extract one function with both bb1 and bb2;
                                   --bb=f:bb1 --bb=f:bb2 will extract two functions, one with bb1, one with bb2.
  --delete                     - Delete specified Globals from Module
  -f                           - Enable binary output on terminals
  --func=<function>            - Specify function to extract
  --glob=<global>              - Specify global to extract
  --keep-const-init            - Keep initializers of constants
  -o <filename>                - Specify output filename
  --ralias=<ralias>            - Specify alias(es) to extract using a regular expression
  --recursive                  - Recursively extract all called functions
  --rfunc=<rfunction>          - Specify function(s) to extract using a regular expression
  --rglob=<rglobal>            - Specify global(s) to extract using a regular expression
Options (14)
OptionDescriptionSource
--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
--alias alias- Specify alias to extracthelp
--delete- Delete specified Globals from Modulehelp
-f- Enable binary output on terminalshelp
--func function- Specify function to extracthelp
--glob global- Specify global to extracthelp
--keep-const-init- Keep initializers of constantshelp
-o filename- Specify output filenamehelp
--ralias ralias- Specify alias(es) to extract using a regular expressionhelp
--recursive- Recursively extract all called functionshelp
--rfunc rfunction- Specify function(s) to extract using a regular expressionhelp
--rglob rglobal- Specify global(s) to extract using a regular expressionhelp

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