[mlir][ods] Fix substitutions for op custom string literals
authorJeff Niu <jeff@modular.com>
Thu, 13 Oct 2022 03:03:54 +0000 (20:03 -0700)
committerJeff Niu <jeff@modular.com>
Fri, 14 Oct 2022 16:33:07 +0000 (09:33 -0700)
commit8f5c5bbe71639e8dd44f16b53d4ba9603dc1ed89
treecb05d32ae7c2ab42ed6e3c4a06e7ae25cf58b63d
parent8b0e84a6f6be46b3b9002df161d398e403d184f6
[mlir][ods] Fix substitutions for op custom string literals

The context and builder did not receive the correct substitutes in the
printers. Also, the tests were incorrect (d'oh!)

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D135845
mlir/test/mlir-tblgen/op-format.td
mlir/tools/mlir-tblgen/OpFormatGen.cpp