llvm-project/mlir
Markus Böck 7b196f1b09 [mlir][Rewrite] Add support for using an operation with no results as location
Prior to this patch, using an operation without any results as the location would result in the generation of invalid C++ code. It'd try to format using the result values, which would would end up being an empty string for an operation without any.
This patch fixes that issue by instead using getValueAndRangeUse which handles both ranges as well as the case for an op without any results.

Differential Revision: https://reviews.llvm.org/D118885
2022-02-03 15:08:09 +01:00
..
benchmark/python [mlir] Move SelectOp from Standard to Arithmetic 2022-02-02 14:45:12 -08:00
cmake/modules [MLIR] Workaround for python detection problems. 2022-01-27 13:32:29 -08:00
docs [mlir] Move SelectOp from Standard to Arithmetic 2022-02-02 14:45:12 -08:00
examples [mlir][NFC] Update Toy operations to use `hasVerifier` instead of `verifier` 2022-02-02 13:34:28 -08:00
include [mlir][vector] Sink StandardOps include to its user in VectorUtils 2022-02-03 12:34:41 +01:00
lib [mlir][Rewrite] Add support for using an operation with no results as location 2022-02-03 15:08:09 +01:00
python [mlir][vector][NFC] Split into IR, Transforms and Utils 2022-01-31 19:17:09 +09:00
test [mlir][Rewrite] Add support for using an operation with no results as location 2022-02-03 15:08:09 +01:00
tools [mlir][Rewrite] Add support for using an operation with no results as location 2022-02-03 15:08:09 +01:00
unittests [MLIR][Presburger] Use `SmallVector` instead of `std::vector` in `getLocalRepr` 2022-02-02 19:57:15 +05:30
utils [mlir] Set up boilerplate build for MLIR benchmarks 2022-01-27 21:38:15 +00:00
.clang-format
.clang-tidy Enable readability-redundant-smartptr-get in MLIR local clang-tidy config 2022-01-08 20:07:11 +00:00
CMakeLists.txt [mlir] Set up boilerplate build for MLIR benchmarks 2022-01-27 21:38:15 +00:00
LICENSE.TXT
README.md

README.md

Multi-Level Intermediate Representation

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