diff options
author | Fabian Mora <6982088+fabianmcg@users.noreply.github.com> | 2025-09-07 21:29:32 +0000 |
---|---|---|
committer | Fabian Mora <6982088+fabianmcg@users.noreply.github.com> | 2025-09-07 21:29:32 +0000 |
commit | 82d496072f9c377d5e7cb38819a83a952000fec1 (patch) | |
tree | b4a90829988c27a4312dc779ea2bae57f5a5fffe /mlir/lib/TableGen/Operator.cpp | |
parent | 362ce4bd5dec07f54837e3bc540ca6b50404828c (diff) | |
download | llvm-users/fabianmcg/ptr-atomics.zip llvm-users/fabianmcg/ptr-atomics.tar.gz llvm-users/fabianmcg/ptr-atomics.tar.bz2 |
Diffstat (limited to 'mlir/lib/TableGen/Operator.cpp')
-rw-r--r-- | mlir/lib/TableGen/Operator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mlir/lib/TableGen/Operator.cpp b/mlir/lib/TableGen/Operator.cpp index da86b00..953d8bc 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()) @@ -672,6 +673,8 @@ void Operator::populateOpStructure() { arguments.emplace_back(&attributes[attrIndex++]); } else { assert(argDef->isSubClassOf(propertyClass)); + attrOrOperandMapping.push_back( + {OperandOrAttribute::Kind::Property, propIndex}); arguments.emplace_back(&properties[propIndex++]); } } |