[PATCH] D139356: [AVR] Register AVRFrameAnalyzer pass with the pass manager
Ievgenii Meshcheriakov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 6 11:00:06 PST 2022
eugmes updated this revision to Diff 480551.
eugmes added a comment.
Removed dependency on D139350 <https://reviews.llvm.org/D139350>. `AVRFrameAnalyzer` has it's own ID and so does not have the same problems as ISel Passes.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139356/new/
https://reviews.llvm.org/D139356
Files:
llvm/lib/Target/AVR/AVR.h
llvm/lib/Target/AVR/AVRFrameLowering.cpp
llvm/lib/Target/AVR/AVRTargetMachine.cpp
Index: llvm/lib/Target/AVR/AVRTargetMachine.cpp
===================================================================
--- llvm/lib/Target/AVR/AVRTargetMachine.cpp
+++ llvm/lib/Target/AVR/AVRTargetMachine.cpp
@@ -95,6 +95,7 @@
auto &PR = *PassRegistry::getPassRegistry();
initializeAVRExpandPseudoPass(PR);
initializeAVRShiftExpandPass(PR);
+ initializeAVRFrameAnalyzerPass(PR);
}
const AVRSubtarget *AVRTargetMachine::getSubtargetImpl() const {
Index: llvm/lib/Target/AVR/AVRFrameLowering.cpp
===================================================================
--- llvm/lib/Target/AVR/AVRFrameLowering.cpp
+++ llvm/lib/Target/AVR/AVRFrameLowering.cpp
@@ -486,3 +486,8 @@
FunctionPass *createAVRFrameAnalyzerPass() { return new AVRFrameAnalyzer(); }
} // end of namespace llvm
+
+using namespace llvm;
+
+INITIALIZE_PASS(AVRFrameAnalyzer, "avr-frame", "AVR Frame Analyzer", false,
+ false)
Index: llvm/lib/Target/AVR/AVR.h
===================================================================
--- llvm/lib/Target/AVR/AVR.h
+++ llvm/lib/Target/AVR/AVR.h
@@ -32,6 +32,7 @@
void initializeAVRShiftExpandPass(PassRegistry &);
void initializeAVRExpandPseudoPass(PassRegistry &);
+void initializeAVRFrameAnalyzerPass(PassRegistry &);
/// Contains the AVR backend.
namespace AVR {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139356.480551.patch
Type: text/x-patch
Size: 1310 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221206/d1021600/attachment.bin>
More information about the llvm-commits
mailing list