5 Commits

Author SHA1 Message Date
Jeff Niu
e95e94adc6
[mlir][test] Reorganize the test dialect (#89424)
This PR massively reorganizes the Test dialect's source files. It moves
manually-written op hooks into `TestOpDefs.cpp`, moves format custom
directive parsers and printers into `TestFormatUtils`, adds missing
comment blocks, and moves around where generated source files are
included for types, attributes, enums, etc. into their own source file.

This will hopefully help navigate the test dialect source code, but also
speeds up compile time of the test dialect by putting generated source
files into separate compilation units.

This also sets up the test dialect to shard its op definitions, done in
the next PR.
2024-04-22 13:42:05 -07:00
Mehdi Amini
1cf4cc007b Apply clang-tidy fixes for readability-identifier-naming in TestBytecodeCallbacks.cpp (NFC) 2024-02-19 16:41:28 -08:00
Mehdi Amini
3029acb8e2 Apply clang-tidy fixes for llvm-qualified-auto in TestBytecodeCallbacks.cpp (NFC) 2024-02-19 16:41:28 -08:00
Kazu Hirata
5bfa16cbc6 [mlir] Fix an unused variable warning
This patch fixes:

  mlir/test/lib/IR/TestBytecodeRoundtrip.cpp:403:10: error: unused
  variable 'status' [-Werror,-Wunused-variable]
2023-10-31 15:58:26 -07:00
Matteo Franciolini
7ad9e9dcf5
[mlir][bytecode] Implements back deployment capability for MLIR dialects (#70724)
When emitting bytecode, clients can specify a target dialect version to
emit in `BytecodeWriterConfig`. This exposes a target dialect version to
the DialectBytecodeWriter, which can be queried by name and used to
back-deploy attributes, types, and properties.
2023-10-31 15:41:29 -07:00