Lines Matching defs:resource
58 /// A collection of non-dialect resource printers.
413 void writeResourceHandle(const AsmDialectResourceHandle &resource) override {
414 emitter.emitVarInt(numberingState.getNumber(resource), "dialect resource");
1214 /// This class represents a resource builder implementation for the MLIR
1229 emitter.emitOwnedBlobAndAlignment(data, dataAlignment, "resource blob");
1234 emitter.emitByte(data, "resource bool");
1239 emitter.emitVarInt(stringSection.insert(data), "resource string");
1259 // Functor used to process the offset for a resource of `kind` defined by
1267 // Functor used to emit a resource group defined by 'key'.
1269 resourceOffsetEmitter.emitVarInt(key, "resource group key");
1271 "resource group size");
1274 "resource key");
1275 resourceOffsetEmitter.emitVarInt(size, "resource size");
1276 resourceOffsetEmitter.emitByte(kind, "resource kind");
1285 // Emit the external resource entries.
1287 "external resource printer count");
1294 // Emit the dialect resource entries.
1304 for (const auto &resource : dialect.resourceMap)
1305 if (resource.second->isDeclaration)
1306 appendResourceOffset(resource.first, AsmResourceEntryKind::Blob);
1308 // Emit the resource group for this dialect.
1313 // If we didn't emit any resource groups, elide the resource sections.