Skip to content

Move Flow ops that are depended by CodeGen/Stream to TensorExt dialect #20249

Closed

Description

@hanhanW

During the set_encoding elimination prototype, I observed that we might want to move out some flow ops to TensorExt dialect. The operations are

  • IREE::Flow::DispatchWorkloadOrdinalOp
  • IREE::Flow::DispatchTensorLoadOp
  • IREE::Flow::DispatchTensorStoreOp
  • IREE::Flow::DispatchWorkgroupCountFromSliceOp

Furthermore, we also need to move IREE::Flow::DispatchTensorType type to TensorExt dialect. They are the root cause of the Stream->Flow dependency in my MaterializeEncodings prototype pass.

@benvanik is it aligned with what you have in mind? Do I miss other operations or types or attributes?

Activity

  1. added
    codegen
    on Mar 14, 2025
  2. self-assigned this
    on Mar 14, 2025
  3. added
    compiler/dialects
    on Mar 14, 2025
  4. benvanik commented on Mar 14, 2025

    @benvanik
    Collaborator

    Sounds like a great start!

  5. hanhanW commented on Mar 14, 2025

    @hanhanW
    ContributorAuthor

    Cool, nice! cc @MaheshRavishankar

  6. hanhanW commented on Apr 14, 2025

    @hanhanW
    ContributorAuthor

    Putting an update here: @jtuyls and I found that the MaterializeEncodingIntoPaddingPass collapsing work has circular dep issue because of the DispatchTensorType. I proposed to add the encoding interface methods using external model mechanism, because we'll need it for propagation anyway. However, @jtuyls volunteered to take a stab at moving DispatchTensorType to TensorExt dialect.

  7. self-assigned this
    on Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

codegencompiler/dialects

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions