[Mlir-commits] [mlir] [mlir][AsmPrinter] Print op properties directly in generic form (PR #106996)
Andrei Golubev
llvmlistbot at llvm.org
Mon Sep 2 08:06:59 PDT 2024
andrey-golubev wrote:
> The infra is setup so that you can parse back an IR in the generic form without registering the operation parser: you would introduce some sort of a custom syntax here in the generic form that can't be generically parsed. Seems like a departure of the generic format invariant?
Oh, you're right, I think I missed that. Would it be an option to also have "parseProperties" (if it's not there already) in the generic op form?
Fwiw, the real problem I'm trying to solve is "do not convert properties to attributes". Apparently, in my case I could get a generic-op-form printer to fire sometimes (e.g. from logs) and this would go through a conversion (that I meticulously try to abolish).
https://github.com/llvm/llvm-project/pull/106996
More information about the Mlir-commits
mailing list