[llvm] [PassManager] Support MachineFunctionProperties (PR #83668)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 06:57:49 PDT 2024


================
@@ -365,6 +365,34 @@ class TriggerVerifierErrorPass
   static StringRef name() { return "TriggerVerifierErrorPass"; }
 };
 
+// A pass requires all MachineFunctionProperties.
+// DO NOT USE THIS EXCEPT FOR TESTING!
+class RequireAllMachineFunctionPropertiesPass
+    : public MachinePassInfoMixin<RequireAllMachineFunctionPropertiesPass> {
+public:
+  PreservedAnalyses run(MachineFunction &MF, MachineFunctionAnalysisManager &) {
+    PropertyChanger PC(MF);
----------------
paperchalice wrote:

If we choose not to expose the relevant details of MachineFunction to PassManager, this may be unavoidable 😕.

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


More information about the llvm-commits mailing list