llvm.org GIT mirror llvm / 04ea7c6
OptDiag: Use DiagnosticLocation in MachineOptimizationRemarks DiagnosticInfo switched from DebugLoc to DiagnosticLocation in r295519, update these subclasses to match. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296052 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Bogner 3 years ago
1 changed file(s) with 13 addition(s) and 11 deletion(s). Raw diff Collapse all Expand all
2828 class DiagnosticInfoMIROptimization : public DiagnosticInfoOptimizationBase {
2929 public:
3030 DiagnosticInfoMIROptimization(enum DiagnosticKind Kind, const char *PassName,
31 StringRef RemarkName, const DebugLoc &DLoc,
31 StringRef RemarkName,
32 const DiagnosticLocation &Loc,
3233 const MachineBasicBlock *MBB)
3334 : DiagnosticInfoOptimizationBase(Kind, DS_Remark, PassName, RemarkName,
34 *MBB->getParent()->getFunction(), DLoc),
35 *MBB->getParent()->getFunction(), Loc),
3536 MBB(MBB) {}
3637
3738 /// MI-specific kinds of diagnostic Arguments.
5758 /// \p PassName is the name of the pass emitting this diagnostic. If this name
5859 /// matches the regular expression given in -Rpass=, then the diagnostic will
5960 /// be emitted. \p RemarkName is a textual identifier for the remark. \p
60 /// DLoc is the debug location and \p MBB is the block that the optimization
61 /// Loc is the debug location and \p MBB is the block that the optimization
6162 /// operates in.
6263 MachineOptimizationRemark(const char *PassName, StringRef RemarkName,
63 const DebugLoc &DLoc, const MachineBasicBlock *MBB)
64 const DiagnosticLocation &Loc,
65 const MachineBasicBlock *MBB)
6466 : DiagnosticInfoMIROptimization(DK_MachineOptimizationRemark, PassName,
65 RemarkName, DLoc, MBB) {}
67 RemarkName, Loc, MBB) {}
6668
6769 static bool classof(const DiagnosticInfo *DI) {
6870 return DI->getKind() == DK_MachineOptimizationRemark;
8082 /// \p PassName is the name of the pass emitting this diagnostic. If this name
8183 /// matches the regular expression given in -Rpass-missed=, then the
8284 /// diagnostic will be emitted. \p RemarkName is a textual identifier for the
83 /// remark. \p DLoc is the debug location and \p MBB is the block that the
85 /// remark. \p Loc is the debug location and \p MBB is the block that the
8486 /// optimization operates in.
8587 MachineOptimizationRemarkMissed(const char *PassName, StringRef RemarkName,
86 const DebugLoc &DLoc,
88 const DiagnosticLocation &Loc,
8789 const MachineBasicBlock *MBB)
8890 : DiagnosticInfoMIROptimization(DK_MachineOptimizationRemarkMissed,
89 PassName, RemarkName, DLoc, MBB) {}
91 PassName, RemarkName, Loc, MBB) {}
9092
9193 static bool classof(const DiagnosticInfo *DI) {
9294 return DI->getKind() == DK_MachineOptimizationRemarkMissed;
104106 /// \p PassName is the name of the pass emitting this diagnostic. If this name
105107 /// matches the regular expression given in -Rpass-analysis=, then the
106108 /// diagnostic will be emitted. \p RemarkName is a textual identifier for the
107 /// remark. \p DLoc is the debug location and \p MBB is the block that the
109 /// remark. \p Loc is the debug location and \p MBB is the block that the
108110 /// optimization operates in.
109111 MachineOptimizationRemarkAnalysis(const char *PassName, StringRef RemarkName,
110 const DebugLoc &DLoc,
112 const DiagnosticLocation &Loc,
111113 const MachineBasicBlock *MBB)
112114 : DiagnosticInfoMIROptimization(DK_MachineOptimizationRemarkAnalysis,
113 PassName, RemarkName, DLoc, MBB) {}
115 PassName, RemarkName, Loc, MBB) {}
114116
115117 static bool classof(const DiagnosticInfo *DI) {
116118 return DI->getKind() == DK_MachineOptimizationRemarkAnalysis;