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

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 20 20:29:58 PDT 2024


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

> can you clarify what you mean by "by a string map"?

E.g. register the properties in `PassInstrumentationCallbacks` by creating a map
```c++
// in PIC
RequiredPropertiesMap[PassT::name()] = PassT::getRequiredProperties();
```
 and verify the properties in an instrumentation.

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


More information about the llvm-commits mailing list