[llvm] [CodeGen] Support MachineFunctionProperties in PassConcept (PR #79749)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 29 05:20:05 PST 2024


================
@@ -43,7 +41,28 @@ extern template class AnalysisManager<MachineFunction>;
 /// automatically mixes in \c PassInfoMixin.
 template <typename DerivedT>
 struct MachinePassInfoMixin : public PassInfoMixin<DerivedT> {
-  // TODO: Add MachineFunctionProperties support.
+  static MachineFunctionProperties getRequiredProperties() {
+    return MachineFunctionProperties();
+  }
+  static MachineFunctionProperties getSetProperties() {
+    return MachineFunctionProperties();
+  }
+  static MachineFunctionProperties getClearedProperties() {
+    return MachineFunctionProperties();
+  }
----------------
paperchalice wrote:

Merge them into `PassInfoMixin` seems better.

https://github.com/llvm/llvm-project/pull/79749


More information about the llvm-commits mailing list