[llvm] [CodeGen] Support MachineFunctionProperties in PassConcept (PR #79749)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 01:40:25 PST 2024
================
@@ -1292,9 +1297,33 @@ struct RequireAnalysisPass
OS << "require<" << PassName << '>';
}
static bool isRequired() { return true; }
+
+ template <typename MachineFunctionT = IRUnitT,
+ typename MachineFunctionPropertiesT = MachineFunctionProperties,
+ typename = std::enable_if_t<
+ std::is_same_v<MachineFunctionT, MachineFunction>>>
+ static MachineFunctionPropertiesT getRequiredProperties() {
+ return MachineFunctionPropertiesT();
+ }
----------------
arsenm wrote:
Line breaks between functions?
https://github.com/llvm/llvm-project/pull/79749
More information about the llvm-commits
mailing list