@@ -56,16 +56,21 @@ enum SelectedPasses {
56
56
Just ( SmallVec < [ String ; 1 ] > ) ,
57
57
}
58
58
59
- #[ allow( dead_code) ]
60
59
#[ derive( Default , Debug ) ]
61
60
enum OpFilter {
62
61
/// Print all operations
63
62
#[ default]
64
63
All ,
65
64
/// Print any `Symbol` operation, optionally filtering by symbols whose name contains a given
66
65
/// string.
66
+ /// NOTE: Currently marked as `dead_code` since it is not configured via the CLI. See
67
+ /// [`Print::with_symbol_filter`] for more details.
68
+ #[ allow( dead_code) ]
67
69
Symbol ( Option < & ' static str > ) ,
68
70
/// Print only operations of the given type
71
+ /// NOTE: Currently marked as `dead_code` since it is not configured via the CLI. See
72
+ /// [`Print::with_symbol_filter`] for more details.
73
+ #[ allow( dead_code) ]
69
74
Type {
70
75
dialect : crate :: interner:: Symbol ,
71
76
op : crate :: interner:: Symbol ,
@@ -99,10 +104,12 @@ impl Print {
99
104
self
100
105
}
101
106
102
- #[ allow( unused_mut) ]
103
- fn with_symbol_filter ( mut self , _config : & IRPrintingConfig ) -> Self {
104
- // NOTE: At the moment, symbol filtering is not processed by the CLI. However, were it to be
105
- // added, it could be done inside this function
107
+ /// Configure which operations are printed. This is set via the different variants present in
108
+ /// [`OpFilter`].
109
+ ///
110
+ /// NOTE: At the moment, all operations are shown because symbol filtering is not processed by
111
+ /// the CLI. If added, this function could be expanded to process it.
112
+ fn with_symbol_filter ( self , _config : & IRPrintingConfig ) -> Self {
106
113
self . with_all_symbols ( )
107
114
}
108
115
0 commit comments