[all-commits] [llvm/llvm-project] 7055df: [mlir] Make it possible to build a DenseResourceEl...

Stella Laurenzo via All-commits all-commits at lists.llvm.org
Mon Sep 11 14:10:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7055df7b4f6abf64f672703316bb8a7e7b185652
      https://github.com/llvm/llvm-project/commit/7055df7b4f6abf64f672703316bb8a7e7b185652
  Author: Stella Laurenzo <stellaraccident at gmail.com>
  Date:   2023-09-11 (Mon, 11 Sep 2023)

  Changed paths:
    M mlir/include/mlir-c/BuiltinAttributes.h
    M mlir/include/mlir/IR/BuiltinAttributes.td
    M mlir/lib/CAPI/IR/BuiltinAttributes.cpp
    M mlir/test/CAPI/ir.c

  Log Message:
  -----------
  [mlir] Make it possible to build a DenseResourceElementsAttr from untyped memory. (#66009)

Exposes the existing `get(ShapedType, StringRef, AsmResourceBlob)`
builder publicly (was protected) and adds a CAPI
`mlirUnmanagedDenseBlobResourceElementsAttrGet`.

While such a generic construction interface is a big help when it comes
to interop, it is also necessary for creating resources that don't have
a standard C type (i.e. f16, the f8s, etc).

Previously reviewed/approved as part of https://reviews.llvm.org/D157064




More information about the All-commits mailing list