LLVM: llvm::mir2vec::SymbolicMIREmbedder Class Reference (original) (raw)
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](MIR2Vec%5F8h%5Fsource.html)"
Inheritance diagram for llvm::mir2vec::SymbolicMIREmbedder:
| 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. |
| Additional Inherited Members | |
|---|---|
| Protected Member Functions inherited from llvm::mir2vec::MIREmbedder | |
| MIREmbedder (const MachineFunction &MF, const MIRVocabulary &Vocab) | |
| LLVM_ABI Embedding | computeEmbeddings () const |
| Function to compute embeddings. | |
| LLVM_ABI 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 |
Detailed Description
Class for computing Symbolic embeddings Symbolic embeddings are constructed based on the entity-level representations obtained from the MIR Vocabulary.
Definition at line 350 of file MIR2Vec.h.
Constructor & Destructor Documentation
Member Function Documentation
◆ create()
The documentation for this class was generated from the following files:
- include/llvm/CodeGen/MIR2Vec.h
- lib/CodeGen/MIR2Vec.cpp