[Mlir-commits] [mlir] [mlir] Add OpAsmTypeInterface for pretty-print (PR #121187)

Hongren Zheng llvmlistbot at llvm.org
Mon Jan 13 19:30:21 PST 2025


================
@@ -1820,7 +1824,9 @@ ParseResult parseDimensionList(OpAsmParser &parser,
 //===--------------------------------------------------------------------===//
 
 /// The OpAsmOpInterface, see OpAsmInterface.td for more details.
-#include "mlir/IR/OpAsmInterface.h.inc"
+#include "mlir/IR/OpAsmTypeInterface.h.inc"
+// put Attr/Type before Op
----------------
ZenithalHourlyRate wrote:

This was to prevent clang format from automatically sort them where the order becomes `Op->Type` but op depends on type. Now this restriction no longer exist, I'll clean it.

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


More information about the Mlir-commits mailing list