aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2023-07-28 16:03:33 +0000
committerAlex Zinenko <zinenko@google.com>2023-07-31 15:42:56 +0000
commit1f8618f88c58509d0ef8fae813f708a9dc2a86d8 (patch)
tree4291dfcffad156e2e58d3ad5464a6621b002a7c8 /llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
parent235390d930be41c32c71f877d90470fc83e2cb89 (diff)
downloadllvm-1f8618f88c58509d0ef8fae813f708a9dc2a86d8.zip
llvm-1f8618f88c58509d0ef8fae813f708a9dc2a86d8.tar.gz
llvm-1f8618f88c58509d0ef8fae813f708a9dc2a86d8.tar.bz2
[mlir] python enum bindings generator
Add an ODS (tablegen) backend to generate Python enum classes and attribute builders for enum attributes defined in ODS. This will allow us to keep the enum attribute definitions in sync between C++ and Python, as opposed to handwritten enum classes in Python that may end up using mismatching values. This also makes autogenerated bindings more convenient even in absence of mixins. Use this backend for the transform dialect failure propagation mode enum attribute as demonstration. Reviewed By: ingomueller-net Differential Revision: https://reviews.llvm.org/D156553
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp')
0 files changed, 0 insertions, 0 deletions