[llvm] [CodeGen] Support MachineFunctionProperties in PassConcept (PR #79749)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 12:34:32 PST 2024
================
@@ -1317,6 +1351,23 @@ struct InvalidateAnalysisPass
auto PassName = MapClassName2PassName(ClassName);
OS << "invalidate<" << PassName << '>';
}
+
+ // MachineFunctionPass interface, define them separately to prevent
+ // dependency on CodeGen
+ template <typename MachineFunctionPropertiesT = MachineFunctionProperties>
+ static MachineFunctionPropertiesT getRequiredProperties() {
+ return MachineFunctionPropertiesT();
+ }
+
+ template <typename MachineFunctionPropertiesT = MachineFunctionProperties>
----------------
aeubanks wrote:
oh I see that `PassModel` in PassManagerInternal.h also does this...
https://github.com/llvm/llvm-project/pull/79749
More information about the llvm-commits
mailing list