Lines Matching defs:element
77 /// 1 = single element (expect non sequence operand/result)
78 /// 0 = optional element (expect a value or std::nullopt)
91 /// Template for single-element accessor:
94 /// {2} is the position in the element list.
101 /// Template for single-element accessor after a variable-length group:
104 /// {2} is the total number of element groups;
107 /// single optional element (zero length if the element is absent).
115 /// Template for an optional element accessor:
118 /// {2} is the total number of element groups;
132 /// {2} is the total number of element groups;
154 /// element:
171 /// {3} is a return suffix (expected [0] for single-element, empty for
182 /// Template for a suffix when accessing an optional element in the
348 // If there is only one variable-length element group, its size can be
354 const NamedTypeConstraint &element = getElement(op, i);
355 if (element.isVariableLength())
357 if (element.name.empty())
359 if (element.isVariableLength()) {
360 os << formatv(element.isOptional() ? opOneOptionalTemplate
362 sanitizeName(element.name), kind, numElements, i);
364 os << formatv(opSingleAfterVariableTemplate, sanitizeName(element.name),
367 os << formatv(opSingleTemplate, sanitizeName(element.name), kind, i);
378 const NamedTypeConstraint &element = getElement(op, i);
379 if (!element.isVariableLength()) {
388 const NamedTypeConstraint &element = getElement(op, i);
389 if (!element.name.empty()) {
390 os << formatv(opVariadicEqualPrefixTemplate, sanitizeName(element.name),
393 os << formatv(element.isVariableLength()
398 if (element.isVariableLength())
408 // an element rather than a singleton container.
411 const NamedTypeConstraint &element = getElement(op, i);
412 if (element.name.empty())
415 if (!element.isVariableLength())
417 else if (element.isOptional())
420 os << formatv(opVariadicSegmentTemplate, sanitizeName(element.name), kind,
501 /// Template for appending a single element to the operand/result list.
506 /// Template for appending an optional element to the operand/result list.
710 // For each element, find or generate a name.
712 const NamedTypeConstraint &element = op.getOperand(i);
715 // Choose the formatting string based on the element kind.
717 if (!element.isVariableLength()) {
719 } else if (element.isOptional()) {
726 assert(element.isVariadic() && "unhandled element group type");
728 // element. Otherwise, we extend the actual operands.
793 // For each element, find or generate a name.
795 const NamedTypeConstraint &element = op.getResult(i);
798 // Choose the formatting string based on the element kind.
800 if (!element.isVariableLength()) {
802 } else if (element.isOptional()) {
805 assert(element.isVariadic() && "unhandled element group type");
807 // element. Otherwise, we extend the actual operands.
942 const NamedTypeConstraint &element = getElement(op, i);
943 if (element.isOptional()) {
945 } else if (element.isVariadic()) {