The Same*Shape traits allow scalars.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Personally I think we should deprecate this behavior. In my mind, an i1 doesn't have a shape at all. So it doesn't make sense to say it has the same shape as anything else. Is there a specific use case for this behavior (IIRC this might have fallen out of an implementation detail of an earlier implementation of the trait).
Comment Actions
Not that I am aware of or care about. I would be fine restricting it.
This was just cleaning on the way as I was implementing type inference for the Same*Shape interfaces.
Comment Actions
Note that this is now out of the chain of reviews, as these interfaces will be handled by providing a default implementation of InferTypeOpInterface instead of having a special path in the type inference.