[mlir-tblgen] Emit forward declarations for all the classes before the definitions
authorMehdi Amini <aminim@google.com>
Mon, 29 Jul 2019 17:44:33 +0000 (10:44 -0700)
committerjpienaar <jpienaar@google.com>
Tue, 30 Jul 2019 13:17:03 +0000 (06:17 -0700)
commitb2c2b4bb1dfc048f3a5e13ce3875c304e13e671d
tree9cde1c961439cf115996a616adb6de4351b2aaa7
parent0fa1ea704cac754dfd4a226140746b391e0ea87c
[mlir-tblgen] Emit forward declarations for all the classes before the definitions

This allows classes to refer to each other in the ODS file, for instance for traits.

PiperOrigin-RevId: 260532419
mlir/test/mlir-tblgen/op-decl.td
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp