HomePhabricator

[mlir] Add basic support for dynamic tensor results in TensorToBuffers.cpp.

Authored by pifon2a on Oct 8 2020, 2:07 AM.

Description

[mlir] Add basic support for dynamic tensor results in TensorToBuffers.cpp.

The simplest case is when the indexing maps are DimIds in every component. This covers cwise ops.

Also:

  • Expose populateConvertLinalgOnTensorsToBuffersPatterns in Transforms.h
  • Expose emitLoopRanges in Transforms.h

Differential Revision: https://reviews.llvm.org/D88781