[llvm] [CodeGen] Support MachineFunctionProperties in PassConcept (PR #79749)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 09:53:26 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, are these templates just to work around the IR -> CodeGen depenency? that's not great
let me try some things locally, like making a completely separate MachineFunctionPassManager
https://github.com/llvm/llvm-project/pull/79749
More information about the llvm-commits
mailing list