Skip to content

Commit 3838fb6

Browse files
Add documentation for the Print struct
Signed-off-by: Tomas Fabrizio Orsi <[email protected]>
1 parent e0669e8 commit 3838fb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hir/src/pass.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ use crate::{
2121
EntityRef, Operation, OperationName, OperationRef,
2222
};
2323

24-
/// A `Pass` which prints IR it is run on, based on provided configuration.
24+
/// Struct that handles IR printing, based on provided configuration.
25+
/// It is configured via the following CLI flags:
26+
/// -Z print-ir-after-all: Enable IR printing for every pass.
27+
/// -Z print-ir-after-pass: Enable IR printing only for some passes.
28+
/// -Z print-ir-after-modified.: Only print the IR if it has been been modified.
2529
#[derive(Default)]
2630
pub struct Print {
2731
op_filter: Option<OpFilter>,

0 commit comments

Comments
 (0)