[Mlir-commits] [mlir] [MLIR] Add a BlobAttr interface for attribute to wrap arbitrary content and use it as linkLibs for ModuleToObject (PR #120116)
River Riddle
llvmlistbot at llvm.org
Mon Dec 16 13:33:54 PST 2024
================
@@ -1544,6 +1544,12 @@ DenseResourceElementsAttr DenseResourceElementsAttr::get(ShapedType type,
return get(type, manager.insert(blobName, std::move(blob)));
}
+ArrayRef<char> DenseResourceElementsAttr::getData() {
+ if (AsmResourceBlob *blob = this->getRawHandle().getBlob())
+ return blob->template getDataAs<char>();
----------------
River707 wrote:
Is template necessary here? That should generally only be needed when you're inside of a template function.
https://github.com/llvm/llvm-project/pull/120116
More information about the Mlir-commits
mailing list