-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[stdlib] Remove MLIR magic from DType.sizeof
This changes implementation of `DType.sizeof` to compute the size of the type directly instead of generating `pop.dtype.sizeof`. With this change `DType.sizeof` for index works correctly instead of giving a compile-time error. It also changes implementation of `DType.sizeof.is_half_point` to compute the result directly instead of going via DType.sizeof. MODULAR_ORIG_COMMIT_REV_ID: f9e492c0dc122081101d225862fdca24d2c9e1ab
- Loading branch information
1 parent
20d5f1c
commit 99b7cdb
Showing
2 changed files
with
57 additions
and
7 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