llvm-project/mlir/test/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
..
attr-enum.td [TableGen] Enforce constraints on attributes 2019-04-05 07:40:50 -07:00
directive-verifyUnusedValue.td [TableGen] Support multiple result patterns 2019-03-29 17:07:50 -07:00
op-attribute.td [TableGen] Enforce constraints on attributes 2019-04-05 07:40:50 -07:00
op-decl.td Rewrite the verify hooks on operations to use LogicalResult instead of bool. This also changes the return of Operation::emitError/emitOpError to LogicalResult as well. 2019-04-02 13:40:47 -07:00
op-operand.td Rewrite the verify hooks on operations to use LogicalResult instead of bool. This also changes the return of Operation::emitError/emitOpError to LogicalResult as well. 2019-04-02 13:40:47 -07:00
op-result.td [TableGen] Remove asserts for attributes in aggregate builders 2019-04-03 09:30:49 -07:00
pattern-attr.td [TableGen] Enforce constraints on attributes 2019-04-05 07:40:50 -07:00
pattern-benefit.td [TableGen] Support benefit score in pattern definition. 2019-03-29 17:55:55 -07:00
pattern-bound-symbol.td [TableGen] Enforce constraints on attributes 2019-04-05 07:40:50 -07:00
pattern-multi-result-op.td [TableGen] Allow additional result patterns not directly used for replacement 2019-04-03 19:20:22 -07:00
pattern-tAttr.td [TableGen] Enforce constraints on attributes 2019-04-05 07:40:50 -07:00
pattern.td [TableGen] Add PatternSymbolResolver for resolving symbols bound in patterns 2019-04-05 07:40:41 -07:00
predicate.td [TableGen] Enforce constraints on attributes 2019-04-05 07:40:50 -07:00
reference-impl.td Cleanup ValueHandleArray 2019-03-29 17:35:20 -07:00