[all-commits] [llvm/llvm-project] 9261ab: [mlir][Target] Teach dense_resource conversion to ...

Kunwar Grover via All-commits all-commits at lists.llvm.org
Tue Jan 23 13:30:47 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9261ab708e37c2d6499ac063045f816d25a5919c
      https://github.com/llvm/llvm-project/commit/9261ab708e37c2d6499ac063045f816d25a5919c
  Author: Kunwar Grover <groverkss at gmail.com>
  Date:   2024-01-23 (Tue, 23 Jan 2024)

  Changed paths:
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Target/LLVMIR/llvmir-invalid.mlir
    M mlir/test/Target/LLVMIR/llvmir.mlir

  Log Message:
  -----------
  [mlir][Target] Teach dense_resource conversion to LLVMIR Target (#78958)

This patch adds support for translating dense_resource attributes to
LLVMIR Target.
The support added is similar to how DenseElementsAttr is handled, except
we
don't need to handle splats.

Another possible way of doing this is adding iteration on
dense_resource, but that is
non-trivial as DenseResourceAttr is not meant to be something you should
directly
access. It has subclasses which you are supposed to use to iterate on
it.




More information about the All-commits mailing list