|
LLVM 22.0.0git
|
Class for computing Symbolic embeddings Symbolic embeddings are constructed based on the entity-level representations obtained from the MIR Vocabulary. More...
#include "llvm/CodeGen/MIR2Vec.h"
Public Member Functions | |
| SymbolicMIREmbedder (const MachineFunction &F, const MIRVocabulary &Vocab) | |
| Public Member Functions inherited from llvm::mir2vec::MIREmbedder | |
| virtual | ~MIREmbedder ()=default |
| Embedding | getMInstVector (const MachineInstr &MI) const |
| Computes and returns the embedding for a given machine instruction MI in the machine function MF. | |
| Embedding | getMBBVector (const MachineBasicBlock &MBB) const |
| Computes and returns the embedding for a given machine basic block in the machine function MF. | |
| Embedding | getMFunctionVector () const |
| Computes and returns the embedding for the current machine function. | |
Static Public Member Functions | |
| static std::unique_ptr< SymbolicMIREmbedder > | create (const MachineFunction &MF, const MIRVocabulary &Vocab) |
| Static Public Member Functions inherited from llvm::mir2vec::MIREmbedder | |
| static std::unique_ptr< MIREmbedder > | create (MIR2VecKind Mode, const MachineFunction &MF, const MIRVocabulary &Vocab) |
| Factory method to create an Embedder object of the specified kind Returns nullptr if the requested kind is not supported. | |
Additional Inherited Members | |
| Protected Member Functions inherited from llvm::mir2vec::MIREmbedder | |
| MIREmbedder (const MachineFunction &MF, const MIRVocabulary &Vocab) | |
| Embedding | computeEmbeddings () const |
| Function to compute embeddings. | |
| Embedding | computeEmbeddings (const MachineBasicBlock &MBB) const |
| Function to compute the embedding for a given machine basic block. | |
| Protected Attributes inherited from llvm::mir2vec::MIREmbedder | |
| const MachineFunction & | MF |
| const MIRVocabulary & | Vocab |
| const unsigned | Dimension |
| Dimension of the embeddings; Captured from the vocabulary. | |
| const float | OpcWeight |
| Weight for opcode embeddings. | |
| const float | CommonOperandWeight |
| const float | RegOperandWeight |
Class for computing Symbolic embeddings Symbolic embeddings are constructed based on the entity-level representations obtained from the MIR Vocabulary.
| SymbolicMIREmbedder::SymbolicMIREmbedder | ( | const MachineFunction & | F, |
| const MIRVocabulary & | Vocab ) |
Definition at line 558 of file MIR2Vec.cpp.
References llvm::mir2vec::MIREmbedder::MF, llvm::mir2vec::MIREmbedder::MIREmbedder(), and llvm::mir2vec::MIREmbedder::Vocab.
|
static |
Definition at line 563 of file MIR2Vec.cpp.
References llvm::mir2vec::MIREmbedder::MF, and llvm::mir2vec::MIREmbedder::Vocab.