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

Christudasan Devadasan via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 7 21:28:37 PST 2024


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

We shouldn't have any of the MIR machinery in the files meant for IR. My hesitation is MIR being a target-specific entity, an edge case for a specific target might require some of its properties to be exposed here. I understand we want to have a unified PM for both IR and MIR passes in the LLC pipeline. But can't we have a separate folder to accommodate designs common to IR and MIR infrastructure?

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


More information about the llvm-commits mailing list