[PATCH] D139356: [AVR] Register AVRFrameAnalyzer pass with the pass manager
Ievgenii Meshcheriakov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 5 12:00:30 PST 2022
eugmes created this revision.
eugmes added a reviewer: dylanmckay.
eugmes added a project: LLVM.
Herald added subscribers: manas, ASDenysPetrov, Jim, dkrupp, donat.nagy, Szelethus, a.sidorin, baloghadamsoftware, hiraditya.
Herald added a project: All.
eugmes requested review of this revision.
This makes it possible to see the output from the pass
when using --print-after-all and other command line options.
Depends on D139352 <https://reviews.llvm.org/D139352>
Repository:
rG LLVM Github Monorepo
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
@@ -96,6 +96,7 @@
initializeAVRDAGToDAGISelPass(PR);
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,
+ true)
Index: llvm/lib/Target/AVR/AVR.h
===================================================================
--- llvm/lib/Target/AVR/AVR.h
+++ llvm/lib/Target/AVR/AVR.h
@@ -33,6 +33,7 @@
void initializeAVRDAGToDAGISelPass(PassRegistry &);
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.480188.patch
Type: text/x-patch
Size: 1350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221205/f8c19b87/attachment.bin>
More information about the llvm-commits
mailing list