forked from OSchip/llvm-project
d14cfe1034
This tweaks the generated code for parsing attributes with a custom directive to call `addAttribute` on the `OperationState` directly, and adds a newline after this call. Previously, the generated code would call `addAttribute` on the `OperationState` field `attributes`, which has no such method and fails to compile. Furthermore, the lack of newline would generate code with incorrectly formatted single line `if` statements. Added tests for parsing and printing attributes with a custom directive. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D87860 |
||
---|---|---|
.. | ||
dialect.td | ||
expect-symbol.td | ||
interfaces.mlir | ||
llvm-intrinsics.td | ||
op-attribute.td | ||
op-decl.td | ||
op-derived-attribute.mlir | ||
op-format-spec.td | ||
op-format.mlir | ||
op-interface.td | ||
op-operand.td | ||
op-result.td | ||
op-side-effects.td | ||
openmp-common.td | ||
pattern.mlir | ||
predicate.td | ||
return-types.mlir | ||
types.mlir |