[mlir] Support complex numbers in Linalg promotion
authorTres Popp <tpopp@google.com>
Tue, 6 Apr 2021 10:39:07 +0000 (12:39 +0200)
committerTres Popp <tpopp@google.com>
Thu, 29 Apr 2021 09:58:57 +0000 (11:58 +0200)
commit42e5f42215c098face7f835f1a5a223409b85f69
tree87679fe427b9bec29d977e53a53e6acc61efa081
parent2e1150d8aad60a8a127c10d9cd48c31334493ebf
[mlir] Support complex numbers in Linalg promotion

FillOp allows complex ops, and filling a properly sized buffer with
a default zero complex number is implemented.

Differential Revision: https://reviews.llvm.org/D99939
mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOps.td
mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
mlir/test/Dialect/Linalg/transform-patterns.mlir
mlir/test/lib/Transforms/TestLinalgTransforms.cpp