|
LLVM 22.0.0git
|
This file implements the MIR2Vec algorithm for Machine IR embeddings. More...
#include "llvm/CodeGen/MIR2Vec.h"#include "llvm/ADT/DepthFirstIterator.h"#include "llvm/ADT/Statistic.h"#include "llvm/CodeGen/TargetInstrInfo.h"#include "llvm/IR/Module.h"#include "llvm/InitializePasses.h"#include "llvm/Pass.h"#include "llvm/Support/Errc.h"#include "llvm/Support/MemoryBuffer.h"#include "llvm/Support/Regex.h"Go to the source code of this file.
Namespaces | |
| namespace | llvm |
| This is an optimization pass for GlobalISel generic memory operations. | |
| namespace | llvm::mir2vec |
Macros | |
| #define | DEBUG_TYPE "mir2vec" |
Variables | |
| static cl::opt< std::string > | llvm::mir2vec::VocabFile ("mir2vec-vocab-path", cl::Optional, cl::desc("Path to the vocabulary file for MIR2Vec"), cl::init(""), cl::cat(MIR2VecCategory)) |
| cl::opt< MIR2VecKind > | llvm::mir2vec::MIR2VecEmbeddingKind ("mir2vec-kind", cl::Optional, cl::values(clEnumValN(MIR2VecKind::Symbolic, "symbolic", "Generate symbolic embeddings for MIR")), cl::init(MIR2VecKind::Symbolic), cl::desc("MIR2Vec embedding kind"), cl::cat(MIR2VecCategory)) |
| mir2vec vocab | analysis |
| mir2vec vocab MIR2Vec Vocabulary | Analysis |
| mir2vec vocab MIR2Vec Vocabulary | false |
| print mir2vec | vocab |
| print mir2vec MIR2Vec Vocabulary Printer | Pass |
| mir2vec | |
This file implements the MIR2Vec algorithm for Machine IR embeddings.
Definition in file MIR2Vec.cpp.
| #define DEBUG_TYPE "mir2vec" |
Definition at line 28 of file MIR2Vec.cpp.
| INITIALIZE_PASS_BEGIN | ( | MIR2VecPrinterLegacyPass | , |
| "print-mir2vec" | , | ||
| "MIR2Vec Embedder Printer Pass" | , | ||
| false | , | ||
| true | ) |
References INITIALIZE_PASS_DEPENDENCY.
| INITIALIZE_PASS_BEGIN | ( | MIR2VecVocabLegacyAnalysis | , |
| "mir2vec-vocab-analysis" | , | ||
| "MIR2Vec Vocabulary Analysis" | , | ||
| false | , | ||
| true | ) |
References INITIALIZE_PASS_DEPENDENCY.
| INITIALIZE_PASS_BEGIN | ( | MIR2VecVocabPrinterLegacyPass | , |
| "print-mir2vec-vocab" | , | ||
| "MIR2Vec Vocabulary Printer Pass" | , | ||
| false | , | ||
| true | ) |
References INITIALIZE_PASS_DEPENDENCY.
| STATISTIC | ( | MIRVocabMissCounter | , |
| "Number of lookups to MIR entities not present in the vocabulary" | ) |
Definition at line 506 of file MIR2Vec.cpp.
Definition at line 505 of file MIR2Vec.cpp.
Definition at line 506 of file MIR2Vec.cpp.
| print mir2vec |
Definition at line 629 of file MIR2Vec.cpp.
Definition at line 593 of file MIR2Vec.cpp.
Referenced by analyzeFunction(), llvm::AllocTokenPass::run(), and llvm::SanitizerBinaryMetadataPass::run().
Definition at line 592 of file MIR2Vec.cpp.