tenstorrent / tt-umd

User-Mode Driver for Tenstorrent hardware
Apache License 2.0
9 stars 5 forks source link

#12405: Refactor to use strong types #46

Open patrickroberts opened 1 month ago

patrickroberts commented 1 month ago

Ticket

https://github.com/tenstorrent/tt-metal/issues/12405

Problem description

Aliases of integral types are being used interchangeably with the integral types, allowing for erroneous implicit conversions.

What's changed

Refactor to use enum class and make any intentional conversions explicit.