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-reg-operand-weight=<number> - Weight for register operand embeddings
--mir2vec-vocab-path=<string> - Path to the vocabulary file for MIR2Vec
Options (14)
| Option | Description | Source |
|---|
--mode value | - Tool operation mode: =llvm - Process LLVM IR =mir - Process Machine IR | help |
-o filename | - Output filename | 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 program | help |
--ir2vec-arg-weight number | - Weight for argument embeddings | help |
--ir2vec-kind value | - IR2Vec embedding kind =symbolic - Generate symbolic embeddings =flow-aware - Generate flow-aware embeddings | help |
--ir2vec-opc-weight number | - Weight for opcode embeddings | help |
--ir2vec-type-weight number | - Weight for type embeddings | help |
--ir2vec-vocab-path string | - Path to the vocabulary file for IR2Vec | help |
--mir2vec-kind value | - MIR2Vec embedding kind =symbolic - Generate symbolic embeddings for MIR | help |
--mir2vec-opc-weight number | - Weight for machine opcode embeddings | help |
--mir2vec-reg-operand-weight number | - Weight for register operand embeddings | help |
--mir2vec-vocab-path string | - Path to the vocabulary file for MIR2Vec | help |
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.