Skip to content

Add semantic wrapper for DenseResourceElementsAttr handles #105

@jonathanvdc

Description

@jonathanvdc

DenseResourceElementsAttr currently models its raw resource handle as a string in the generated C# surface. That is enough to unblock codegen, but it leaves the handle semantically opaque.

Desired follow-up:

  • introduce a semantic type for resource handles in MLIR.NET
  • teach the builtin prelude overlay to use that type for DenseResourceElementsAttr
  • keep parse/print behavior aligned with MLIR's resource-handle assembly syntax
  • add tests that verify generated code uses the richer type instead of string

This should stay in the earliest layer that can express the concept cleanly; if the current syntax/runtime model is missing a suitable abstraction, add it there rather than patching the generator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    new featureIntroduces a new feature or support for a currently-unsupported upstream MLIR construct

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions