Conversation
| show(io, mod) | ||
| end | ||
| @error "Dumped module to " * path | ||
| throw("failed to run pass manager on module") |
There was a problem hiding this comment.
Continuing from https://github.com/EnzymeAD/Reactant.jl/pull/959/files#r2003996116, how do I print the name of the pass here? Can I just interpolate $(pm) here?
There was a problem hiding this comment.
oh right, no you can't (the code we have in compiler.jl run_pass_pipeline or whatnot does have that info)
There was a problem hiding this comment.
Uhm, PassManager doesn't seem to have a dedicate show method. So what you want to see (and how to print it)?
There was a problem hiding this comment.
You can show(IR.OpPassManager(passManager)) which should have the pipeline
| API.mlirPassManagerRun(pm, mod) | ||
| end) | ||
| if isfailure(status) | ||
| dir = mktempdir() |
There was a problem hiding this comment.
This directory (with cleanup=true by default) isn't very useful: it'll disappear at julia exit, making the MLIR module unusable: PRONTOLab/GB-25#95 (comment). I'll address this in a follow up PR.
Ref: #959 (comment)