llvm-project/mlir/lib
Sean Silva caf4f2e372 [mlir] Handle unknown ops in dynamic_tensor_from_elements bufferization
Due to how the conversion infra works, the "clone" call that this
pattern was using required all the cloned ops to be immediately
legalized as part of this dialect conversion invocation.

That was previously working due to a couple factors:

- In the test case, there was scf.if, which we happen to mark as legal
  as part of marking the entire SCF dialect as legal for the scf.parallel
  we generate here.

- Originally, this test case had std.extract_element in the body, which
  we happened to have a pattern for in this pass. After I migrated that to
  `tensor.extract` (which removed the tensor.extract bufferization from
  here), I hacked this up to use `std.dim` which we still have patterns
  for in this pass.

This patch updates the test case to use a truly opaque op `test.source`
that properly stresses this aspect of the pattern.

(this also removes a stray dependency on the `tensor` dialect that I
must have left behind as part of my hacking this pass up when migrating
to `tensor.extract`)

Differential Revision: https://reviews.llvm.org/D93262
2020-12-15 12:50:56 -08:00
..
Analysis [mlir] Use mlir::OpState::operator->() to get to methods of mlir::Operation. 2020-12-13 09:58:16 +01:00
Bindings [mlir] Add Python binding for MLIR Dict Attribute 2020-12-13 04:30:35 +00:00
CAPI Store a MlirIdentifier instead of a MlirStringRef in MlirNameAttribute 2020-12-11 22:38:48 +00:00
Conversion [mlir] Add std.pow lowering to LLVMIR 2020-12-15 18:54:29 +01:00
Dialect [mlir] Handle unknown ops in dynamic_tensor_from_elements bufferization 2020-12-15 12:50:56 -08:00
EDSC [mlir][linalg] Add vectorization for element-wise linalg ops 2020-12-03 15:31:13 -08:00
ExecutionEngine [mlir][Types][NFC] Move all of the builtin Type classes to BuiltinTypes.h 2020-12-03 18:02:10 -08:00
IR [mlir][OpFormat] Add support for emitting newlines from the custom format of an operation 2020-12-14 12:00:43 -08:00
Interfaces [mlir][Types][NFC] Move all of the builtin Type classes to BuiltinTypes.h 2020-12-03 18:02:10 -08:00
Parser [mlir][OpAsmParser] Add support for parsing integer literals without going through IntegerAttr 2020-12-14 12:00:43 -08:00
Pass [mlir][Inliner] Refactor the inliner to use nested pass pipelines instead of just canonicalization 2020-12-14 18:09:47 -08:00
Reducer [mlir] NFC: fix trivial typos 2020-10-29 04:05:22 +09:00
Rewrite [mlir] Change the internal representation of FrozenRewritePatternList to use shared_ptr 2020-12-14 12:32:44 -08:00
Support [mlir][BuiltinDialect] Resolve comments from D91571 2020-11-19 11:12:49 -08:00
TableGen [TableGen] Eliminate the 'code' type 2020-12-03 10:19:11 -05:00
Target [mlir][ArmSVE][RFC] Add an ArmSVE dialect 2020-12-14 21:35:01 +00:00
Transforms [mlir][Inliner] Refactor the inliner to use nested pass pipelines instead of just canonicalization 2020-12-14 18:09:47 -08:00
Translation [mlir][BuiltinDialect] Resolve comments from D91571 2020-11-19 11:12:49 -08:00
CMakeLists.txt [mlir][NFC] Move around the code related to PatternRewriting to improve layering 2020-10-26 18:01:06 -07:00