OS Manuals

/usr/lib/llvm-23/bin/llvm-ir2vec

Low-level virtual machine 23 - core frameworks

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

OVERVIEW: IR2Vec/MIR2Vec - Embedding Generation Tool
Generates embeddings for a given LLVM IR or MIR and supports triplet generation for vocabulary training and embedding generation.

See https://llvm.org/docs/CommandGuide/llvm-ir2vec.html for more information.

USAGE: llvm-ir2vec [subcommand] [options]

SUBCOMMANDS:

  embeddings - Generate embeddings using trained vocabulary
  entities   - Generate entity mappings for vocabulary training
  triplets   - Generate triplets for vocabulary training

  Type "llvm-ir2vec <subcommand> --help" to get more help on a specific subcommand

OPTIONS:

Common Options:
Options applicable to both IR2Vec and MIR2Vec modes

  --mode=<value>                           - Tool operation mode:
    =llvm                                  -   Process LLVM IR
    =mir                                   -   Process Machine IR
  -o <filename>                            - Output filename

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

IR2Vec Options:

  --ir2vec-arg-weight=<number>             - Weight for argument embeddings
  --ir2vec-kind=<value>                    - IR2Vec embedding kind
    =symbolic                              -   Generate symbolic embeddings
    =flow-aware                            -   Generate flow-aware embeddings
  --ir2vec-opc-weight=<number>             - Weight for opcode embeddings
  --ir2vec-type-weight=<number>            - Weight for type embeddings
  --ir2vec-vocab-path=<string>             - Path to the vocabulary file for IR2Vec

MIR2Vec Options:

  --mir2vec-common-operand-weight=<number> - Weight for common operand embeddings
  --mir2vec-kind=<value>                   - MIR2Vec embedding kind
    =symbolic                              -   Generate symbolic embeddings for MIR
  --mir2vec-opc-weight=<number>            - Weight for machine opcode embeddings
  --mir2vec-print-all-vocab-entries        - Print all vocabulary entries including zero embeddings
  --mir2vec-reg-operand-weight=<number>    - Weight for register operand embeddings
  --mir2vec-vocab-path=<string>            - Path to the vocabulary file for MIR2Vec
Options (15)
OptionDescriptionSource
--mode value- Tool operation mode: =llvm - Process LLVM IR =mir - Process Machine IRhelp
-o filename- Output filenamehelp
--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
--ir2vec-arg-weight number- Weight for argument embeddingshelp
--ir2vec-kind value- IR2Vec embedding kind =symbolic - Generate symbolic embeddings =flow-aware - Generate flow-aware embeddingshelp
--ir2vec-opc-weight number- Weight for opcode embeddingshelp
--ir2vec-type-weight number- Weight for type embeddingshelp
--ir2vec-vocab-path string- Path to the vocabulary file for IR2Vechelp
--mir2vec-kind value- MIR2Vec embedding kind =symbolic - Generate symbolic embeddings for MIRhelp
--mir2vec-opc-weight number- Weight for machine opcode embeddingshelp
--mir2vec-print-all-vocab-entries- Print all vocabulary entries including zero embeddingshelp
--mir2vec-reg-operand-weight number- Weight for register operand embeddingshelp
--mir2vec-vocab-path string- Path to the vocabulary file for MIR2Vechelp

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