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

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 12 09:46:56 PDT 2024


================
@@ -64,6 +64,8 @@ extern llvm::cl::opt<bool> UseNewDbgInfoFormat;
 
 namespace llvm {
 
+class MachineFunction;
----------------
aeubanks wrote:

either way the pass author needs to write a couple of lines of code to say to check certain properties; IMO putting it in the actual pass makes it more explicit and less magicky

is there a reason you say that it would be more annoying to put in the actual pass? I think adding pass manager infra for this complicates things a lot

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


More information about the llvm-commits mailing list