Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Using custom bitwidth MLIR integers. - Modular
M
Modular
•
2y ago
jmky
Using custom bitwidth MLIR integers.
Hi
If we were to create custom types that wrap around custom bitwidth integers using MLIR types and operations
, does it improve performance
?
Theoretically
, it should not right
? Because if the register is 64 bits wide
, it would be a waste to use only 4 bits to store a
ui4
ui4
wasting the entire 60 bits
. Unless
, the compiler is smart enough to look at the function signature and then group many e
.g
UInt[4]
UInt[4]
together
.
Modular
Join
This server is the home of the MAX and Mojo community! Join us to chat about all things Modular.
20,199
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
MLIR : does Mojo run on MLIR?
M
Modular / questions
3y ago
MLIR Docs
M
Modular / questions
2y ago
MLIR syntax
M
Modular / questions
3y ago
Big Integers?
M
Modular / questions
3y ago