diff options
| author | Aiden Grossman <aidengrossman@google.com> | 2025-09-12 01:05:48 +0000 |
|---|---|---|
| committer | Aiden Grossman <aidengrossman@google.com> | 2025-09-12 01:05:48 +0000 |
| commit | 88a52e1fc6d3e153132f0e0a86431762adf8c0c4 (patch) | |
| tree | bae8c1b720736edc54705c325c5bfb95b459eda2 /mlir/lib/TableGen/Operator.cpp | |
| parent | 1873dd7e8bb03319500a9f4b51e9e498a8fb70de (diff) | |
| parent | 2740e4b73682eb7a6869c333991a608304938952 (diff) | |
[𝘀𝗽𝗿] changes introduced through rebaseusers/boomanaiden154/main.clang-invoke-shell-script-with-bash
Created using spr 1.3.6
[skip ci]
Diffstat (limited to 'mlir/lib/TableGen/Operator.cpp')
| -rw-r--r-- | mlir/lib/TableGen/Operator.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/mlir/lib/TableGen/Operator.cpp b/mlir/lib/TableGen/Operator.cpp index da86b00ebc30..926ffd0e363a 100644 --- a/mlir/lib/TableGen/Operator.cpp +++ b/mlir/lib/TableGen/Operator.cpp @@ -385,7 +385,8 @@ void Operator::populateTypeInferenceInfo( if (getTrait("::mlir::OpTrait::SameOperandsAndResultType")) { // Check for a non-variable length operand to use as the type anchor. auto *operandI = llvm::find_if(arguments, [](const Argument &arg) { - NamedTypeConstraint *operand = llvm::dyn_cast_if_present<NamedTypeConstraint *>(arg); + NamedTypeConstraint *operand = + llvm::dyn_cast_if_present<NamedTypeConstraint *>(arg); return operand && !operand->isVariableLength(); }); if (operandI == arguments.end()) @@ -663,15 +664,17 @@ void Operator::populateOpStructure() { argDef = argDef->getValueAsDef("constraint"); if (argDef->isSubClassOf(typeConstraintClass)) { - attrOrOperandMapping.push_back( - {OperandOrAttribute::Kind::Operand, operandIndex}); + attrPropOrOperandMapping.push_back( + {OperandAttrOrProp::Kind::Operand, operandIndex}); arguments.emplace_back(&operands[operandIndex++]); } else if (argDef->isSubClassOf(attrClass)) { - attrOrOperandMapping.push_back( - {OperandOrAttribute::Kind::Attribute, attrIndex}); + attrPropOrOperandMapping.push_back( + {OperandAttrOrProp::Kind::Attribute, attrIndex}); arguments.emplace_back(&attributes[attrIndex++]); } else { assert(argDef->isSubClassOf(propertyClass)); + attrPropOrOperandMapping.push_back( + {OperandAttrOrProp::Kind::Property, propIndex}); arguments.emplace_back(&properties[propIndex++]); } } @@ -867,9 +870,8 @@ auto Operator::VariableDecoratorIterator::unwrap(const Init *init) return VariableDecorator(cast<DefInit>(init)->getDef()); } -auto Operator::getArgToOperandOrAttribute(int index) const - -> OperandOrAttribute { - return attrOrOperandMapping[index]; +auto Operator::getArgToOperandAttrOrProp(int index) const -> OperandAttrOrProp { + return attrPropOrOperandMapping[index]; } std::string Operator::getGetterName(StringRef name) const { |
