[PATCH] D78774: Add constructor to ShapedTypeComponents for unranked with element type.
Stella Laurenzo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 24 10:49:44 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7720d6578cc9: Add constructor to ShapedTypeComponents for unranked with element type. (authored by stellaraccident).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78774/new/
https://reviews.llvm.org/D78774
Files:
mlir/include/mlir/Interfaces/InferTypeOpInterface.h
Index: mlir/include/mlir/Interfaces/InferTypeOpInterface.h
===================================================================
--- mlir/include/mlir/Interfaces/InferTypeOpInterface.h
+++ mlir/include/mlir/Interfaces/InferTypeOpInterface.h
@@ -38,7 +38,8 @@
public:
/// Default construction is an unranked shape.
ShapedTypeComponents() : ranked(false), elementType(nullptr), attr(nullptr){};
-
+ ShapedTypeComponents(Type elementType)
+ : ranked(false), elementType(elementType), attr(nullptr) {}
template <typename Arg, typename = typename std::enable_if_t<
std::is_constructible<ShapeStorageT, Arg>::value>>
ShapedTypeComponents(Arg &&arg, Type elementType = nullptr,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78774.259933.patch
Type: text/x-patch
Size: 719 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200424/8753b060/attachment.bin>
More information about the llvm-commits
mailing list