llvm-project/mlir/tools
River Riddle 8c39e70679 [mlir][OpFormatGen] Add support for eliding UnitAttr when used to anchor an optional group
Unit attributes are given meaning by their existence, and thus have no meaningful value beyond "is it present". As such, in the format of an operation unit attributes are generally used to guard the printing of other elements and aren't generally printed themselves; as the presence of the group when parsing means that the unit attribute should be added. This revision adds support to the declarative format for eliding unit attributes in situations where they anchor an optional group, but aren't the first element.

For example,
```
let assemblyFormat = "(`is_optional` $unit_attr^)? attr-dict";
```

would print `foo.op is_optional` when $unit_attr is present, instead of the current `foo.op is_optional unit`.

Differential Revision: https://reviews.llvm.org/D84577
2020-08-03 14:31:41 -07:00
..
mlir-cpu-runner [MLIR] Move JitRunner to live with ExecutionEngine 2020-05-15 14:37:10 -07:00
mlir-cuda-runner Clean up cuda-runtime-wrappers API. 2020-07-28 16:34:08 +02:00
mlir-linalg-ods-gen [mlir][Linalg] Retire C++ MatmulOp in favor of a linalg-ods-gen'd op. 2020-06-16 10:46:35 -04:00
mlir-opt [mlir] First-party modeling of LLVM types 2020-08-03 15:45:29 +02:00
mlir-reduce Create the MLIR Reduce framework 2020-07-07 23:42:53 +00:00
mlir-rocm-runner [mlir] fix error handling in rocm runtime wrapper 2020-07-29 22:08:42 +02:00
mlir-shlib [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
mlir-tblgen [mlir][OpFormatGen] Add support for eliding UnitAttr when used to anchor an optional group 2020-08-03 14:31:41 -07:00
mlir-translate [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
mlir-vulkan-runner [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
CMakeLists.txt Create the MLIR Reduce framework 2020-07-07 23:42:53 +00:00