From 146ad7cf43cef0113c6161852fd0d6698d85d834 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 25 Jan 2019 20:44:40 -0800 Subject: [PATCH] Finish removing multi-result affine maps from the testsuite, and disable them. PiperOrigin-RevId: 231014261 --- mlir/lib/IR/BuiltinOps.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mlir/lib/IR/BuiltinOps.cpp b/mlir/lib/IR/BuiltinOps.cpp index d63edf998270..5a27ea9d109a 100644 --- a/mlir/lib/IR/BuiltinOps.cpp +++ b/mlir/lib/IR/BuiltinOps.cpp @@ -119,6 +119,9 @@ void AffineApplyOp::print(OpAsmPrinter *p) const { } bool AffineApplyOp::verify() const { + if (getNumResults() != 1) + return emitOpError("multi-result affine_apply is not supported"); + // Check that affine map attribute was specified. auto affineMapAttr = getAttrOfType("map"); if (!affineMapAttr)