Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transforms: (memref-to-dsd) Support 1d subview of nd memref #3653

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Merge branch 'main' into nicolai/memref-to-dsd-2d-into-1d
  • Loading branch information
n-io committed Dec 19, 2024
commit 87909411a6ce56f76fd922e0b6f74f6c2444109e
15 changes: 7 additions & 8 deletions xdsl/dialects/csl/csl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,14 +1166,13 @@ def verify_(self) -> None:
raise VerifyException(
"DSD of type mem4d_dsd must have between 1 and 4 dimensions"
)
if self.offsets is not None and len(self.offsets) < len(self.sizes):
raise VerifyException(
"Dimensions of offsets must match (or exceed) dimensions of sizes"
)
if self.strides is not None and len(self.strides) != len(self.sizes):
raise VerifyException(
"Dimensions of strides must match dimensions of sizes"
)
if self.tensor_access:
if len(self.sizes) != self.tensor_access.data.num_dims:
raise VerifyException(
"Dsd must have sizes specified for each dimension of the affine map"
)
if self.tensor_access.data.num_symbols != 0:
raise VerifyException("Symbols on affine map not supported")


@irdl_op_definition
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.