llvm-project/mlir
gysit e3b442b62f [mlir][OpDSL] Separate `ReduceFn` and `ReduceFnUse`.
The revision distinguishes `ReduceFn` and `ReduceFnUse`. The latter has the reduction dimensions attached while the former specifies the arithmetic function only. This separation allows us to adapt the reduction syntax a little bit and specify the reduction dimensions using square brackets (in contrast to the round brackets used for the values to reduce). It als is a preparation to add reduction function attributes to OpDSL. A reduction function attribute shall only specify the arithmetic function and not the reduction dimensions.

Example:
```
ReduceFn.max_unsigned(D.kh, D.kw)(...)
```
changes to:
```
ReduceFn.max_unsigned[D.kh, D.kw](...)
```

Depends On D115240

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D115241
2022-01-07 12:51:06 +00:00
..
cmake/modules [mlir][ods] AttrOrTypeGen uses Class 2021-12-01 16:53:23 +00:00
docs [mlir][OpDSL] Separate `ReduceFn` and `ReduceFnUse`. 2022-01-07 12:51:06 +00:00
examples Fix clang-tidy issues in mlir/ (NFC) 2021-12-20 20:25:01 +00:00
include [mlir][OpDSL] Rename `PrimFn` to `ArithFn`. 2022-01-07 12:38:03 +00:00
lib [mlir][OpDSL] Rename `PrimFn` to `ArithFn`. 2022-01-07 12:38:03 +00:00
python [mlir][OpDSL] Separate `ReduceFn` and `ReduceFnUse`. 2022-01-07 12:51:06 +00:00
test [mlir][OpDSL] Separate `ReduceFn` and `ReduceFnUse`. 2022-01-07 12:51:06 +00:00
tools [mlir][OpDSL] Rename `PrimFn` to `ArithFn`. 2022-01-07 12:38:03 +00:00
unittests [MLIR] Add division normalization by GCD in `getDivRepr` fn. 2022-01-06 16:18:50 +05:30
utils Update mlir GDB printers 2022-01-06 22:20:25 +01:00
.clang-format
.clang-tidy Enable a few clang-tidy checks in MLIR 2022-01-02 01:05:06 +00:00
CMakeLists.txt Build MLIR with -Werror=mismatched-tags (NFC) 2021-12-08 05:59:06 +00:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

See https://mlir.llvm.org/ for more information.