[all-commits] [llvm/llvm-project] 7b196f: [mlir][Rewrite] Add support for using an operation...
zero9178 via All-commits
all-commits at lists.llvm.org
Thu Feb 3 06:08:24 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7b196f1b093b49e5ab00c0483a8cda48c05e3e98
https://github.com/llvm/llvm-project/commit/7b196f1b093b49e5ab00c0483a8cda48c05e3e98
Author: Markus Böck <markus.boeck02 at gmail.com>
Date: 2022-02-03 (Thu, 03 Feb 2022)
Changed paths:
M mlir/lib/TableGen/Pattern.cpp
M mlir/test/lib/Dialect/Test/TestOps.td
M mlir/test/mlir-tblgen/pattern.mlir
M mlir/tools/mlir-tblgen/RewriterGen.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list