llvm-project/mlir
Martin Erhart edb77864ef [mlir][assemblyFormat] Fix bug when using AttrSizedOperandSegments trait with only non-buildable operand types
Summary:
When creating an operation with
* `AttrSizedOperandSegments` trait
* Variadic operands of only non-buildable types
* assemblyFormat to automatically generate the parser
the `builder` local variable is used, but never declared.
This adds a fix as well as a test for this case as existing ones use buildable types only.

Reviewers: rriddle, Kayjukh, grosser

Reviewed By: Kayjukh

Subscribers: mehdi_amini, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, Joonsoo, grosul1, frgossen, llvm-commits

Tags: #mlir, #llvm

Differential Revision: https://reviews.llvm.org/D79004
2020-04-28 18:27:05 +02:00
..
cmake/modules [MLIR] Fix MLIR_MAIN_[SRC|INCLUDE]_DIR variables 2020-04-12 09:29:07 +03:00
docs Revert "[MLIR] Introduce op trait PolyhedralScope" 2020-04-28 14:50:57 +02:00
examples [mlir][flang] use OpBuilder& instead of Builder* in <Op>::build methods 2020-04-28 10:42:08 +02:00
include [MLIR] Give AffineStoreOp and AffineLoadOp Memory SideEffects. 2020-04-28 15:45:25 +02:00
lib [MLIR] Give AffineStoreOp and AffineLoadOp Memory SideEffects. 2020-04-28 15:45:25 +02:00
test [mlir][assemblyFormat] Fix bug when using AttrSizedOperandSegments trait with only non-buildable operand types 2020-04-28 18:27:05 +02:00
tools [mlir][assemblyFormat] Fix bug when using AttrSizedOperandSegments trait with only non-buildable operand types 2020-04-28 18:27:05 +02:00
unittests [mlir][flang] use OpBuilder& instead of Builder* in <Op>::build methods 2020-04-28 10:42:08 +02:00
utils [mlir][spirv] NFC: use Optional to replace SPV_Optional 2020-04-13 15:44:06 -04:00
.clang-format [mlir] add .clang-format 2019-03-29 12:41:43 -07:00
.clang-tidy Fix MLIR clang-tidy: when tweaking it does not inherit from the parent 2020-03-07 17:44:21 +00:00
CMakeLists.txt [MLIR] Fix MLIR_MAIN_[SRC|INCLUDE]_DIR variables 2020-04-12 09:29:07 +03:00
LICENSE.TXT Add the Apache2 with LLVM exceptions license to MLIR 2019-12-24 00:58:06 -08:00
README.md mlir README.md: Fix the syntax 2019-12-24 13:31:07 +01:00

README.md

Multi-Level Intermediate Representation

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