llvm-project/mlir/tools/mlir-tblgen
Lei Zhang 76cb205326 [TableGen] Enforce constraints on attributes
Previously, attribute constraints are basically unused: we set true for almost
    anything. This CL refactors common attribute kinds and sets constraints on
    them properly. And fixed verification failures found by this change.

    A noticeable one is that certain TF ops' attributes are required to be 64-bit
    integer, but the corresponding TFLite ops expect 32-bit integer attributes.
    Added bitwidth converters to handle this difference.

--

PiperOrigin-RevId: 241944008
2019-04-05 07:40:50 -07:00
..
CMakeLists.txt Add build files and update README. 2019-03-30 11:23:22 -07:00
LLVMIRConversionGen.cpp Replace remaining usages of the Instruction class with Operation. 2019-03-29 17:50:04 -07:00
OpDefinitionsGen.cpp [TableGen] Rework verifier generation and error messages 2019-04-05 07:40:31 -07:00
OpDocGen.cpp Change Value to NamedTypeConstraint and use TypeConstraint. 2019-03-29 17:22:51 -07:00
ReferenceImplGen.cpp Port Tablegen'd reference implementation of Add to declarative builders. 2019-03-29 17:22:36 -07:00
RewriterGen.cpp [TableGen] Enforce constraints on attributes 2019-04-05 07:40:50 -07:00
mlir-tblgen.cpp Merge mlir-op-gen and mlir-rewriter-gen into mlir-tblgen. 2019-03-29 14:39:05 -07:00