Hi, I want to dump an IR where each
Value has a layout
Values have the same layout. I don’t want to print the full layout string each time it appears in the IR, but only once at the beginning and use alias in the IR:
#layout0 = a_very_long_layout_string #layout1 = a_very_long_layout_string %2 = arith.add %0, %1: #layout0 %3 = arith.add %4, %5: #layout0
I noticed that the
PassManager prints in this format before and after passes, but when I print like this:
llvm::outs() << myFuncOp;
alias will not be used.
I think there might be a certain option that controls this, but I failed to find it in the source code.
Thanks in advance!