Closed martinvuyk closed 2 weeks ago
Thanks for the PR! Could you please describe the benefits of using DTypePointer vs Legacy or UnsafePointer?
Thanks for the PR! Could you please describe the benefits of using DTypePointer vs Legacy or UnsafePointer?
UnsafePointer doesn't have the alignment functionality as you pointed out in your PR on the Mojo repo that solved it. LegacyPointer is getting deprecated. DTypePointer is made to be able to be used with SIMD. DType defines the MLIR dialects that Mojo supports and is used to define the Scalars that exist in the Mojo language.
Sounds good - congrats on having your first PR merged!
DTypePointer currently still uses LegacyPointer underneath but I imagine they will refactor in the future. And later we might have to migrate to UnsafePointer once all the functionality is available.