[Mlir-commits] [mlir] [mlir][EmitC] Add custom assembly format to constant and variable ops (PR #87618)

Simon Camphausen llvmlistbot at llvm.org
Mon Apr 15 02:08:15 PDT 2024


simon-camp wrote:

> Would this be possible with a custom parse function like in https://github.com/llvm/llvm-project/blob/main/mlir/lib/Dialect/EmitC/IR/EmitC.cpp#L325?

Altering the syntax by attribute kind should be doable if this is what's suggested here. We could print typed attributes in arith syntax and opaque attributes in llvm syntax (or some other syntax that separates the opaque attribute from the type). Just the arith syntax for opaque attributes won't work.


https://github.com/llvm/llvm-project/pull/87618


More information about the Mlir-commits mailing list