DialectResourceBlobManager: add API to access blobMap (original) (raw)

There’s a dialect-resource management class in MLIR that allows one to store any data in binary format. It currently has the following methods:

I propose to add an additional API:

Motivation:

Unfortunately, due to IR modifications, some dialect resources can no longer be “inferred” from the IR itself. (E.g. consider %value = Op dialect_resource<X> being erased), which is why I find the API to be a useful addition.

I decided to start this thread to see if there’s any opposition to this or whether this was just never required before (and thus no API added originally).