Skip to content

Conversation

@hanhanW
Copy link
Contributor

@hanhanW hanhanW commented Jul 17, 2025

The revision updates the static constructor with unique_ptr because there are invalid states. E.g., the config does not recognize GPU lowering config and different structured Codegen lowering configs. In this context, we prefer factory functions to initializer methods. See https://abseil.io/tips/42 for more details.

Furthermore, it updates the logic of getVectorTileSizes, which uses the mapping level index to get the right list. Ideally, we can implement an interface method for all the specific lowering config, but we still need the generic lowering config being able to handle the case. Thus, we only update TilingConfig logic now, and we will do the interface way later.

The revision updates the static construct with unique_ptr because there
are invalid states. E.g., the config does not recognize GPU lowering
config and different structured Codegen lowering config. In this
context, we prefer factory functions to initializer methods. See
https://abseil.io/tips/42 for more details.

Furthermore, it updates the logic of getVectorTileSizes, which uses the
mapping level index to get the right list.

Signed-off-by: hanhanW <[email protected]>
Copy link
Contributor

@jtuyls jtuyls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

? loweringConfig.getStaticTilingLevelSizes(0, /*target=*/nullptr)
.size()
: 0;
for (auto level : tilingLevelToActualLevelMap) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for (auto level : tilingLevelToActualLevelMap) {
for (unsigned level : tilingLevelToActualLevelMap) {

Copy link
Collaborator

@banach-space banach-space left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Signed-off-by: hanhanW <[email protected]>
@hanhanW hanhanW enabled auto-merge (squash) July 17, 2025 16:32
@hanhanW hanhanW merged commit 3f52423 into iree-org:main Jul 17, 2025
44 checks passed
@hanhanW hanhanW deleted the vectorization-vector-inference branch July 17, 2025 17:20
IanWood1 pushed a commit to IanWood1/iree that referenced this pull request Jul 18, 2025
…g. (iree-org#21397)

The revision updates the static constructor with unique_ptr because
there are invalid states. E.g., the config does not recognize GPU
lowering config and different structured Codegen lowering configs. In
this context, we prefer factory functions to initializer methods. See
https://abseil.io/tips/42 for more details.

Furthermore, it updates the logic of `getVectorTileSizes`, which uses
the mapping level index to get the right list. Ideally, we can implement
an interface method for all the specific lowering config, but we still
need the generic lowering config being able to handle the case. Thus, we
only update `TilingConfig` logic now, and we will do the interface way
later.

---------

Signed-off-by: hanhanW <[email protected]>
keshavvinayak01 pushed a commit to keshavvinayak01/iree that referenced this pull request Sep 4, 2025
…g. (iree-org#21397)

The revision updates the static constructor with unique_ptr because
there are invalid states. E.g., the config does not recognize GPU
lowering config and different structured Codegen lowering configs. In
this context, we prefer factory functions to initializer methods. See
https://abseil.io/tips/42 for more details.

Furthermore, it updates the logic of `getVectorTileSizes`, which uses
the mapping level index to get the right list. Ideally, we can implement
an interface method for all the specific lowering config, but we still
need the generic lowering config being able to handle the case. Thus, we
only update `TilingConfig` logic now, and we will do the interface way
later.

---------

Signed-off-by: hanhanW <[email protected]>
Signed-off-by: keshavvinayak01 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants