[llvm] 43badc0 - [NewPM/CodeGen] Move MachineModuleInfo::invalidate() to MachineModuleAnalysis::Result
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 7 16:13:19 PST 2024
Author: Arthur Eubanks
Date: 2024-02-08T00:12:06Z
New Revision: 43badc0a9644d032fe0176410fabda6ac1fddf19
URL: https://github.com/llvm/llvm-project/commit/43badc0a9644d032fe0176410fabda6ac1fddf19
DIFF: https://github.com/llvm/llvm-project/commit/43badc0a9644d032fe0176410fabda6ac1fddf19.diff
LOG: [NewPM/CodeGen] Move MachineModuleInfo::invalidate() to MachineModuleAnalysis::Result
Missed in #80937 since it's not currently being used.
Added:
Modified:
llvm/include/llvm/CodeGen/MachineModuleInfo.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/MachineModuleInfo.h b/llvm/include/llvm/CodeGen/MachineModuleInfo.h
index 08fc8542a4eeb..5f66d1ada0d08 100644
--- a/llvm/include/llvm/CodeGen/MachineModuleInfo.h
+++ b/llvm/include/llvm/CodeGen/MachineModuleInfo.h
@@ -192,12 +192,6 @@ class MachineModuleInfo {
unsigned getCurrentCallSite() { return CurCallSite; }
/// \}
-
- // MMI owes MCContext. It should never be invalidated.
- bool invalidate(Module &, const PreservedAnalyses &,
- ModuleAnalysisManager::Invalidator &) {
- return false;
- }
}; // End class MachineModuleInfo
class MachineModuleInfoWrapperPass : public ImmutablePass {
@@ -237,6 +231,12 @@ class MachineModuleAnalysis : public AnalysisInfoMixin<MachineModuleAnalysis> {
public:
MachineModuleInfo &getMMI() { return MMI; }
+
+ // MMI owes MCContext. It should never be invalidated.
+ bool invalidate(Module &, const PreservedAnalyses &,
+ ModuleAnalysisManager::Invalidator &) {
+ return false;
+ }
};
MachineModuleAnalysis(MachineModuleInfo &MMI) : MMI(MMI) {}
More information about the llvm-commits
mailing list