Merge pull request #7 from openai/broadcastAxis-fix

Fix blocked layout parser
This commit is contained in:
Philippe Tillet
2022-07-15 08:39:49 -07:00
committed by GitHub

View File

@@ -65,6 +65,9 @@ static Attribute parseBlocked(AsmParser &parser, Type type) {
} else if (attr.getName() == "order") {
if (parseIntArrayAttr(parser, attr, order, "order").failed())
return {};
} else if (attr.getName() == "broadcastAxis") {
if (parseIntArrayAttr(parser, attr, broadcastAxis, "broadcastAxis").failed())
return {};
} else {
parser.emitError(parser.getNameLoc(), "unexpected key: ")
<< attr.getName().strref();