[Mlir-commits] [mlir] [mlir][spirv] Support function argument decorations for ptr in the PhysicalStorageBuffer (PR #76353)
Lei Zhang
llvmlistbot at llvm.org
Fri Jan 5 14:51:55 PST 2024
================
@@ -369,6 +370,32 @@ LogicalResult spirv::Deserializer::processMemberName(ArrayRef<uint32_t> words) {
return success();
}
+void spirv::Deserializer::setArgAttrs(uint32_t argID) {
+ if (!decorations.contains(argID)) {
+ argAttrs.push_back(DictionaryAttr::get(context, {}));
----------------
antiagainst wrote:
Yes `reserve` is helpful to allocate the space in one go. Though it does not initialize the elements--you'd still need to either `push_back` for all elements or call `resize` which initalizes elements along the way.
https://github.com/llvm/llvm-project/pull/76353
More information about the Mlir-commits
mailing list