[PATCH] D32528: Register two missing passes with PassRegistry
Sven van Haastregt via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 26 03:23:40 PDT 2017
svenvh created this revision.
Herald added a subscriber: mzolotukhin.
PrinterLoopPassWrapper and FreeMachineFunction were not registered
with the PassRegistry. Register them for consistency.
Patch by Simone Pellegrini.
https://reviews.llvm.org/D32528
Files:
include/llvm/InitializePasses.h
lib/Analysis/LoopPass.cpp
lib/CodeGen/MachineModuleInfo.cpp
Index: lib/CodeGen/MachineModuleInfo.cpp
===================================================================
--- lib/CodeGen/MachineModuleInfo.cpp
+++ lib/CodeGen/MachineModuleInfo.cpp
@@ -320,6 +320,9 @@
}
} // end namespace llvm
+INITIALIZE_PASS(FreeMachineFunction, "freemachinefunction",
+ "Free the MachineFunction", false, false)
+
//===- MMI building helpers -----------------------------------------------===//
void llvm::computeUsesVAFloatArgument(const CallInst &I,
Index: lib/Analysis/LoopPass.cpp
===================================================================
--- lib/Analysis/LoopPass.cpp
+++ lib/Analysis/LoopPass.cpp
@@ -20,6 +20,7 @@
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/OptBisect.h"
#include "llvm/IR/PassManager.h"
+#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Timer.h"
#include "llvm/Support/raw_ostream.h"
@@ -61,6 +62,9 @@
char PrintLoopPassWrapper::ID = 0;
}
+INITIALIZE_PASS(PrintLoopPassWrapper, "print-loop",
+ "Print loop to stderr", false, false)
+
//===----------------------------------------------------------------------===//
// LPPassManager
//
Index: include/llvm/InitializePasses.h
===================================================================
--- include/llvm/InitializePasses.h
+++ include/llvm/InitializePasses.h
@@ -137,6 +137,7 @@
void initializeFloat2IntLegacyPassPass(PassRegistry&);
void initializeForceFunctionAttrsLegacyPassPass(PassRegistry&);
void initializeForwardControlFlowIntegrityPass(PassRegistry&);
+void initializeFreeMachineFunctionPass(PassRegistry&);
void initializeFuncletLayoutPass(PassRegistry&);
void initializeFunctionImportLegacyPassPass(PassRegistry&);
void initializeGCMachineCodeAnalysisPass(PassRegistry&);
@@ -295,6 +296,7 @@
void initializePredicateInfoPrinterLegacyPassPass(PassRegistry&);
void initializePrintBasicBlockPassPass(PassRegistry&);
void initializePrintFunctionPassWrapperPass(PassRegistry&);
+void initializePrintLoopPassWrapperPass(PassRegistry&);
void initializePrintModulePassWrapperPass(PassRegistry&);
void initializeProcessImplicitDefsPass(PassRegistry&);
void initializeProfileSummaryInfoWrapperPassPass(PassRegistry&);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32528.96700.patch
Type: text/x-patch
Size: 2231 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170426/69406638/attachment.bin>
More information about the llvm-commits
mailing list