forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to passes for custom dispatch to work with bf16 type (iree-org#…
…17242) Custom dispatch for bf16 type stopped working because of a couple of problems: 1. `--iree-codegen-expand-strided-metadata` doesn't work with `iree-opt` when given an `iree_codegen.extract_strided_metadata` op due to a lack of a dependency on the `memref` dialect. 2. `--iree-convert-bf16-to-uint16-buffers` doesn't convert types in an `iree_codegen.extract_strided_metadata` op due to a lack of a dependency on the `iree_codegen` dialect. As a result, type casts are introduced between the `iree_codegen.extract_strided_metadata` and its `hal.interface.binding.subspan` predecessor, which confuses `--iree-codegen-expand-strided-metadata`, which fails to do its job of eliminating the `iree_codegen.extract_strided_metadata`. This second problem was described in iree-org#17177. The fix for both problems is to add the missing dialect dependencies. fixes: iree-org#17177
- Loading branch information
1 parent
f54a861
commit 6233f4f
Showing
4 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters