Skip to content

Commit 5568dcd

Browse files
authored
Revert "[IR2Vec] Initial infrastructure for MIR2Vec (#161463)"
This reverts commit 879f861.
1 parent 57f6923 commit 5568dcd

19 files changed

+22
-15235
lines changed

llvm/include/llvm/Analysis/IR2Vec.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,8 @@ class VocabStorage {
153153
/// Section-based storage
154154
std::vector<std::vector<Embedding>> Sections;
155155

156-
// Fixme: Check if these members can be made const (and delete move
157-
// assignment) after changing Vocabulary creation by using static factory
158-
// methods.
159-
size_t TotalSize = 0;
160-
unsigned Dimension = 0;
156+
const size_t TotalSize;
157+
const unsigned Dimension;
161158

162159
public:
163160
/// Default constructor creates empty storage (invalid state)
@@ -167,7 +164,7 @@ class VocabStorage {
167164
VocabStorage(std::vector<std::vector<Embedding>> &&SectionData);
168165

169166
VocabStorage(VocabStorage &&) = default;
170-
VocabStorage &operator=(VocabStorage &&) = default;
167+
VocabStorage &operator=(VocabStorage &&) = delete;
171168

172169
VocabStorage(const VocabStorage &) = delete;
173170
VocabStorage &operator=(const VocabStorage &) = delete;

llvm/include/llvm/CodeGen/MIR2Vec.h

Lines changed: 0 additions & 181 deletions
This file was deleted.

llvm/include/llvm/CodeGen/Passes.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ LLVM_ABI MachineFunctionPass *
8888
createMachineFunctionPrinterPass(raw_ostream &OS,
8989
const std::string &Banner = "");
9090

91-
/// MIR2VecVocabPrinter pass - This pass prints out the MIR2Vec vocabulary
92-
/// contents to the given stream as a debugging tool.
93-
LLVM_ABI MachineFunctionPass *
94-
createMIR2VecVocabPrinterLegacyPass(raw_ostream &OS);
95-
9691
/// StackFramePrinter pass - This pass prints out the machine function's
9792
/// stack frame to the given stream as a debugging tool.
9893
LLVM_ABI MachineFunctionPass *createStackFrameLayoutAnalysisPass();

llvm/include/llvm/InitializePasses.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,6 @@ LLVM_ABI void initializeMachinePostDominatorTreeWrapperPassPass(PassRegistry &);
220220
LLVM_ABI void initializeMachineRegionInfoPassPass(PassRegistry &);
221221
LLVM_ABI void
222222
initializeMachineSanitizerBinaryMetadataLegacyPass(PassRegistry &);
223-
LLVM_ABI void initializeMIR2VecVocabLegacyAnalysisPass(PassRegistry &);
224-
LLVM_ABI void initializeMIR2VecVocabPrinterLegacyPassPass(PassRegistry &);
225223
LLVM_ABI void initializeMachineSchedulerLegacyPass(PassRegistry &);
226224
LLVM_ABI void initializeMachineSinkingLegacyPass(PassRegistry &);
227225
LLVM_ABI void initializeMachineTraceMetricsWrapperPassPass(PassRegistry &);

0 commit comments

Comments
 (0)