[llvm] [SelectionDAG] Add support to filter SelectionDAG dumps during ISel by function names (PR #72696)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 20 10:32:01 PST 2023


================
@@ -61,6 +61,10 @@ class SelectionDAGISel : public MachineFunctionPass {
   /// Used to report things like combines and FastISel failures.
   std::unique_ptr<OptimizationRemarkEmitter> ORE;
 
+  /// True if the function currently processing is in the function printing list
+  /// (i.e. `-filter-print-funcs`).
----------------
ilovepi wrote:

Probably worth noting here (or in the macro?) that we want to cache this value so we don't have to query the module and scan the list at every print? seems like a detail that would be easy to miss later.

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


More information about the llvm-commits mailing list