[Mlir-commits] [mlir] [mlir][spirv] Replace hardcoded attribute strings with op methods Resolve #77627 (PR #81443)

Mehdi Amini llvmlistbot at llvm.org
Sun Feb 11 23:07:12 PST 2024


================
@@ -215,11 +215,14 @@ spirv::Deserializer::processMemoryModel(ArrayRef<uint32_t> operands) {
   if (operands.size() != 2)
     return emitError(unknownLoc, "OpMemoryModel must have two operands");
 
+  StringRef addressing_model = module->getAddressingModelAttrName().strref();
----------------
joker-eph wrote:

Why StringRef instead of StringAttr?

https://github.com/llvm/llvm-project/pull/81443


More information about the Mlir-commits mailing list