[Mlir-commits] [mlir] [mlir] Add Python bindings for	DenseResourceElementsAttr. (PR #66319)
    Jacques Pienaar 
    llvmlistbot at llvm.org
       
    Thu Sep 14 07:08:14 PDT 2023
    
    
  
================
@@ -558,6 +558,20 @@ mlirDenseElementsAttrGetRawData(MlirAttribute attr);
 // Resource blob attributes.
 //===----------------------------------------------------------------------===//
 
+MLIR_CAPI_EXPORTED bool
+mlirAttributeIsADenseResourceElements(MlirAttribute attr);
+
+/// Unlike the typed accessors below, constructs the attribute with a raw
+/// data buffer and no type/alignment checking. Use a more strongly typed
+/// accessor if possible. If the deleter is non NULL, then it will be called
----------------
jpienaar wrote:
Why not make the typed ones also accept deleter while here?
https://github.com/llvm/llvm-project/pull/66319
    
    
More information about the Mlir-commits
mailing list