29static ::llvm::LogicalResult __mlir_ods_local_type_constraint_Ops1(
30 ::mlir::Operation *op, ::mlir::Type type, ::llvm::StringRef valueKind,
31 unsigned valueIndex) {
33 return op->emitOpError(valueKind) <<
" #" << valueIndex
34 <<
" must be variadic of a valid LLZK type, but got " << type;
36 return ::mlir::success();
39static ::llvm::LogicalResult __mlir_ods_local_type_constraint_Ops2(
40 ::mlir::Operation *op, ::mlir::Type type, ::llvm::StringRef valueKind,
41 unsigned valueIndex) {
42 if (!((::llvm::isa<::mlir::IndexType>(type)))) {
43 return op->emitOpError(valueKind) <<
" #" << valueIndex
44 <<
" must be variadic of index, but got " << type;
46 return ::mlir::success();
49static ::llvm::LogicalResult __mlir_ods_local_attr_constraint_Ops1(
50 ::mlir::Attribute attr, ::llvm::StringRef attrName, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) {
51 if (attr && !((::llvm::isa<::mlir::SymbolRefAttr>(attr))))
52 return emitError() <<
"attribute '" << attrName
53 <<
"' failed to satisfy constraint: symbol reference attribute";
54 return ::mlir::success();
56static ::llvm::LogicalResult __mlir_ods_local_attr_constraint_Ops1(
57 ::mlir::Operation *op, ::mlir::Attribute attr, ::llvm::StringRef attrName) {
58 return __mlir_ods_local_attr_constraint_Ops1(attr, attrName, [op]() {
59 return op->emitOpError();
63static ::llvm::LogicalResult __mlir_ods_local_attr_constraint_Ops2(
64 ::mlir::Attribute attr, ::llvm::StringRef attrName, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) {
65 if (attr && !((::llvm::isa<::mlir::DenseI32ArrayAttr>(attr))))
66 return emitError() <<
"attribute '" << attrName
67 <<
"' failed to satisfy constraint: i32 dense array attribute";
68 return ::mlir::success();
70static ::llvm::LogicalResult __mlir_ods_local_attr_constraint_Ops2(
71 ::mlir::Operation *op, ::mlir::Attribute attr, ::llvm::StringRef attrName) {
72 return __mlir_ods_local_attr_constraint_Ops2(attr, attrName, [op]() {
73 return op->emitOpError();
77static ::llvm::LogicalResult __mlir_ods_local_attr_constraint_Ops3(
78 ::mlir::Attribute attr, ::llvm::StringRef attrName, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) {
79 if (attr && !((::llvm::isa<::mlir::StringAttr>(attr))))
80 return emitError() <<
"attribute '" << attrName
81 <<
"' failed to satisfy constraint: string attribute";
82 return ::mlir::success();
84static ::llvm::LogicalResult __mlir_ods_local_attr_constraint_Ops3(
85 ::mlir::Operation *op, ::mlir::Attribute attr, ::llvm::StringRef attrName) {
86 return __mlir_ods_local_attr_constraint_Ops3(attr, attrName, [op]() {
87 return op->emitOpError();
91static ::llvm::LogicalResult __mlir_ods_local_attr_constraint_Ops4(
92 ::mlir::Attribute attr, ::llvm::StringRef attrName, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) {
93 if (attr && !(((::llvm::isa<::mlir::TypeAttr>(attr))) && ((::llvm::isa<::mlir::FunctionType>(::llvm::cast<::mlir::TypeAttr>(attr).getValue()))) && ((::llvm::isa<::mlir::FunctionType>(::llvm::cast<::mlir::TypeAttr>(attr).getValue())))))
94 return emitError() <<
"attribute '" << attrName
95 <<
"' failed to satisfy constraint: type attribute of function type";
96 return ::mlir::success();
98static ::llvm::LogicalResult __mlir_ods_local_attr_constraint_Ops4(
99 ::mlir::Operation *op, ::mlir::Attribute attr, ::llvm::StringRef attrName) {
100 return __mlir_ods_local_attr_constraint_Ops4(attr, attrName, [op]() {
101 return op->emitOpError();
105static ::llvm::LogicalResult __mlir_ods_local_attr_constraint_Ops5(
106 ::mlir::Attribute attr, ::llvm::StringRef attrName, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) {
107 if (attr && !(((::llvm::isa<::mlir::ArrayAttr>(attr))) && (::llvm::all_of(::llvm::cast<::mlir::ArrayAttr>(attr), [&](::mlir::Attribute attr) {
return attr && ((::llvm::isa<::mlir::DictionaryAttr>(attr))); }))))
108 return emitError() <<
"attribute '" << attrName
109 <<
"' failed to satisfy constraint: Array of dictionary attributes";
110 return ::mlir::success();
112static ::llvm::LogicalResult __mlir_ods_local_attr_constraint_Ops5(
113 ::mlir::Operation *op, ::mlir::Attribute attr, ::llvm::StringRef attrName) {
114 return __mlir_ods_local_attr_constraint_Ops5(attr, attrName, [op]() {
115 return op->emitOpError();
119static ::llvm::LogicalResult __mlir_ods_local_region_constraint_Ops1(
120 ::mlir::Operation *op, ::mlir::Region ®ion, ::llvm::StringRef regionName,
121 unsigned regionIndex) {
123 return op->emitOpError(
"region #") << regionIndex
124 << (regionName.empty() ?
" " :
" ('" + regionName +
"') ")
125 <<
"failed to verify constraint: any region";
127 return ::mlir::success();
145 for (
unsigned i = 0; i < index; ++i)
146 start += sizeAttr[i];
147 return {start, sizeAttr[index]};
156 auto attr = ::llvm::dyn_cast_or_null<::mlir::DenseI32ArrayAttr>(
getProperties().numDimsPerMap);
175 if (!tblgen_callee)
return emitError(loc,
"'function.call' op ""requires attribute 'callee'");
177 if (!tblgen_mapOpGroupSizes)
return emitError(loc,
"'function.call' op ""requires attribute 'mapOpGroupSizes'");
180 if (tblgen_callee && !((::llvm::isa<::mlir::SymbolRefAttr>(tblgen_callee))))
181 return emitError(loc,
"'function.call' op ""attribute 'callee' failed to satisfy constraint: symbol reference attribute");
183 if (tblgen_numDimsPerMap && !((::llvm::isa<::mlir::DenseI32ArrayAttr>(tblgen_numDimsPerMap))))
184 return emitError(loc,
"'function.call' op ""attribute 'numDimsPerMap' failed to satisfy constraint: i32 dense array attribute");
186 if (tblgen_mapOpGroupSizes && !((::llvm::isa<::mlir::DenseI32ArrayAttr>(tblgen_mapOpGroupSizes))))
187 return emitError(loc,
"'function.call' op ""attribute 'mapOpGroupSizes' failed to satisfy constraint: i32 dense array attribute");
188 return ::mlir::success();
192 ::llvm::ArrayRef<int32_t> sizeAttr = getProperties().operandSegmentSizes;
195 for (
unsigned i = 0; i < index; ++i)
196 start += sizeAttr[i];
197 return {start, sizeAttr[index]};
202 auto mutableRange = ::mlir::MutableOperandRange(getOperation(), range.first, range.second, ::mlir::MutableOperandRange::OperandSegment(0u, {getOperandSegmentSizesAttrName(), ::mlir::DenseI32ArrayAttr::get(getContext(), getProperties().operandSegmentSizes)}));
208 auto mutableRange = ::mlir::MutableOperandRange(getOperation(), range.first, range.second, ::mlir::MutableOperandRange::OperandSegment(1u, {getOperandSegmentSizesAttrName(), ::mlir::DenseI32ArrayAttr::get(getContext(), getProperties().operandSegmentSizes)}));
213 bool isVariadic[] = {
true};
214 int prevVariadicCount = 0;
215 for (
unsigned i = 0; i < index; ++i)
216 if (isVariadic[i]) ++prevVariadicCount;
220 int variadicSize = (getOperation()->getNumResults() - 0) / 1;
225 int start = index + (variadicSize - 1) * prevVariadicCount;
226 int size = isVariadic[index] ? variadicSize : 1;
227 return {start, size};
231 ::mlir::DictionaryAttr dict = ::llvm::dyn_cast<::mlir::DictionaryAttr>(attr);
233 emitError() <<
"expected DictionaryAttr to set properties";
234 return ::mlir::failure();
238 auto &propStorage = prop.
callee;
239 auto attr = dict.get(
"callee");
241 auto convertedAttr = ::llvm::dyn_cast<std::remove_reference_t<
decltype(propStorage)>>(attr);
243 propStorage = convertedAttr;
245 emitError() <<
"Invalid attribute `callee` in property conversion: " << attr;
246 return ::mlir::failure();
253 auto attr = dict.get(
"mapOpGroupSizes");
255 auto convertedAttr = ::llvm::dyn_cast<std::remove_reference_t<
decltype(propStorage)>>(attr);
257 propStorage = convertedAttr;
259 emitError() <<
"Invalid attribute `mapOpGroupSizes` in property conversion: " << attr;
260 return ::mlir::failure();
267 auto attr = dict.get(
"numDimsPerMap");
269 auto convertedAttr = ::llvm::dyn_cast<std::remove_reference_t<
decltype(propStorage)>>(attr);
271 propStorage = convertedAttr;
273 emitError() <<
"Invalid attribute `numDimsPerMap` in property conversion: " << attr;
274 return ::mlir::failure();
280 auto setFromAttr = [] (
auto &propStorage, ::mlir::Attribute propAttr,
281 ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) -> ::mlir::LogicalResult {
282 return convertFromAttribute(propStorage, propAttr, emitError);
284 auto attr = dict.get(
"operandSegmentSizes");
if (!attr) attr = dict.get(
"operand_segment_sizes");;
287 return ::mlir::failure();
289 return ::mlir::success();
293 ::mlir::SmallVector<::mlir::NamedAttribute> attrs;
294 ::mlir::Builder odsBuilder{ctx};
297 const auto &propStorage = prop.
callee;
299 attrs.push_back(odsBuilder.getNamedAttr(
"callee",
306 attrs.push_back(odsBuilder.getNamedAttr(
"mapOpGroupSizes",
313 attrs.push_back(odsBuilder.getNamedAttr(
"numDimsPerMap",
319 auto attr = [&]() -> ::mlir::Attribute {
320 return ::mlir::DenseI32ArrayAttr::get(ctx, propStorage);
322 attrs.push_back(odsBuilder.getNamedAttr(
"operandSegmentSizes", attr));
326 return odsBuilder.getDictionaryAttr(attrs);
331 auto hash_operandSegmentSizes = [] (
const auto &propStorage) -> llvm::hash_code {
332 return ::llvm::hash_combine_range(std::begin(propStorage), std::end(propStorage));;
334 return llvm::hash_combine(
335 llvm::hash_value(prop.
callee.getAsOpaquePointer()),
342 if (
name ==
"callee")
345 if (
name ==
"mapOpGroupSizes")
348 if (
name ==
"numDimsPerMap")
350 if (
name ==
"operand_segment_sizes" ||
name ==
"operandSegmentSizes")
return [&]() -> ::mlir::Attribute { return ::mlir::DenseI32ArrayAttr::get(ctx, prop.
operandSegmentSizes); }();
355 if (
name ==
"callee") {
356 prop.
callee = ::llvm::dyn_cast_or_null<std::remove_reference_t<
decltype(prop.
callee)>>(value);
360 if (
name ==
"mapOpGroupSizes") {
365 if (
name ==
"numDimsPerMap") {
369 if (
name ==
"operand_segment_sizes" ||
name ==
"operandSegmentSizes") {
370 auto arrAttr = ::llvm::dyn_cast_or_null<::mlir::DenseI32ArrayAttr>(value);
371 if (!arrAttr)
return;
385 attrs.append(
"operandSegmentSizes", [&]() -> ::mlir::Attribute { return ::mlir::DenseI32ArrayAttr::get(ctx, prop.
operandSegmentSizes); }());
388::llvm::LogicalResult
CallOp::verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) {
391 if (attr && ::mlir::failed(__mlir_ods_local_attr_constraint_Ops1(attr,
"callee", emitError)))
392 return ::mlir::failure();
397 if (attr && ::mlir::failed(__mlir_ods_local_attr_constraint_Ops2(attr,
"mapOpGroupSizes", emitError)))
398 return ::mlir::failure();
403 if (attr && ::mlir::failed(__mlir_ods_local_attr_constraint_Ops2(attr,
"numDimsPerMap", emitError)))
404 return ::mlir::failure();
406 return ::mlir::success();
410 auto &prop = state.getOrAddProperties<
Properties>(); (void)prop;
411 if (::mlir::failed(reader.readAttribute(prop.
callee)))
412 return ::mlir::failure();
415 return ::mlir::failure();
417 if (::mlir::failed(reader.readOptionalAttribute(prop.
numDimsPerMap)))
418 return ::mlir::failure();
420 if (reader.getBytecodeVersion() < 6) {
422 ::mlir::DenseI32ArrayAttr attr;
423 if (::mlir::failed(reader.readAttribute(attr))) return ::mlir::failure();
424 if (attr.size() >
static_cast<int64_t
>(
sizeof(propStorage) /
sizeof(int32_t))) {
425 reader.emitError(
"size mismatch for operand/result_segment_size");
426 return ::mlir::failure();
428 ::llvm::copy(::llvm::ArrayRef<int32_t>(attr), propStorage.begin());
433 auto readProp = [&]() {
435 if (reader.getBytecodeVersion() >= 6)
436 return reader.readSparseArray(::llvm::MutableArrayRef(propStorage));
438 return ::mlir::success();
440 if (::mlir::failed(readProp()))
441 return ::mlir::failure();
443 return ::mlir::success();
447 auto &prop = getProperties(); (void)prop;
448 writer.writeAttribute(prop.
callee);
453if (writer.getBytecodeVersion() < 6) {
455 writer.writeAttribute(::mlir::DenseI32ArrayAttr::get(this->getContext(), propStorage));
461 if (writer.getBytecodeVersion() >= 6)
462 writer.writeSparseArray(::llvm::ArrayRef(propStorage));
483 getProperties().numDimsPerMap = ::mlir::Builder((*this)->getContext()).getDenseI32ArrayAttr(attrValue);
487 getProperties().mapOpGroupSizes = ::mlir::Builder((*this)->getContext()).getDenseI32ArrayAttr(attrValue);
490void CallOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::SymbolRefAttr callee, ::llvm::ArrayRef<::mlir::ValueRange> mapOperands, ::llvm::ArrayRef<int32_t> numDimsPerMap, ::mlir::ValueRange argOperands) {
491 build(odsBuilder, odsState, resultTypes, callee, mapOperands,
492 odsBuilder.getDenseI32ArrayAttr(numDimsPerMap), argOperands);
502void CallOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState,
::llzk::function::FuncDefOp callee, ::llvm::ArrayRef<::mlir::ValueRange> mapOperands, ::mlir::DenseI32ArrayAttr numDimsPerMap, ::mlir::ValueRange argOperands) {
508void CallOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState,
::llzk::function::FuncDefOp callee, ::llvm::ArrayRef<::mlir::ValueRange> mapOperands, ::llvm::ArrayRef<int32_t> numDimsPerMap, ::mlir::ValueRange argOperands) {
509 build(odsBuilder, odsState, callee, mapOperands,
510 odsBuilder.getDenseI32ArrayAttr(numDimsPerMap), argOperands);
515 ::mlir::Builder odsBuilder(opName.getContext());
517 properties.
numDimsPerMap = odsBuilder.getDenseI32ArrayAttr({});
521 auto tblgen_callee = getProperties().callee; (void)tblgen_callee;
522 if (!tblgen_callee)
return emitOpError(
"requires attribute 'callee'");
523 auto tblgen_mapOpGroupSizes = getProperties().mapOpGroupSizes; (void)tblgen_mapOpGroupSizes;
524 if (!tblgen_mapOpGroupSizes)
return emitOpError(
"requires attribute 'mapOpGroupSizes'");
525 auto tblgen_numDimsPerMap = getProperties().numDimsPerMap; (void)tblgen_numDimsPerMap;
527 if (::mlir::failed(__mlir_ods_local_attr_constraint_Ops1(*
this, tblgen_callee,
"callee")))
528 return ::mlir::failure();
530 if (::mlir::failed(__mlir_ods_local_attr_constraint_Ops2(*
this, tblgen_numDimsPerMap,
"numDimsPerMap")))
531 return ::mlir::failure();
533 if (::mlir::failed(__mlir_ods_local_attr_constraint_Ops2(*
this, tblgen_mapOpGroupSizes,
"mapOpGroupSizes")))
534 return ::mlir::failure();
536 unsigned index = 0; (void)index;
539 for (
auto v : valueGroup0) {
540 if (::mlir::failed(__mlir_ods_local_type_constraint_Ops1(*
this, v.getType(),
"operand", index++)))
541 return ::mlir::failure();
544 if (::mlir::failed(::mlir::OpTrait::impl::verifyValueSizeAttr(*
this,
"mapOpGroupSizes",
"mapOperands", valueGroup1.size())))
545 return ::mlir::failure();
547 for (
auto v : valueGroup1) {
548 if (::mlir::failed(__mlir_ods_local_type_constraint_Ops2(*
this, v.getType(),
"operand", index++)))
549 return ::mlir::failure();
553 unsigned index = 0; (void)index;
556 for (
auto v : valueGroup0) {
557 if (::mlir::failed(__mlir_ods_local_type_constraint_Ops1(*
this, v.getType(),
"result", index++)))
558 return ::mlir::failure();
561 return ::mlir::success();
568::mlir::ParseResult
CallOp::parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result) {
569 ::mlir::SymbolRefAttr calleeAttr;
570 ::llvm::SmallVector<::mlir::OpAsmParser::UnresolvedOperand, 4> argOperandsOperands;
571 ::llvm::SMLoc argOperandsOperandsLoc;
572 (void)argOperandsOperandsLoc;
573 ::llvm::SmallVector<::mlir::OpAsmParser::UnresolvedOperand, 4> mapOperandsOperands;
574 llvm::SmallVector<int32_t> mapOperandsOperandGroupSizes;
575 ::llvm::SMLoc mapOperandsOperandsLoc;
576 (void)mapOperandsOperandsLoc;
577 ::mlir::DenseI32ArrayAttr numDimsPerMapAttr;
578 ::llvm::ArrayRef<::mlir::Type> argOperandsTypes;
579 ::llvm::ArrayRef<::mlir::Type> allResultTypes;
581 if (parser.parseCustomAttributeWithFallback(calleeAttr, parser.getBuilder().getType<::mlir::NoneType>())) {
582 return ::mlir::failure();
585 if (parser.parseLParen())
586 return ::mlir::failure();
588 argOperandsOperandsLoc = parser.getCurrentLocation();
589 if (parser.parseOperandList(argOperandsOperands))
590 return ::mlir::failure();
591 if (parser.parseRParen())
592 return ::mlir::failure();
593 if (::mlir::succeeded(parser.parseOptionalLBrace())) {
595 mapOperandsOperandsLoc = parser.getCurrentLocation();
596 ::llvm::SmallVector<::llvm::SmallVector<::mlir::OpAsmParser::UnresolvedOperand>> mapOperandsOperandGroups;
598 if (odsResult) return ::mlir::failure();
599 for (
const auto &subRange : mapOperandsOperandGroups) {
600 mapOperandsOperands.append(subRange.begin(), subRange.end());
601 mapOperandsOperandGroupSizes.push_back(subRange.size());
603 if (numDimsPerMapAttr)
606 if (parser.parseRBrace())
607 return ::mlir::failure();
609 if (parser.parseColon())
610 return ::mlir::failure();
612 ::mlir::FunctionType argOperands__allResult_functionType;
613 if (parser.parseType(argOperands__allResult_functionType))
614 return ::mlir::failure();
615 argOperandsTypes = argOperands__allResult_functionType.getInputs();
616 allResultTypes = argOperands__allResult_functionType.getResults();
619 if (odsResult) return ::mlir::failure();
621::llvm::copy(::llvm::ArrayRef<int32_t>({
static_cast<int32_t
>(argOperandsOperands.size()),
static_cast<int32_t
>(mapOperandsOperands.size())}), result.getOrAddProperties<
CallOp::Properties>().operandSegmentSizes.begin());
622 result.getOrAddProperties<
CallOp::Properties>().mapOpGroupSizes = parser.getBuilder().getDenseI32ArrayAttr(mapOperandsOperandGroupSizes);
623 ::mlir::Type odsBuildableType0 = parser.getBuilder().getIndexType();
624 result.addTypes(allResultTypes);
625 if (parser.resolveOperands(argOperandsOperands, argOperandsTypes, argOperandsOperandsLoc, result.operands))
626 return ::mlir::failure();
627 if (parser.resolveOperands(mapOperandsOperands, odsBuildableType0, mapOperandsOperandsLoc, result.operands))
628 return ::mlir::failure();
629 return ::mlir::success();
633 ::mlir::DictionaryAttr dict = ::llvm::dyn_cast<::mlir::DictionaryAttr>(attr);
635 emitError() <<
"expected DictionaryAttr to set properties";
636 return ::mlir::failure();
641 auto attr = dict.get(
"mapOpGroupSizes");
644 emitError() <<
"expected key entry for mapOpGroupSizes in DictionaryAttr to set "
646 return ::mlir::failure();
648 auto convertedAttr = ::llvm::dyn_cast<std::remove_reference_t<
decltype(propStorage)>>(attr);
650 propStorage = convertedAttr;
652 emitError() <<
"Invalid attribute `mapOpGroupSizes` in property conversion: " << attr;
653 return ::mlir::failure();
657 return ::mlir::success();
667 _odsPrinter <<
' ' <<
"{";
671 _odsPrinter <<
' ' <<
":";
673 _odsPrinter.printFunctionalType(
getArgOperands().getTypes(), getOperation()->getResultTypes());
694 return attr.getValue();
699 return ::llvm::cast<::mlir::FunctionType>(attr.getValue());
704 return attr ? ::std::optional< ::mlir::ArrayAttr >(attr) : (::std::nullopt);
709 return attr ? ::std::optional< ::mlir::ArrayAttr >(attr) : (::std::nullopt);
718 if (!tblgen_function_type)
return emitError(loc,
"'function.def' op ""requires attribute 'function_type'");
721 if (!tblgen_sym_name)
return emitError(loc,
"'function.def' op ""requires attribute 'sym_name'");
723 if (tblgen_sym_name && !((::llvm::isa<::mlir::StringAttr>(tblgen_sym_name))))
724 return emitError(loc,
"'function.def' op ""attribute 'sym_name' failed to satisfy constraint: string attribute");
726 if (tblgen_function_type && !(((::llvm::isa<::mlir::TypeAttr>(tblgen_function_type))) && ((::llvm::isa<::mlir::FunctionType>(::llvm::cast<::mlir::TypeAttr>(tblgen_function_type).getValue()))) && ((::llvm::isa<::mlir::FunctionType>(::llvm::cast<::mlir::TypeAttr>(tblgen_function_type).getValue())))))
727 return emitError(loc,
"'function.def' op ""attribute 'function_type' failed to satisfy constraint: type attribute of function type");
729 if (tblgen_arg_attrs && !(((::llvm::isa<::mlir::ArrayAttr>(tblgen_arg_attrs))) && (::llvm::all_of(::llvm::cast<::mlir::ArrayAttr>(tblgen_arg_attrs), [&](::mlir::Attribute attr) {
return attr && ((::llvm::isa<::mlir::DictionaryAttr>(attr))); }))))
730 return emitError(loc,
"'function.def' op ""attribute 'arg_attrs' failed to satisfy constraint: Array of dictionary attributes");
732 if (tblgen_res_attrs && !(((::llvm::isa<::mlir::ArrayAttr>(tblgen_res_attrs))) && (::llvm::all_of(::llvm::cast<::mlir::ArrayAttr>(tblgen_res_attrs), [&](::mlir::Attribute attr) {
return attr && ((::llvm::isa<::mlir::DictionaryAttr>(attr))); }))))
733 return emitError(loc,
"'function.def' op ""attribute 'res_attrs' failed to satisfy constraint: Array of dictionary attributes");
734 return ::mlir::success();
738 ::mlir::DictionaryAttr dict = ::llvm::dyn_cast<::mlir::DictionaryAttr>(attr);
740 emitError() <<
"expected DictionaryAttr to set properties";
741 return ::mlir::failure();
746 auto attr = dict.get(
"arg_attrs");
748 auto convertedAttr = ::llvm::dyn_cast<std::remove_reference_t<
decltype(propStorage)>>(attr);
750 propStorage = convertedAttr;
752 emitError() <<
"Invalid attribute `arg_attrs` in property conversion: " << attr;
753 return ::mlir::failure();
760 auto attr = dict.get(
"function_type");
762 auto convertedAttr = ::llvm::dyn_cast<std::remove_reference_t<
decltype(propStorage)>>(attr);
764 propStorage = convertedAttr;
766 emitError() <<
"Invalid attribute `function_type` in property conversion: " << attr;
767 return ::mlir::failure();
774 auto attr = dict.get(
"res_attrs");
776 auto convertedAttr = ::llvm::dyn_cast<std::remove_reference_t<
decltype(propStorage)>>(attr);
778 propStorage = convertedAttr;
780 emitError() <<
"Invalid attribute `res_attrs` in property conversion: " << attr;
781 return ::mlir::failure();
788 auto attr = dict.get(
"sym_name");
790 auto convertedAttr = ::llvm::dyn_cast<std::remove_reference_t<
decltype(propStorage)>>(attr);
792 propStorage = convertedAttr;
794 emitError() <<
"Invalid attribute `sym_name` in property conversion: " << attr;
795 return ::mlir::failure();
799 return ::mlir::success();
803 ::mlir::SmallVector<::mlir::NamedAttribute> attrs;
804 ::mlir::Builder odsBuilder{ctx};
807 const auto &propStorage = prop.
arg_attrs;
809 attrs.push_back(odsBuilder.getNamedAttr(
"arg_attrs",
816 attrs.push_back(odsBuilder.getNamedAttr(
"function_type",
821 const auto &propStorage = prop.
res_attrs;
823 attrs.push_back(odsBuilder.getNamedAttr(
"res_attrs",
828 const auto &propStorage = prop.
sym_name;
830 attrs.push_back(odsBuilder.getNamedAttr(
"sym_name",
835 return odsBuilder.getDictionaryAttr(attrs);
840 return llvm::hash_combine(
841 llvm::hash_value(prop.
arg_attrs.getAsOpaquePointer()),
843 llvm::hash_value(prop.
res_attrs.getAsOpaquePointer()),
844 llvm::hash_value(prop.
sym_name.getAsOpaquePointer()));
848 if (
name ==
"arg_attrs")
851 if (
name ==
"function_type")
854 if (
name ==
"res_attrs")
857 if (
name ==
"sym_name")
863 if (
name ==
"arg_attrs") {
864 prop.
arg_attrs = ::llvm::dyn_cast_or_null<std::remove_reference_t<
decltype(prop.
arg_attrs)>>(value);
868 if (
name ==
"function_type") {
873 if (
name ==
"res_attrs") {
874 prop.
res_attrs = ::llvm::dyn_cast_or_null<std::remove_reference_t<
decltype(prop.
res_attrs)>>(value);
878 if (
name ==
"sym_name") {
879 prop.
sym_name = ::llvm::dyn_cast_or_null<std::remove_reference_t<
decltype(prop.
sym_name)>>(value);
894::llvm::LogicalResult
FuncDefOp::verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError) {
897 if (attr && ::mlir::failed(__mlir_ods_local_attr_constraint_Ops5(attr,
"arg_attrs", emitError)))
898 return ::mlir::failure();
903 if (attr && ::mlir::failed(__mlir_ods_local_attr_constraint_Ops4(attr,
"function_type", emitError)))
904 return ::mlir::failure();
909 if (attr && ::mlir::failed(__mlir_ods_local_attr_constraint_Ops5(attr,
"res_attrs", emitError)))
910 return ::mlir::failure();
915 if (attr && ::mlir::failed(__mlir_ods_local_attr_constraint_Ops3(attr,
"sym_name", emitError)))
916 return ::mlir::failure();
918 return ::mlir::success();
922 auto &prop = state.getOrAddProperties<
Properties>(); (void)prop;
923 if (::mlir::failed(reader.readOptionalAttribute(prop.
arg_attrs)))
924 return ::mlir::failure();
926 if (::mlir::failed(reader.readAttribute(prop.
function_type)))
927 return ::mlir::failure();
929 if (::mlir::failed(reader.readOptionalAttribute(prop.
res_attrs)))
930 return ::mlir::failure();
932 if (::mlir::failed(reader.readAttribute(prop.
sym_name)))
933 return ::mlir::failure();
934 return ::mlir::success();
938 auto &prop = getProperties(); (void)prop;
940 writer.writeOptionalAttribute(prop.
arg_attrs);
943 writer.writeOptionalAttribute(prop.
res_attrs);
944 writer.writeAttribute(prop.
sym_name);
949 return attr.getValue();
954 return ::llvm::cast<::mlir::FunctionType>(attr.getValue());
959 return attr ? ::std::optional< ::mlir::ArrayAttr >(attr) : (::std::nullopt);
964 return attr ? ::std::optional< ::mlir::ArrayAttr >(attr) : (::std::nullopt);
968 getProperties().sym_name = ::mlir::Builder((*this)->getContext()).getStringAttr(attrValue);
972 getProperties().function_type = ::mlir::TypeAttr::get(attrValue);
975void FuncDefOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::StringAttr sym_name, ::mlir::TypeAttr function_type, ::mlir::ArrayAttr arg_attrs, ::mlir::ArrayAttr res_attrs) {
976 odsState.getOrAddProperties<
Properties>().sym_name = sym_name;
977 odsState.getOrAddProperties<
Properties>().function_type = function_type;
979 odsState.getOrAddProperties<
Properties>().arg_attrs = arg_attrs;
982 odsState.getOrAddProperties<
Properties>().res_attrs = res_attrs;
984 (void)odsState.addRegion();
987void FuncDefOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::StringAttr sym_name, ::mlir::TypeAttr function_type, ::mlir::ArrayAttr arg_attrs, ::mlir::ArrayAttr res_attrs) {
988 odsState.getOrAddProperties<
Properties>().sym_name = sym_name;
989 odsState.getOrAddProperties<
Properties>().function_type = function_type;
991 odsState.getOrAddProperties<
Properties>().arg_attrs = arg_attrs;
994 odsState.getOrAddProperties<
Properties>().res_attrs = res_attrs;
996 (void)odsState.addRegion();
997 assert(resultTypes.size() == 0u &&
"mismatched number of results");
998 odsState.addTypes(resultTypes);
1001void FuncDefOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llvm::StringRef sym_name, ::mlir::FunctionType function_type, ::mlir::ArrayAttr arg_attrs, ::mlir::ArrayAttr res_attrs) {
1002 odsState.getOrAddProperties<
Properties>().sym_name = odsBuilder.getStringAttr(sym_name);
1003 odsState.getOrAddProperties<
Properties>().function_type = ::mlir::TypeAttr::get(function_type);
1005 odsState.getOrAddProperties<
Properties>().arg_attrs = arg_attrs;
1008 odsState.getOrAddProperties<
Properties>().res_attrs = res_attrs;
1010 (void)odsState.addRegion();
1013void FuncDefOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::llvm::StringRef sym_name, ::mlir::FunctionType function_type, ::mlir::ArrayAttr arg_attrs, ::mlir::ArrayAttr res_attrs) {
1014 odsState.getOrAddProperties<
Properties>().sym_name = odsBuilder.getStringAttr(sym_name);
1015 odsState.getOrAddProperties<
Properties>().function_type = ::mlir::TypeAttr::get(function_type);
1017 odsState.getOrAddProperties<
Properties>().arg_attrs = arg_attrs;
1020 odsState.getOrAddProperties<
Properties>().res_attrs = res_attrs;
1022 (void)odsState.addRegion();
1023 assert(resultTypes.size() == 0u &&
"mismatched number of results");
1024 odsState.addTypes(resultTypes);
1027void FuncDefOp::build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes) {
1028 assert(operands.size() == 0u &&
"mismatched number of parameters");
1029 odsState.addOperands(operands);
1030 odsState.addAttributes(attributes);
1031 for (
unsigned i = 0; i != 1; ++i)
1032 (
void)odsState.addRegion();
1033 assert(resultTypes.size() == 0u &&
"mismatched number of return types");
1034 odsState.addTypes(resultTypes);
1036 if (!attributes.empty()) {
1037 ::mlir::OpaqueProperties properties =
1039 std::optional<::mlir::RegisteredOperationName> info =
1040 odsState.name.getRegisteredInfo();
1041 if (failed(info->setOpPropertiesFromAttribute(odsState.name, properties,
1042 odsState.attributes.getDictionary(odsState.getContext()),
nullptr)))
1043 ::llvm::report_fatal_error(
"Property conversion failed.");
1048 auto tblgen_arg_attrs = getProperties().arg_attrs; (void)tblgen_arg_attrs;
1049 auto tblgen_function_type = getProperties().function_type; (void)tblgen_function_type;
1050 if (!tblgen_function_type)
return emitOpError(
"requires attribute 'function_type'");
1051 auto tblgen_res_attrs = getProperties().res_attrs; (void)tblgen_res_attrs;
1052 auto tblgen_sym_name = getProperties().sym_name; (void)tblgen_sym_name;
1053 if (!tblgen_sym_name)
return emitOpError(
"requires attribute 'sym_name'");
1055 if (::mlir::failed(__mlir_ods_local_attr_constraint_Ops3(*
this, tblgen_sym_name,
"sym_name")))
1056 return ::mlir::failure();
1058 if (::mlir::failed(__mlir_ods_local_attr_constraint_Ops4(*
this, tblgen_function_type,
"function_type")))
1059 return ::mlir::failure();
1061 if (::mlir::failed(__mlir_ods_local_attr_constraint_Ops5(*
this, tblgen_arg_attrs,
"arg_attrs")))
1062 return ::mlir::failure();
1064 if (::mlir::failed(__mlir_ods_local_attr_constraint_Ops5(*
this, tblgen_res_attrs,
"res_attrs")))
1065 return ::mlir::failure();
1067 unsigned index = 0; (void)index;
1069 for (
auto ®ion : ::llvm::MutableArrayRef((*this)->getRegion(0)))
1070 if (::mlir::failed(__mlir_ods_local_region_constraint_Ops1(*
this, region,
"body", index++)))
1071 return ::mlir::failure();
1073 return ::mlir::success();
1078 return ::mlir::success();
1079 return ::mlir::failure();
1095 bool isVariadic[] = {
true};
1096 int prevVariadicCount = 0;
1097 for (
unsigned i = 0; i < index; ++i)
1098 if (isVariadic[i]) ++prevVariadicCount;
1102 int variadicSize = (odsOperandsSize - 0) / 1;
1107 int start = index + (variadicSize - 1) * prevVariadicCount;
1108 int size = isVariadic[index] ? variadicSize : 1;
1109 return {start, size};
1116 return ::mlir::success();
1120 bool isVariadic[] = {
true};
1121 int prevVariadicCount = 0;
1122 for (
unsigned i = 0; i < index; ++i)
1123 if (isVariadic[i]) ++prevVariadicCount;
1127 int variadicSize = (getOperation()->getNumOperands() - 0) / 1;
1132 int start = index + (variadicSize - 1) * prevVariadicCount;
1133 int size = isVariadic[index] ? variadicSize : 1;
1134 return {start, size};
1139 auto mutableRange = ::mlir::MutableOperandRange(getOperation(), range.first, range.second);
1140 return mutableRange;
1144 build(odsBuilder, odsState, std::nullopt);
1148void ReturnOp::build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::ValueRange operands) {
1149 odsState.addOperands(operands);
1152void ReturnOp::build(::mlir::OpBuilder &, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::ValueRange operands, ::llvm::ArrayRef<::mlir::NamedAttribute> attributes) {
1153 odsState.addOperands(operands);
1154 odsState.addAttributes(attributes);
1155 assert(resultTypes.size() == 0u &&
"mismatched number of return types");
1156 odsState.addTypes(resultTypes);
1161 unsigned index = 0; (void)index;
1164 for (
auto v : valueGroup0) {
1165 if (::mlir::failed(__mlir_ods_local_type_constraint_Ops1(*
this, v.getType(),
"operand", index++)))
1166 return ::mlir::failure();
1169 return ::mlir::success();
1174 return ::mlir::success();
1175 return ::mlir::failure();
1178::mlir::ParseResult
ReturnOp::parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result) {
1179 ::llvm::SmallVector<::mlir::OpAsmParser::UnresolvedOperand, 4> operandsOperands;
1180 ::llvm::SMLoc operandsOperandsLoc;
1181 (void)operandsOperandsLoc;
1182 ::llvm::SmallVector<::mlir::Type, 1> operandsTypes;
1184 auto loc = parser.getCurrentLocation();(void)loc;
1185 if (parser.parseOptionalAttrDict(result.attributes))
1186 return ::mlir::failure();
1189 operandsOperandsLoc = parser.getCurrentLocation();
1190 if (parser.parseOperandList(operandsOperands))
1191 return ::mlir::failure();
1192 if (!operandsOperands.empty()) {
1193 if (parser.parseColon())
1194 return ::mlir::failure();
1196 if (parser.parseTypeList(operandsTypes))
1197 return ::mlir::failure();
1199 if (parser.resolveOperands(operandsOperands, operandsTypes, operandsOperandsLoc, result.operands))
1200 return ::mlir::failure();
1201 return ::mlir::success();
1205 ::llvm::SmallVector<::llvm::StringRef, 2> elidedAttrs;
1206 _odsPrinter.printOptionalAttrDict((*this)->getAttrs(), elidedAttrs);
1210 _odsPrinter <<
' ' <<
":";
1216void ReturnOp::getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect>> &effects) {
1220 ::mlir::RegionBranchPoint point) {
1221 return ::mlir::MutableOperandRange(*
this);
::llvm::LogicalResult verify(::mlir::Location loc)
CallOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
::mlir::ValueRange getOperands()
void setNumDimsPerMap(::llvm::ArrayRef< int32_t > attrValue)
::mlir::SymbolRefAttr getCalleeAttr()
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
::llvm::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
static llvm::hash_code computePropertiesHash(const Properties &prop)
static void populateDefaultProperties(::mlir::OperationName opName, Properties &properties)
::mlir::SymbolRefAttr getCallee()
std::pair< unsigned, unsigned > getODSResultIndexAndLength(unsigned index)
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
::llvm::LogicalResult setPropertiesFromParsedAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
void writeProperties(::mlir::DialectBytecodeWriter &writer)
void setMapOpGroupSizes(::llvm::ArrayRef< int32_t > attrValue)
::llvm::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::mlir::TypeRange resultTypes, ::mlir::SymbolRefAttr callee, ::mlir::ValueRange argOperands={})
::llvm::ArrayRef< int32_t > getMapOpGroupSizes()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
::mlir::MutableOperandRange getArgOperandsMutable()
::llvm::ArrayRef< int32_t > getNumDimsPerMap()
::mlir::Operation::operand_range getArgOperands()
::llvm::LogicalResult verifyInvariants()
::mlir::StringAttr getMapOpGroupSizesAttrName()
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
void print(::mlir::OpAsmPrinter &_odsPrinter)
::mlir::OperandRangeRange getMapOperands()
FoldAdaptor::Properties Properties
::mlir::DenseI32ArrayAttr getMapOpGroupSizesAttr()
::mlir::StringAttr getNumDimsPerMapAttrName()
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
::mlir::MutableOperandRangeRange getMapOperandsMutable()
::llvm::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
::llvm::LogicalResult verifyInvariantsImpl()
::mlir::Operation::result_range getODSResults(unsigned index)
::mlir::StringAttr getCalleeAttrName()
::mlir::DenseI32ArrayAttr getNumDimsPerMapAttr()
::mlir::Operation::operand_range getODSOperands(unsigned index)
FuncDefOpAdaptor(FuncDefOp op)
FuncDefOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
::llvm::LogicalResult verify(::mlir::Location loc)
::mlir::ValueRange getOperands()
static void setInherentAttr(Properties &prop, llvm::StringRef name, mlir::Attribute value)
static llvm::hash_code computePropertiesHash(const Properties &prop)
FoldAdaptor::Properties Properties
::mlir::FunctionType getFunctionType()
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState, ::llvm::StringRef name, ::mlir::FunctionType type, ::llvm::ArrayRef<::mlir::NamedAttribute > attrs={}, ::llvm::ArrayRef<::mlir::DictionaryAttr > argAttrs={})
::mlir::StringAttr getSymNameAttrName()
::mlir::StringAttr getFunctionTypeAttrName()
::llvm::LogicalResult verifyInvariants()
static std::optional< mlir::Attribute > getInherentAttr(::mlir::MLIRContext *ctx, const Properties &prop, llvm::StringRef name)
::llvm::LogicalResult readProperties(::mlir::DialectBytecodeReader &reader, ::mlir::OperationState &state)
::mlir::StringAttr getResAttrsAttrName()
::std::optional< ::mlir::ArrayAttr > getResAttrs()
::std::optional< ::mlir::ArrayAttr > getArgAttrs()
::mlir::ArrayAttr getArgAttrsAttr()
::mlir::Attribute getPropertiesAsAttr(::mlir::MLIRContext *ctx, const Properties &prop)
static void populateInherentAttrs(::mlir::MLIRContext *ctx, const Properties &prop, ::mlir::NamedAttrList &attrs)
void writeProperties(::mlir::DialectBytecodeWriter &writer)
::llvm::StringRef getSymName()
void setFunctionType(::mlir::FunctionType attrValue)
::llvm::LogicalResult setPropertiesFromAttr(Properties &prop, ::mlir::Attribute attr, ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
::llvm::ArrayRef<::mlir::Type > getResultTypes()
Returns the result types of this function.
void setSymName(::llvm::StringRef attrValue)
::mlir::SymbolRefAttr getFullyQualifiedName(bool requireParent=true)
Return the full name for this function from the root module, including all surrounding symbol table n...
::mlir::TypeAttr getFunctionTypeAttr()
::llvm::LogicalResult verifyInherentAttrs(::mlir::OperationName opName, ::mlir::NamedAttrList &attrs, llvm::function_ref<::mlir::InFlightDiagnostic()> emitError)
::llvm::LogicalResult verify()
::mlir::StringAttr getSymNameAttr()
::mlir::ArrayAttr getResAttrsAttr()
::llvm::LogicalResult verifyInvariantsImpl()
::mlir::StringAttr getArgAttrsAttrName()
ReturnOpAdaptor(ReturnOp op)
ReturnOpGenericAdaptor(RangeT values, ::mlir::DictionaryAttr attrs={}, const ::mlir::EmptyProperties &properties={}, ::mlir::RegionRange regions={})
::llvm::LogicalResult verify(::mlir::Location loc)
::mlir::ValueRange getOperands()
void print(::mlir::OpAsmPrinter &_odsPrinter)
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index)
::llvm::LogicalResult verifyInvariantsImpl()
static void build(::mlir::OpBuilder &odsBuilder, ::mlir::OperationState &odsState)
::mlir::Operation::operand_range getODSOperands(unsigned index)
::mlir::MutableOperandRange getMutableSuccessorOperands(::mlir::RegionBranchPoint point)
void getEffects(::llvm::SmallVectorImpl<::mlir::SideEffects::EffectInstance<::mlir::MemoryEffects::Effect > > &effects)
::llvm::LogicalResult verify()
::mlir::MutableOperandRange getOperandsMutable()
::mlir::Operation::operand_range getOperands()
::llvm::LogicalResult verifyInvariants()
::mlir::ParseResult parse(::mlir::OpAsmParser &parser, ::mlir::OperationState &result)
CallOpGenericAdaptorBase(::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
::mlir::SymbolRefAttr getCallee()
::mlir::DenseI32ArrayAttr getMapOpGroupSizesAttr()
::mlir::DictionaryAttr odsAttrs
::llvm::ArrayRef< int32_t > getMapOpGroupSizes()
::mlir::DenseI32ArrayAttr getNumDimsPerMapAttr()
::mlir::SymbolRefAttr getCalleeAttr()
::std::optional<::mlir::OperationName > odsOpName
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
::llvm::ArrayRef< int32_t > getNumDimsPerMap()
::mlir::RegionRange odsRegions
const Properties & getProperties()
::std::optional< ::mlir::ArrayAttr > getResAttrs()
::std::optional< ::mlir::ArrayAttr > getArgAttrs()
::mlir::ArrayAttr getArgAttrsAttr()
::mlir::StringAttr getSymNameAttr()
::mlir::RegionRange getRegions()
::mlir::TypeAttr getFunctionTypeAttr()
::mlir::DictionaryAttr odsAttrs
const Properties & getProperties()
FuncDefOpGenericAdaptorBase(::mlir::DictionaryAttr attrs, const Properties &properties, ::mlir::RegionRange regions={})
::mlir::FunctionType getFunctionType()
::std::optional<::mlir::OperationName > odsOpName
::llvm::StringRef getSymName()
::mlir::RegionRange odsRegions
::mlir::ArrayAttr getResAttrsAttr()
std::pair< unsigned, unsigned > getODSOperandIndexAndLength(unsigned index, unsigned odsOperandsSize)
mlir::ParseResult parseAttrDictWithWarnings(mlir::OpAsmParser &parser, mlir::NamedAttrList &extraAttrs, mlir::OperationState &state)
bool isValidType(Type type)
void printMultiDimAndSymbolList(mlir::OpAsmPrinter &printer, mlir::Operation *op, mlir::OperandRangeRange multiMapOperands, mlir::DenseI32ArrayAttr numDimsPerMap)
void printAttrDictWithWarnings(mlir::OpAsmPrinter &printer, ConcreteOp op, mlir::DictionaryAttr extraAttrs, typename mlir::PropertiesSelector< ConcreteOp >::type state)
mlir::ParseResult parseMultiDimAndSymbolList(mlir::OpAsmParser &parser, mlir::SmallVector< mlir::SmallVector< mlir::OpAsmParser::UnresolvedOperand > > &multiMapOperands, mlir::DenseI32ArrayAttr &numDimsPerMap)
operandSegmentSizesTy operandSegmentSizes
numDimsPerMapTy numDimsPerMap
mapOpGroupSizesTy mapOpGroupSizes
function_typeTy function_type