Skip to content

Commit 01d05df

Browse files
committed
pointer support
1 parent 8c3d5c7 commit 01d05df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Conversion/LLVMCommon/VectorPattern.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ LogicalResult LLVM::detail::handleMultidimensionalVectors(
106106
static bool isVectorCompatibleType(Type type) {
107107
// Limit `vectorOneToOneRewrite` to scalar and vector types (and to
108108
// `LLVM::LLVMArrayType` which have a special handling).
109-
return isa<LLVM::LLVMArrayType, VectorType, IntegerType, FloatType>(type) &&
109+
return isa<LLVM::LLVMArrayType, LLVM::LLVMPointerType, VectorType,
110+
IntegerType, FloatType>(type) &&
110111
LLVM::isCompatibleType(type);
111112
}
112113

0 commit comments

Comments
 (0)