[Mlir-commits] [mlir] replaces hardcoded attribute names in SPIRV dialect parsing code (PR #81552)
Mehdi Amini
llvmlistbot at llvm.org
Wed Feb 14 18:45:18 PST 2024
================
@@ -875,7 +882,9 @@ ParseResult spirv::ExecutionModeOp::parse(OpAsmParser &parser,
}
values.push_back(llvm::cast<IntegerAttr>(value).getInt());
}
- result.addAttribute(kValuesAttrName,
+ StringRef valuesAttrName =
+ spirv::ExecutionModeOp::getValuesAttrName(result.name).strref();
----------------
joker-eph wrote:
I only superficially looked, this will be more for @antiagainst to approve I think.
I would mentioned that this PR would benefit from a description (the title says the "what" is done, the description should say the "why" and provide context).
(See https://mlir.llvm.org/getting_started/Contributing/#commit-messages )
https://github.com/llvm/llvm-project/pull/81552
More information about the Mlir-commits
mailing list