[Mlir-commits] [mlir] [mlir] Add optional layout attribute to VectorType (PR #71916)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Nov 10 12:10:52 PST 2023
================
@@ -242,6 +243,11 @@ LogicalResult VectorType::verify(function_ref<InFlightDiagnostic()> emitError,
return emitError() << "number of dims must match, got "
<< scalableDims.size() << " and " << shape.size();
+ if (layout) {
+ if (failed(layout.verifyLayout(shape, elementType, emitError)))
+ return emitError() << "layout does not match underlying vector shape";
----------------
harsh-nod wrote:
Makes sense, will change to something more generic like "Layout verification failed!"
https://github.com/llvm/llvm-project/pull/71916
More information about the Mlir-commits
mailing list