llvm-project/mlir/lib/Interfaces
MaheshRavishankar 118a715654 [mlir][Linalg] Define a linalg.init_tensor operation.
This operation is used to materialize a tensor of a particular
shape. The shape could be specified as a mix of static and dynamic
values.

The use of this operation is to be an `init` tensor for Linalg
structured operation on tensors where the bounds of the computation
depends on the shape of the output of the linalg operation. The result
of this operation will be used as the `init` tensor of such Linalg
operations. To note,

1) The values in the tensor materialized is not used. Any operation to
   which this is an init tensor is expected to overwrite the entire
   tensor.
2) The tensor is materialized only for the shape of the output and to
   make the loop bounds depend only on operands of the structured
   operation.

Based on (1) and (2) it is assumed that these operations eventually go
away since they are only used in `dim` operations that can be
canonicalized to make this operation dead. Such canonicalization are
added here too.

Differential Revision: https://reviews.llvm.org/D93374
2020-12-17 14:45:51 -08:00
..
CMakeLists.txt [mlir][Vector] NFC - Improve VectorInterfaces 2020-07-20 08:24:22 -04:00
CallInterfaces.cpp [mlir] Update SCCP and the Inliner to use SymbolTableCollection for symbol lookups 2020-10-16 12:08:48 -07:00
ControlFlowInterfaces.cpp [mlir][Types][NFC] Move all of the builtin Type classes to BuiltinTypes.h 2020-12-03 18:02:10 -08:00
CopyOpInterface.cpp [mlir] Add redundant copy removal transform 2020-07-03 15:36:25 +02:00
DerivedAttributeOpInterface.cpp [mlir] Add derived attribute op interface 2020-03-12 10:32:24 -07:00
InferTypeOpInterface.cpp [mlir][Types][NFC] Move all of the builtin Type classes to BuiltinTypes.h 2020-12-03 18:02:10 -08:00
LoopLikeInterface.cpp [mlir][NFC] Move the LoopLike interface out of Transforms/ and into Interfaces/ 2020-03-14 13:37:56 -07:00
SideEffectInterfaces.cpp [MLIR][NFC] Adopt variadic isa<> 2020-06-24 17:02:44 -07:00
VectorInterfaces.cpp [mlir] NFC: fix trivial typos 2020-10-29 04:05:22 +09:00
ViewLikeInterface.cpp [mlir][Linalg] Define a linalg.init_tensor operation. 2020-12-17 14:45:51 -08:00