llvm-project/mlir
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
..
cmake/modules [mlir] use STATUS instead of CHECK_* in MLIRDetectPythonEnv.cmake 2020-11-25 00:09:33 +01:00
docs [mlir] Add section page for Rationale docs. 2020-12-14 14:49:30 -08:00
examples [mlir] Use mlir::OpState::operator->() to get to methods of mlir::Operation. This is a preparation step to remove the corresponding methods from OpState. 2020-12-09 12:11:32 +01:00
include [mlir] Add std op for X raised to the power of Y 2020-12-15 17:06:26 +01:00
integration_test [mlir][LLVMIR] Add support for InlineAsmOp 2020-11-30 08:32:02 +00:00
lib [mlir] Handle unknown ops in dynamic_tensor_from_elements bufferization 2020-12-15 12:50:56 -08:00
test [mlir] Handle unknown ops in dynamic_tensor_from_elements bufferization 2020-12-15 12:50:56 -08:00
tools [mlir][OpDefGen] Add support for generating local functions for shared utilities 2020-12-14 14:21:30 -08:00
unittests [flang] Use mlir::OpState::operator->() to get to methods of mlir::Operation. 2020-12-14 20:04:53 +01:00
utils Revert "Revert "[mlir] Start splitting the `tensor` dialect out of `std`."" 2020-12-11 14:30:50 -08:00
.clang-format
.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][Python] Check numpy in Python bindings configuration. 2020-12-02 09:29:20 +08: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.